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
1f6e1483
Commit
1f6e1483
authored
Jun 06, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(components/core/CoreManager): set user agent
parent
1db3c9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
CoreManager.cpp
linphone-desktop/src/components/core/CoreManager.cpp
+7
-4
No files found.
linphone-desktop/src/components/core/CoreManager.cpp
View file @
1f6e1483
...
...
@@ -29,6 +29,10 @@
#include "CoreManager.hpp"
#ifndef LINPHONE_QT_GIT_VERSION
#define LINPHONE_QT_GIT_VERSION "unknown"
#endif // ifndef LINPHONE_QT_GIT_VERSION
#define CBS_CALL_INTERVAL 20
using
namespace
std
;
...
...
@@ -40,8 +44,7 @@ CoreManager *CoreManager::mInstance = nullptr;
CoreManager
::
CoreManager
(
QObject
*
parent
,
const
QString
&
configPath
)
:
QObject
(
parent
),
mHandlers
(
make_shared
<
CoreHandlers
>
(
this
))
{
mPromiseBuild
=
QtConcurrent
::
run
(
this
,
&
CoreManager
::
createLinphoneCore
,
configPath
);
QObject
::
connect
(
&
mPromiseWatcher
,
&
QFutureWatcher
<
void
>::
finished
,
this
,
[]()
{
QObject
::
connect
(
&
mPromiseWatcher
,
&
QFutureWatcher
<
void
>::
finished
,
this
,
[]()
{
mInstance
->
mCallsListModel
=
new
CallsListModel
(
mInstance
);
mInstance
->
mContactsListModel
=
new
ContactsListModel
(
mInstance
);
mInstance
->
mSipAddressesModel
=
new
SipAddressesModel
(
mInstance
);
...
...
@@ -52,8 +55,7 @@ CoreManager::CoreManager (QObject *parent, const QString &configPath) : QObject(
mInstance
->
mCbsTimer
->
start
();
emit
mInstance
->
coreCreated
();
}
);
});
mPromiseWatcher
.
setFuture
(
mPromiseBuild
);
}
...
...
@@ -134,6 +136,7 @@ void CoreManager::createLinphoneCore (const QString &configPath) {
mCore
->
setVideoDisplayFilter
(
"MSOGL"
);
mCore
->
usePreviewWindow
(
true
);
mCore
->
setUserAgent
(
"Linphone Desktop"
,
LINPHONE_QT_GIT_VERSION
);
setDatabasesPaths
();
setOtherPaths
();
...
...
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