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
2826692c
Commit
2826692c
authored
Apr 04, 2017
by
Johan Pascal
Committed by
Jehan Monnier
Apr 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set zrtp/lime database path in qt desktop app
parent
b8323378
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
2 deletions
+10
-2
Paths.cpp
linphone-desktop/src/app/paths/Paths.cpp
+5
-0
Paths.hpp
linphone-desktop/src/app/paths/Paths.hpp
+1
-0
CoreManager.cpp
linphone-desktop/src/components/core/CoreManager.cpp
+2
-0
bzrtp
submodules/bzrtp
+1
-1
linphone
submodules/linphone
+1
-1
No files found.
linphone-desktop/src/app/paths/Paths.cpp
View file @
2826692c
...
...
@@ -43,6 +43,7 @@
#define PATH_FRIENDS_LIST "/friends.db"
#define PATH_MESSAGE_HISTORY_LIST "/message-history.db"
#define PATH_ZRTP_SECRETS "/zidcache"
#define PATH_ZRTP_DATA "/zrtp-lime.db"
using
namespace
std
;
...
...
@@ -199,6 +200,10 @@ string Paths::getZrtpSecretsFilepath () {
return
getWritableFilePath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
CacheLocation
)
+
PATH_ZRTP_SECRETS
);
}
string
Paths
::
getZrtpDataFilepath
()
{
return
getWritableFilePath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocalDataLocation
)
+
PATH_ZRTP_DATA
);
}
string
Paths
::
getUserCertificatesDirpath
()
{
return
getWritableDirectoryPath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocalDataLocation
)
+
PATH_USER_CERTIFICATES
);
}
...
...
linphone-desktop/src/app/paths/Paths.hpp
View file @
2826692c
...
...
@@ -45,6 +45,7 @@ namespace Paths {
std
::
string
getFriendsListFilepath
();
std
::
string
getMessageHistoryFilepath
();
std
::
string
getZrtpSecretsFilepath
();
std
::
string
getZrtpDataFilepath
();
void
migrate
();
}
...
...
linphone-desktop/src/components/core/CoreManager.cpp
View file @
2826692c
...
...
@@ -92,6 +92,8 @@ void CoreManager::setDatabasesPaths () {
void
CoreManager
::
setOtherPaths
()
{
m_core
->
setZrtpSecretsFile
(
Paths
::
getZrtpSecretsFilepath
());
/* this one is actually a database but it MUST be set after the zrtp secrets as it allows automatic migration from old version(secrets, xml) to new version (data, sqlite)*/
m_core
->
setZrtpCacheDatabasePath
(
Paths
::
getZrtpDataFilepath
());
m_core
->
setUserCertificatesPath
(
Paths
::
getUserCertificatesDirpath
());
}
...
...
bzrtp
@
8e9b45db
Subproject commit
556335fee2bbb28e6cbe40510499ef15abef85fb
Subproject commit
8e9b45db8a5ab7deac4a3a2c122af3e5f6239695
linphone
@
9368df72
Subproject commit
bfcda8ef5dae3297ed13e6485f6a85fff3e89a46
Subproject commit
9368df723805a7d79f53badb0b64f39a6f6bf978
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