Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
e04cdfd7
Commit
e04cdfd7
authored
Jun 28, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(App): clean imports and misc
parent
edf80196
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
46 additions
and
84 deletions
+46
-84
App.cpp
src/app/App.cpp
+0
-1
Logger.cpp
src/app/logger/Logger.cpp
+1
-1
Paths.hpp
src/app/paths/Paths.hpp
+22
-24
Components.hpp
src/components/Components.hpp
+1
-0
CallModel.cpp
src/components/call/CallModel.cpp
+0
-1
CallsListModel.cpp
src/components/calls/CallsListModel.cpp
+0
-2
Camera.cpp
src/components/camera/Camera.cpp
+1
-0
Camera.hpp
src/components/camera/Camera.hpp
+2
-3
CameraPreview.cpp
src/components/camera/CameraPreview.cpp
+1
-0
CameraPreview.hpp
src/components/camera/CameraPreview.hpp
+2
-3
ChatModel.cpp
src/components/chat/ChatModel.cpp
+0
-2
ConferenceAddModel.hpp
src/components/conference/ConferenceAddModel.hpp
+1
-4
ConferenceHelperModel.hpp
src/components/conference/ConferenceHelperModel.hpp
+1
-1
ContactModel.cpp
src/components/contact/ContactModel.cpp
+0
-2
VcardModel.cpp
src/components/contact/VcardModel.cpp
+0
-1
ContactsListModel.cpp
src/components/contacts/ContactsListModel.cpp
+0
-3
ContactsListProxyModel.cpp
src/components/contacts/ContactsListProxyModel.cpp
+0
-2
CoreManager.hpp
src/components/core/CoreManager.hpp
+7
-8
Notifier.cpp
src/components/notifier/Notifier.cpp
+0
-3
Colors.cpp
src/components/other/colors/Colors.cpp
+3
-3
OwnPresenceModel.cpp
src/components/presence/OwnPresenceModel.cpp
+0
-3
OwnPresenceModel.hpp
src/components/presence/OwnPresenceModel.hpp
+0
-2
Presence.cpp
src/components/presence/Presence.cpp
+0
-2
AccountSettingsModel.cpp
src/components/settings/AccountSettingsModel.cpp
+0
-2
SettingsModel.cpp
src/components/settings/SettingsModel.cpp
+1
-1
SipAddressesModel.cpp
src/components/sip-addresses/SipAddressesModel.cpp
+1
-4
SipAddressesModel.hpp
src/components/sip-addresses/SipAddressesModel.hpp
+1
-2
SoundPlayer.hpp
src/components/sound-player/SoundPlayer.hpp
+1
-1
TimelineModel.cpp
src/components/timeline/TimelineModel.cpp
+0
-2
main.cpp
src/main.cpp
+0
-1
No files found.
src/app/App.cpp
View file @
e04cdfd7
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <QMenu>
#include <QMenu>
#include <QQmlFileSelector>
#include <QQmlFileSelector>
#include <QSystemTrayIcon>
#include <QSystemTrayIcon>
#include <QtDebug>
#include <QTimer>
#include <QTimer>
#include "config.h"
#include "config.h"
...
...
src/app/logger/Logger.cpp
View file @
e04cdfd7
...
@@ -159,7 +159,7 @@ void Logger::enable (bool status) {
...
@@ -159,7 +159,7 @@ void Logger::enable (bool status) {
linphone_core_enable_log_collection
(
status
?
LinphoneLogCollectionEnabled
:
LinphoneLogCollectionDisabled
);
linphone_core_enable_log_collection
(
status
?
LinphoneLogCollectionEnabled
:
LinphoneLogCollectionDisabled
);
}
}
void
Logger
::
init
(
const
s
td
::
s
hared_ptr
<
linphone
::
Config
>
&
config
)
{
void
Logger
::
init
(
const
shared_ptr
<
linphone
::
Config
>
&
config
)
{
if
(
mInstance
)
if
(
mInstance
)
return
;
return
;
...
...
src/app/paths/Paths.hpp
View file @
e04cdfd7
...
@@ -23,35 +23,33 @@
...
@@ -23,35 +23,33 @@
#ifndef PATHS_H_
#ifndef PATHS_H_
#define PATHS_H_
#define PATHS_H_
#include <string>
#include <QString>
#include <QString>
// =============================================================================
// =============================================================================
namespace
Paths
{
namespace
Paths
{
bool
filePathExists
(
const
std
::
string
&
path
);
bool
filePathExists
(
const
std
::
string
&
path
);
std
::
string
getAssistantConfigDirPath
();
std
::
string
getAssistantConfigDirPath
();
std
::
string
getAvatarsDirPath
();
std
::
string
getAvatarsDirPath
();
std
::
string
getCallHistoryFilePath
();
std
::
string
getCallHistoryFilePath
();
std
::
string
getCapturesDirPath
();
std
::
string
getCapturesDirPath
();
std
::
string
getConfigFilePath
(
const
QString
&
configPath
=
QString
(),
bool
writable
=
true
);
std
::
string
getConfigFilePath
(
const
QString
&
configPath
=
QString
(),
bool
writable
=
true
);
std
::
string
getFactoryConfigFilePath
();
std
::
string
getFactoryConfigFilePath
();
std
::
string
getFriendsListFilePath
();
std
::
string
getFriendsListFilePath
();
std
::
string
getDownloadDirPath
();
std
::
string
getDownloadDirPath
();
std
::
string
getLogsDirPath
();
std
::
string
getLogsDirPath
();
std
::
string
getMessageHistoryFilePath
();
std
::
string
getMessageHistoryFilePath
();
std
::
string
getPackageDataDirPath
();
std
::
string
getPackageDataDirPath
();
std
::
string
getPackageMsPluginsDirPath
();
std
::
string
getPackageMsPluginsDirPath
();
std
::
string
getPluginsDirPath
();
std
::
string
getPluginsDirPath
();
std
::
string
getRootCaFilePath
();
std
::
string
getRootCaFilePath
();
std
::
string
getThumbnailsDirPath
();
std
::
string
getThumbnailsDirPath
();
std
::
string
getUserCertificatesDirPath
();
std
::
string
getUserCertificatesDirPath
();
std
::
string
getZrtpDataFilePath
();
std
::
string
getZrtpDataFilePath
();
std
::
string
getZrtpSecretsFilePath
();
std
::
string
getZrtpSecretsFilePath
();
void
migrate
();
void
migrate
();
}
}
#endif // PATHS_H_
#endif // PATHS_H_
src/components/Components.hpp
View file @
e04cdfd7
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "codecs/AudioCodecsModel.hpp"
#include "codecs/AudioCodecsModel.hpp"
#include "codecs/VideoCodecsModel.hpp"
#include "codecs/VideoCodecsModel.hpp"
#include "conference/ConferenceAddModel.hpp"
#include "conference/ConferenceAddModel.hpp"
#include "conference/ConferenceModel.hpp"
#include "contacts/ContactsListProxyModel.hpp"
#include "contacts/ContactsListProxyModel.hpp"
#include "core/CoreManager.hpp"
#include "core/CoreManager.hpp"
#include "presence/OwnPresenceModel.hpp"
#include "presence/OwnPresenceModel.hpp"
...
...
src/components/call/CallModel.cpp
View file @
e04cdfd7
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
*/
*/
#include <QDateTime>
#include <QDateTime>
#include <QtDebug>
#include <QTimer>
#include <QTimer>
#include "../../app/App.hpp"
#include "../../app/App.hpp"
...
...
src/components/calls/CallsListModel.cpp
View file @
e04cdfd7
...
@@ -20,12 +20,10 @@
...
@@ -20,12 +20,10 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QDebug>
#include <QTimer>
#include <QTimer>
#include "../../app/App.hpp"
#include "../../app/App.hpp"
#include "../../utils/Utils.hpp"
#include "../../utils/Utils.hpp"
#include "../conference/ConferenceHelperModel.hpp"
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
#include "CallsListModel.hpp"
#include "CallsListModel.hpp"
...
...
src/components/camera/Camera.cpp
View file @
e04cdfd7
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QOpenGLFramebufferObject>
#include <QQuickWindow>
#include <QQuickWindow>
#include <QThread>
#include <QThread>
#include <QTimer>
#include <QTimer>
...
...
src/components/camera/Camera.hpp
View file @
e04cdfd7
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <memory>
#include <memory>
#include <QOpenGLFramebufferObject>
#include <QQuickFramebufferObject>
#include <QQuickFramebufferObject>
// =============================================================================
// =============================================================================
...
@@ -58,7 +57,7 @@ private:
...
@@ -58,7 +57,7 @@ private:
bool
mIsPreview
=
false
;
bool
mIsPreview
=
false
;
std
::
shared_ptr
<
linphone
::
Call
>
mCall
;
std
::
shared_ptr
<
linphone
::
Call
>
mCall
;
QQuickWindow
*
mWindow
;
QQuickWindow
*
mWindow
=
nullptr
;
};
};
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -91,7 +90,7 @@ private:
...
@@ -91,7 +90,7 @@ private:
bool
mIsPreview
=
false
;
bool
mIsPreview
=
false
;
CallModel
*
mCallModel
=
nullptr
;
CallModel
*
mCallModel
=
nullptr
;
QTimer
*
mRefreshTimer
;
QTimer
*
mRefreshTimer
=
nullptr
;
};
};
#endif // CAMERA_H_
#endif // CAMERA_H_
src/components/camera/CameraPreview.cpp
View file @
e04cdfd7
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QOpenGLFramebufferObject>
#include <QQuickWindow>
#include <QQuickWindow>
#include <QThread>
#include <QThread>
#include <QTimer>
#include <QTimer>
...
...
src/components/camera/CameraPreview.hpp
View file @
e04cdfd7
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#define CAMERA_PREVIEW_H_
#define CAMERA_PREVIEW_H_
#include <QMutex>
#include <QMutex>
#include <QOpenGLFramebufferObject>
#include <QQuickFramebufferObject>
#include <QQuickFramebufferObject>
// =============================================================================
// =============================================================================
...
@@ -50,7 +49,7 @@ private:
...
@@ -50,7 +49,7 @@ private:
ContextInfo
*
mContextInfo
;
ContextInfo
*
mContextInfo
;
bool
mUpdateContextInfo
=
false
;
bool
mUpdateContextInfo
=
false
;
QQuickWindow
*
mWindow
;
QQuickWindow
*
mWindow
=
nullptr
;
};
};
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
@@ -67,7 +66,7 @@ public:
...
@@ -67,7 +66,7 @@ public:
QQuickFramebufferObject
::
Renderer
*
createRenderer
()
const
override
;
QQuickFramebufferObject
::
Renderer
*
createRenderer
()
const
override
;
private:
private:
QTimer
*
mRefreshTimer
;
QTimer
*
mRefreshTimer
=
nullptr
;
static
QMutex
mCounterMutex
;
static
QMutex
mCounterMutex
;
static
int
mCounter
;
static
int
mCounter
;
...
...
src/components/chat/ChatModel.cpp
View file @
e04cdfd7
...
@@ -24,9 +24,7 @@
...
@@ -24,9 +24,7 @@
#include <QDateTime>
#include <QDateTime>
#include <QDesktopServices>
#include <QDesktopServices>
#include <QFileDialog>
#include <QFileInfo>
#include <QFileInfo>
#include <QImage>
#include <QTimer>
#include <QTimer>
#include <QUuid>
#include <QUuid>
...
...
src/components/conference/ConferenceAddModel.hpp
View file @
e04cdfd7
...
@@ -23,10 +23,7 @@
...
@@ -23,10 +23,7 @@
#ifndef CONFERENCE_ADD_MODEL_H_
#ifndef CONFERENCE_ADD_MODEL_H_
#define CONFERENCE_ADD_MODEL_H_
#define CONFERENCE_ADD_MODEL_H_
#include <memory>
#include "ConferenceHelperModel.hpp"
#include "ConferenceHelperModel.hpp"
#include "ConferenceModel.hpp"
// =============================================================================
// =============================================================================
// Sip addresses list to add to conference.
// Sip addresses list to add to conference.
...
@@ -71,7 +68,7 @@ private:
...
@@ -71,7 +68,7 @@ private:
QHash
<
QString
,
QVariantMap
>
mSipAddresses
;
QHash
<
QString
,
QVariantMap
>
mSipAddresses
;
QList
<
const
QVariantMap
*>
mRefs
;
QList
<
const
QVariantMap
*>
mRefs
;
ConferenceHelperModel
*
mConferenceHelperModel
;
ConferenceHelperModel
*
mConferenceHelperModel
=
nullptr
;
};
};
Q_DECLARE_METATYPE
(
std
::
shared_ptr
<
linphone
::
Address
>
);
Q_DECLARE_METATYPE
(
std
::
shared_ptr
<
linphone
::
Address
>
);
...
...
src/components/conference/ConferenceHelperModel.hpp
View file @
e04cdfd7
...
@@ -64,7 +64,7 @@ private:
...
@@ -64,7 +64,7 @@ private:
return
mConferenceAddModel
;
return
mConferenceAddModel
;
}
}
ConferenceAddModel
*
mConferenceAddModel
;
ConferenceAddModel
*
mConferenceAddModel
=
nullptr
;
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
std
::
shared_ptr
<
linphone
::
Conference
>
mConference
;
std
::
shared_ptr
<
linphone
::
Conference
>
mConference
;
...
...
src/components/contact/ContactModel.cpp
View file @
e04cdfd7
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QSet>
#include "../../app/App.hpp"
#include "../../app/App.hpp"
#include "ContactModel.hpp"
#include "ContactModel.hpp"
...
...
src/components/contact/VcardModel.cpp
View file @
e04cdfd7
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include <belcard/belcard.hpp>
#include <belcard/belcard.hpp>
#include <QFileInfo>
#include <QFileInfo>
#include <QImageReader>
#include <QImageReader>
#include <QtDebug>
#include <QUuid>
#include <QUuid>
#include "../../app/App.hpp"
#include "../../app/App.hpp"
...
...
src/components/contacts/ContactsListModel.cpp
View file @
e04cdfd7
...
@@ -20,10 +20,7 @@
...
@@ -20,10 +20,7 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QtDebug>
#include "../../app/App.hpp"
#include "../../app/App.hpp"
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
#include "ContactsListModel.hpp"
#include "ContactsListModel.hpp"
...
...
src/components/contacts/ContactsListProxyModel.cpp
View file @
e04cdfd7
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include <cmath>
#include <cmath>
#include <QDebug>
#include "../../utils/Utils.hpp"
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
...
...
src/components/core/CoreManager.hpp
View file @
e04cdfd7
...
@@ -23,11 +23,10 @@
...
@@ -23,11 +23,10 @@
#ifndef CORE_MANAGER_H_
#ifndef CORE_MANAGER_H_
#define CORE_MANAGER_H_
#define CORE_MANAGER_H_
#include <QFuture>
#include <QFutureWatcher>
#include <QFutureWatcher>
#include <QMutex>
#include "../calls/CallsListModel.hpp"
#include "../calls/CallsListModel.hpp"
#include "../chat/ChatModel.hpp"
#include "../contacts/ContactsListModel.hpp"
#include "../contacts/ContactsListModel.hpp"
#include "../settings/AccountSettingsModel.hpp"
#include "../settings/AccountSettingsModel.hpp"
#include "../settings/SettingsModel.hpp"
#include "../settings/SettingsModel.hpp"
...
@@ -152,15 +151,15 @@ private:
...
@@ -152,15 +151,15 @@ private:
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
std
::
shared_ptr
<
CoreHandlers
>
mHandlers
;
std
::
shared_ptr
<
CoreHandlers
>
mHandlers
;
CallsListModel
*
mCallsListModel
;
CallsListModel
*
mCallsListModel
=
nullptr
;
ContactsListModel
*
mContactsListModel
;
ContactsListModel
*
mContactsListModel
=
nullptr
;
SipAddressesModel
*
mSipAddressesModel
;
SipAddressesModel
*
mSipAddressesModel
=
nullptr
;
SettingsModel
*
mSettingsModel
;
SettingsModel
*
mSettingsModel
=
nullptr
;
AccountSettingsModel
*
mAccountSettingsModel
;
AccountSettingsModel
*
mAccountSettingsModel
=
nullptr
;
QHash
<
QString
,
std
::
weak_ptr
<
ChatModel
>
>
mChatModels
;
QHash
<
QString
,
std
::
weak_ptr
<
ChatModel
>
>
mChatModels
;
QTimer
*
mCbsTimer
;
QTimer
*
mCbsTimer
=
nullptr
;
QFuture
<
void
>
mPromiseBuild
;
QFuture
<
void
>
mPromiseBuild
;
QFutureWatcher
<
void
>
mPromiseWatcher
;
QFutureWatcher
<
void
>
mPromiseWatcher
;
...
...
src/components/notifier/Notifier.cpp
View file @
e04cdfd7
...
@@ -20,11 +20,8 @@
...
@@ -20,11 +20,8 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QMutex>
#include <QQmlComponent>
#include <QQmlComponent>
#include <QQuickWindow>
#include <QScreen>
#include <QScreen>
#include <QtDebug>
#include <QTimer>
#include <QTimer>
#include "../../app/App.hpp"
#include "../../app/App.hpp"
...
...
src/components/other/colors/Colors.cpp
View file @
e04cdfd7
...
@@ -46,7 +46,7 @@ using namespace std;
...
@@ -46,7 +46,7 @@ using namespace std;
Colors
::
Colors
(
QObject
*
parent
)
:
QObject
(
parent
)
{
Colors
::
Colors
(
QObject
*
parent
)
:
QObject
(
parent
)
{
#if LINPHONE_FRIDAY
#if LINPHONE_FRIDAY
if
(
isLinphoneFriday
())
{
if
(
::
isLinphoneFriday
())
{
setProperty
(
"i"
,
QColor
(
"#F48D8D"
));
setProperty
(
"i"
,
QColor
(
"#F48D8D"
));
setProperty
(
"s"
,
QColor
(
"#F58585"
));
setProperty
(
"s"
,
QColor
(
"#F58585"
));
setProperty
(
"t"
,
QColor
(
"#FFC5C5"
));
setProperty
(
"t"
,
QColor
(
"#FFC5C5"
));
...
@@ -54,9 +54,9 @@ Colors::Colors (QObject *parent) : QObject(parent) {
...
@@ -54,9 +54,9 @@ Colors::Colors (QObject *parent) : QObject(parent) {
#endif // if LINPHONE_FRIDAY
#endif // if LINPHONE_FRIDAY
}
}
void
Colors
::
useConfig
(
const
s
td
::
s
hared_ptr
<
linphone
::
Config
>
&
config
)
{
void
Colors
::
useConfig
(
const
shared_ptr
<
linphone
::
Config
>
&
config
)
{
#if LINPHONE_FRIDAY
#if LINPHONE_FRIDAY
if
(
!
isLinphoneFriday
())
if
(
!
::
isLinphoneFriday
())
overrideColors
(
config
);
overrideColors
(
config
);
#else
#else
overrideColors
(
config
);
overrideColors
(
config
);
...
...
src/components/presence/OwnPresenceModel.cpp
View file @
e04cdfd7
...
@@ -20,9 +20,6 @@
...
@@ -20,9 +20,6 @@
* Author: Ghislain MARY
* Author: Ghislain MARY
*/
*/
#include <QtDebug>
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
#include "OwnPresenceModel.hpp"
#include "OwnPresenceModel.hpp"
...
...
src/components/presence/OwnPresenceModel.hpp
View file @
e04cdfd7
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
#ifndef OWN_PRESENCE_MODEL_H_
#ifndef OWN_PRESENCE_MODEL_H_
#define OWN_PRESENCE_MODEL_H_
#define OWN_PRESENCE_MODEL_H_
#include <QObject>
#include "../presence/Presence.hpp"
#include "../presence/Presence.hpp"
// =============================================================================
// =============================================================================
...
...
src/components/presence/Presence.cpp
View file @
e04cdfd7
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
* Author: Ghislain MARY
* Author: Ghislain MARY
*/
*/
#include <QtDebug>
#include "Presence.hpp"
#include "Presence.hpp"
// =============================================================================
// =============================================================================
...
...
src/components/settings/AccountSettingsModel.cpp
View file @
e04cdfd7
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QtDebug>
#include "../../utils/Utils.hpp"
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
...
...
src/components/settings/SettingsModel.cpp
View file @
e04cdfd7
...
@@ -778,6 +778,6 @@ QString SettingsModel::getLogsFolder (const shared_ptr<linphone::Config> &config
...
@@ -778,6 +778,6 @@ QString SettingsModel::getLogsFolder (const shared_ptr<linphone::Config> &config
);
);
}
}
bool
SettingsModel
::
getLogsEnabled
(
const
s
td
::
s
hared_ptr
<
linphone
::
Config
>
&
config
)
{
bool
SettingsModel
::
getLogsEnabled
(
const
shared_ptr
<
linphone
::
Config
>
&
config
)
{
return
config
->
getInt
(
UI_SECTION
,
"logs_enabled"
,
false
);
return
config
->
getInt
(
UI_SECTION
,
"logs_enabled"
,
false
);
}
}
src/components/sip-addresses/SipAddressesModel.cpp
View file @
e04cdfd7
...
@@ -21,12 +21,9 @@
...
@@ -21,12 +21,9 @@
*/
*/
#include <QDateTime>
#include <QDateTime>
#include <QSet>
#include <QtDebug>
#include "../../utils/LinphoneUtils.hpp"
#include "../../utils/LinphoneUtils.hpp"
#include "../../utils/Utils.hpp"
#include "../../utils/Utils.hpp"
#include "../chat/ChatModel.hpp"
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
#include "SipAddressesModel.hpp"
#include "SipAddressesModel.hpp"
...
@@ -213,7 +210,7 @@ bool SipAddressesModel::removeRows (int row, int count, const QModelIndex &paren
...
@@ -213,7 +210,7 @@ bool SipAddressesModel::removeRows (int row, int count, const QModelIndex &paren
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void
SipAddressesModel
::
handleChatModelCreated
(
const
s
td
::
s
hared_ptr
<
ChatModel
>
&
chatModel
)
{
void
SipAddressesModel
::
handleChatModelCreated
(
const
shared_ptr
<
ChatModel
>
&
chatModel
)
{
ChatModel
*
ptr
=
chatModel
.
get
();
ChatModel
*
ptr
=
chatModel
.
get
();
QObject
::
connect
(
ptr
,
&
ChatModel
::
allEntriesRemoved
,
this
,
[
this
,
ptr
]
{
QObject
::
connect
(
ptr
,
&
ChatModel
::
allEntriesRemoved
,
this
,
[
this
,
ptr
]
{
...
...
src/components/sip-addresses/SipAddressesModel.hpp
View file @
e04cdfd7
...
@@ -26,12 +26,11 @@
...
@@ -26,12 +26,11 @@
#include <QAbstractListModel>
#include <QAbstractListModel>
#include <QUrl>
#include <QUrl>
#include "../chat/ChatModel.hpp"
#include "../contact/ContactModel.hpp"
#include "SipAddressObserver.hpp"
#include "SipAddressObserver.hpp"
// =============================================================================
// =============================================================================
class
ChatModel
;
class
CoreHandlers
;
class
CoreHandlers
;
class
SipAddressesModel
:
public
QAbstractListModel
{
class
SipAddressesModel
:
public
QAbstractListModel
{
...
...
src/components/sound-player/SoundPlayer.hpp
View file @
e04cdfd7
...
@@ -99,7 +99,7 @@ private:
...
@@ -99,7 +99,7 @@ private:
bool
mForceClose
=
false
;
bool
mForceClose
=
false
;
QMutex
mForceCloseMutex
;
QMutex
mForceCloseMutex
;
QTimer
*
mForceCloseTimer
;
QTimer
*
mForceCloseTimer
=
nullptr
;
std
::
shared_ptr
<
linphone
::
Player
>
mInternalPlayer
;
std
::
shared_ptr
<
linphone
::
Player
>
mInternalPlayer
;
std
::
shared_ptr
<
Handlers
>
mHandlers
;
std
::
shared_ptr
<
Handlers
>
mHandlers
;
...
...
src/components/timeline/TimelineModel.cpp
View file @
e04cdfd7
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
* Author: Ronan Abhamon
* Author: Ronan Abhamon
*/
*/
#include <QDateTime>
#include "../core/CoreManager.hpp"
#include "../core/CoreManager.hpp"
#include "TimelineModel.hpp"
#include "TimelineModel.hpp"
...
...
src/main.cpp
View file @
e04cdfd7
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include <QDirIterator>
#include <QDirIterator>
#include <QFontDatabase>
#include <QFontDatabase>
#include <QMessageBox>
#include <QMessageBox>
#include <QScreen>
#include "gitversion.h"
#include "gitversion.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment