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
You need to sign in or sign up before continuing.
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
Show 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 @@
#include <QMenu>
#include <QQmlFileSelector>
#include <QSystemTrayIcon>
#include <QtDebug>
#include <QTimer>
#include "config.h"
...
...
src/app/logger/Logger.cpp
View file @
e04cdfd7
...
...
@@ -159,7 +159,7 @@ void Logger::enable (bool status) {
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
)
return
;
...
...
src/app/paths/Paths.hpp
View file @
e04cdfd7
...
...
@@ -23,35 +23,33 @@
#ifndef PATHS_H_
#define PATHS_H_
#include <string>
#include <QString>
// =============================================================================
namespace
Paths
{
bool
filePathExists
(
const
std
::
string
&
path
);
std
::
string
getAssistantConfigDirPath
();
std
::
string
getAvatarsDirPath
();
std
::
string
getCallHistoryFilePath
();
std
::
string
getCapturesDirPath
();
std
::
string
getConfigFilePath
(
const
QString
&
configPath
=
QString
(),
bool
writable
=
true
);
std
::
string
getFactoryConfigFilePath
();
std
::
string
getFriendsListFilePath
();
std
::
string
getDownloadDirPath
();
std
::
string
getLogsDirPath
();
std
::
string
getMessageHistoryFilePath
();
std
::
string
getPackageDataDirPath
();
std
::
string
getPackageMsPluginsDirPath
();
std
::
string
getPluginsDirPath
();
std
::
string
getRootCaFilePath
();
std
::
string
getThumbnailsDirPath
();
std
::
string
getUserCertificatesDirPath
();
std
::
string
getZrtpDataFilePath
();
std
::
string
getZrtpSecretsFilePath
();
void
migrate
();
bool
filePathExists
(
const
std
::
string
&
path
);
std
::
string
getAssistantConfigDirPath
();
std
::
string
getAvatarsDirPath
();
std
::
string
getCallHistoryFilePath
();
std
::
string
getCapturesDirPath
();
std
::
string
getConfigFilePath
(
const
QString
&
configPath
=
QString
(),
bool
writable
=
true
);
std
::
string
getFactoryConfigFilePath
();
std
::
string
getFriendsListFilePath
();
std
::
string
getDownloadDirPath
();
std
::
string
getLogsDirPath
();
std
::
string
getMessageHistoryFilePath
();
std
::
string
getPackageDataDirPath
();
std
::
string
getPackageMsPluginsDirPath
();
std
::
string
getPluginsDirPath
();
std
::
string
getRootCaFilePath
();
std
::
string
getThumbnailsDirPath
();
std
::
string
getUserCertificatesDirPath
();
std
::
string
getZrtpDataFilePath
();
std
::
string
getZrtpSecretsFilePath
();
void
migrate
();
}
#endif // PATHS_H_
src/components/Components.hpp
View file @
e04cdfd7
...
...
@@ -33,6 +33,7 @@
#include "codecs/AudioCodecsModel.hpp"
#include "codecs/VideoCodecsModel.hpp"
#include "conference/ConferenceAddModel.hpp"
#include "conference/ConferenceModel.hpp"
#include "contacts/ContactsListProxyModel.hpp"
#include "core/CoreManager.hpp"
#include "presence/OwnPresenceModel.hpp"
...
...
src/components/call/CallModel.cpp
View file @
e04cdfd7
...
...
@@ -21,7 +21,6 @@
*/
#include <QDateTime>
#include <QtDebug>
#include <QTimer>
#include "../../app/App.hpp"
...
...
src/components/calls/CallsListModel.cpp
View file @
e04cdfd7
...
...
@@ -20,12 +20,10 @@
* Author: Ronan Abhamon
*/
#include <QDebug>
#include <QTimer>
#include "../../app/App.hpp"
#include "../../utils/Utils.hpp"
#include "../conference/ConferenceHelperModel.hpp"
#include "../core/CoreManager.hpp"
#include "CallsListModel.hpp"
...
...
src/components/camera/Camera.cpp
View file @
e04cdfd7
...
...
@@ -20,6 +20,7 @@
* Author: Ronan Abhamon
*/
#include <QOpenGLFramebufferObject>
#include <QQuickWindow>
#include <QThread>
#include <QTimer>
...
...
src/components/camera/Camera.hpp
View file @
e04cdfd7
...
...
@@ -25,7 +25,6 @@
#include <memory>
#include <QOpenGLFramebufferObject>
#include <QQuickFramebufferObject>
// =============================================================================
...
...
@@ -58,7 +57,7 @@ private:
bool
mIsPreview
=
false
;
std
::
shared_ptr
<
linphone
::
Call
>
mCall
;
QQuickWindow
*
mWindow
;
QQuickWindow
*
mWindow
=
nullptr
;
};
// -----------------------------------------------------------------------------
...
...
@@ -91,7 +90,7 @@ private:
bool
mIsPreview
=
false
;
CallModel
*
mCallModel
=
nullptr
;
QTimer
*
mRefreshTimer
;
QTimer
*
mRefreshTimer
=
nullptr
;
};
#endif // CAMERA_H_
src/components/camera/CameraPreview.cpp
View file @
e04cdfd7
...
...
@@ -20,6 +20,7 @@
* Author: Ronan Abhamon
*/
#include <QOpenGLFramebufferObject>
#include <QQuickWindow>
#include <QThread>
#include <QTimer>
...
...
src/components/camera/CameraPreview.hpp
View file @
e04cdfd7
...
...
@@ -24,7 +24,6 @@
#define CAMERA_PREVIEW_H_
#include <QMutex>
#include <QOpenGLFramebufferObject>
#include <QQuickFramebufferObject>
// =============================================================================
...
...
@@ -50,7 +49,7 @@ private:
ContextInfo
*
mContextInfo
;
bool
mUpdateContextInfo
=
false
;
QQuickWindow
*
mWindow
;
QQuickWindow
*
mWindow
=
nullptr
;
};
// -----------------------------------------------------------------------------
...
...
@@ -67,7 +66,7 @@ public:
QQuickFramebufferObject
::
Renderer
*
createRenderer
()
const
override
;
private:
QTimer
*
mRefreshTimer
;
QTimer
*
mRefreshTimer
=
nullptr
;
static
QMutex
mCounterMutex
;
static
int
mCounter
;
...
...
src/components/chat/ChatModel.cpp
View file @
e04cdfd7
...
...
@@ -24,9 +24,7 @@
#include <QDateTime>
#include <QDesktopServices>
#include <QFileDialog>
#include <QFileInfo>
#include <QImage>
#include <QTimer>
#include <QUuid>
...
...
src/components/conference/ConferenceAddModel.hpp
View file @
e04cdfd7
...
...
@@ -23,10 +23,7 @@
#ifndef CONFERENCE_ADD_MODEL_H_
#define CONFERENCE_ADD_MODEL_H_
#include <memory>
#include "ConferenceHelperModel.hpp"
#include "ConferenceModel.hpp"
// =============================================================================
// Sip addresses list to add to conference.
...
...
@@ -71,7 +68,7 @@ private:
QHash
<
QString
,
QVariantMap
>
mSipAddresses
;
QList
<
const
QVariantMap
*>
mRefs
;
ConferenceHelperModel
*
mConferenceHelperModel
;
ConferenceHelperModel
*
mConferenceHelperModel
=
nullptr
;
};
Q_DECLARE_METATYPE
(
std
::
shared_ptr
<
linphone
::
Address
>
);
...
...
src/components/conference/ConferenceHelperModel.hpp
View file @
e04cdfd7
...
...
@@ -64,7 +64,7 @@ private:
return
mConferenceAddModel
;
}
ConferenceAddModel
*
mConferenceAddModel
;
ConferenceAddModel
*
mConferenceAddModel
=
nullptr
;
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
std
::
shared_ptr
<
linphone
::
Conference
>
mConference
;
...
...
src/components/contact/ContactModel.cpp
View file @
e04cdfd7
...
...
@@ -20,8 +20,6 @@
* Author: Ronan Abhamon
*/
#include <QSet>
#include "../../app/App.hpp"
#include "ContactModel.hpp"
...
...
src/components/contact/VcardModel.cpp
View file @
e04cdfd7
...
...
@@ -23,7 +23,6 @@
#include <belcard/belcard.hpp>
#include <QFileInfo>
#include <QImageReader>
#include <QtDebug>
#include <QUuid>
#include "../../app/App.hpp"
...
...
src/components/contacts/ContactsListModel.cpp
View file @
e04cdfd7
...
...
@@ -20,10 +20,7 @@
* Author: Ronan Abhamon
*/
#include <QtDebug>
#include "../../app/App.hpp"
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
#include "ContactsListModel.hpp"
...
...
src/components/contacts/ContactsListProxyModel.cpp
View file @
e04cdfd7
...
...
@@ -22,8 +22,6 @@
#include <cmath>
#include <QDebug>
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
...
...
src/components/core/CoreManager.hpp
View file @
e04cdfd7
...
...
@@ -23,11 +23,10 @@
#ifndef CORE_MANAGER_H_
#define CORE_MANAGER_H_
#include <QFuture>
#include <QFutureWatcher>
#include <QMutex>
#include "../calls/CallsListModel.hpp"
#include "../chat/ChatModel.hpp"
#include "../contacts/ContactsListModel.hpp"
#include "../settings/AccountSettingsModel.hpp"
#include "../settings/SettingsModel.hpp"
...
...
@@ -152,15 +151,15 @@ private:
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
std
::
shared_ptr
<
CoreHandlers
>
mHandlers
;
CallsListModel
*
mCallsListModel
;
ContactsListModel
*
mContactsListModel
;
SipAddressesModel
*
mSipAddressesModel
;
SettingsModel
*
mSettingsModel
;
AccountSettingsModel
*
mAccountSettingsModel
;
CallsListModel
*
mCallsListModel
=
nullptr
;
ContactsListModel
*
mContactsListModel
=
nullptr
;
SipAddressesModel
*
mSipAddressesModel
=
nullptr
;
SettingsModel
*
mSettingsModel
=
nullptr
;
AccountSettingsModel
*
mAccountSettingsModel
=
nullptr
;
QHash
<
QString
,
std
::
weak_ptr
<
ChatModel
>
>
mChatModels
;
QTimer
*
mCbsTimer
;
QTimer
*
mCbsTimer
=
nullptr
;
QFuture
<
void
>
mPromiseBuild
;
QFutureWatcher
<
void
>
mPromiseWatcher
;
...
...
src/components/notifier/Notifier.cpp
View file @
e04cdfd7
...
...
@@ -20,11 +20,8 @@
* Author: Ronan Abhamon
*/
#include <QMutex>
#include <QQmlComponent>
#include <QQuickWindow>
#include <QScreen>
#include <QtDebug>
#include <QTimer>
#include "../../app/App.hpp"
...
...
src/components/other/colors/Colors.cpp
View file @
e04cdfd7
...
...
@@ -46,7 +46,7 @@ using namespace std;
Colors
::
Colors
(
QObject
*
parent
)
:
QObject
(
parent
)
{
#if LINPHONE_FRIDAY
if
(
isLinphoneFriday
())
{
if
(
::
isLinphoneFriday
())
{
setProperty
(
"i"
,
QColor
(
"#F48D8D"
));
setProperty
(
"s"
,
QColor
(
"#F58585"
));
setProperty
(
"t"
,
QColor
(
"#FFC5C5"
));
...
...
@@ -54,9 +54,9 @@ Colors::Colors (QObject *parent) : QObject(parent) {
#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
(
!
isLinphoneFriday
())
if
(
!
::
isLinphoneFriday
())
overrideColors
(
config
);
#else
overrideColors
(
config
);
...
...
src/components/presence/OwnPresenceModel.cpp
View file @
e04cdfd7
...
...
@@ -20,9 +20,6 @@
* Author: Ghislain MARY
*/
#include <QtDebug>
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
#include "OwnPresenceModel.hpp"
...
...
src/components/presence/OwnPresenceModel.hpp
View file @
e04cdfd7
...
...
@@ -23,8 +23,6 @@
#ifndef OWN_PRESENCE_MODEL_H_
#define OWN_PRESENCE_MODEL_H_
#include <QObject>
#include "../presence/Presence.hpp"
// =============================================================================
...
...
src/components/presence/Presence.cpp
View file @
e04cdfd7
...
...
@@ -20,8 +20,6 @@
* Author: Ghislain MARY
*/
#include <QtDebug>
#include "Presence.hpp"
// =============================================================================
...
...
src/components/settings/AccountSettingsModel.cpp
View file @
e04cdfd7
...
...
@@ -20,8 +20,6 @@
* Author: Ronan Abhamon
*/
#include <QtDebug>
#include "../../utils/Utils.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
);
}
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
);
}
src/components/sip-addresses/SipAddressesModel.cpp
View file @
e04cdfd7
...
...
@@ -21,12 +21,9 @@
*/
#include <QDateTime>
#include <QSet>
#include <QtDebug>
#include "../../utils/LinphoneUtils.hpp"
#include "../../utils/Utils.hpp"
#include "../chat/ChatModel.hpp"
#include "../core/CoreManager.hpp"
#include "SipAddressesModel.hpp"
...
...
@@ -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
();
QObject
::
connect
(
ptr
,
&
ChatModel
::
allEntriesRemoved
,
this
,
[
this
,
ptr
]
{
...
...
src/components/sip-addresses/SipAddressesModel.hpp
View file @
e04cdfd7
...
...
@@ -26,12 +26,11 @@
#include <QAbstractListModel>
#include <QUrl>
#include "../chat/ChatModel.hpp"
#include "../contact/ContactModel.hpp"
#include "SipAddressObserver.hpp"
// =============================================================================
class
ChatModel
;
class
CoreHandlers
;
class
SipAddressesModel
:
public
QAbstractListModel
{
...
...
src/components/sound-player/SoundPlayer.hpp
View file @
e04cdfd7
...
...
@@ -99,7 +99,7 @@ private:
bool
mForceClose
=
false
;
QMutex
mForceCloseMutex
;
QTimer
*
mForceCloseTimer
;
QTimer
*
mForceCloseTimer
=
nullptr
;
std
::
shared_ptr
<
linphone
::
Player
>
mInternalPlayer
;
std
::
shared_ptr
<
Handlers
>
mHandlers
;
...
...
src/components/timeline/TimelineModel.cpp
View file @
e04cdfd7
...
...
@@ -20,8 +20,6 @@
* Author: Ronan Abhamon
*/
#include <QDateTime>
#include "../core/CoreManager.hpp"
#include "TimelineModel.hpp"
...
...
src/main.cpp
View file @
e04cdfd7
...
...
@@ -23,7 +23,6 @@
#include <QDirIterator>
#include <QFontDatabase>
#include <QMessageBox>
#include <QScreen>
#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