mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
fix(app): coding style
This commit is contained in:
parent
85ce8f7166
commit
38ca7d5198
3 changed files with 10 additions and 7 deletions
|
|
@ -42,8 +42,8 @@
|
|||
#define PATH_FACTORY_CONFIG "/linphonerc-factory"
|
||||
#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"
|
||||
#define PATH_ZRTP_SECRETS "/zidcache"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
@ -196,14 +196,14 @@ string Paths::getCapturesDirpath () {
|
|||
return getWritableDirectoryPath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + PATH_CAPTURES);
|
||||
}
|
||||
|
||||
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::getZrtpSecretsFilepath () {
|
||||
return getWritableFilePath(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + PATH_ZRTP_SECRETS);
|
||||
}
|
||||
|
||||
string Paths::getUserCertificatesDirpath () {
|
||||
return getWritableDirectoryPath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + PATH_USER_CERTIFICATES);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ namespace Paths {
|
|||
std::string getFactoryConfigFilepath ();
|
||||
std::string getFriendsListFilepath ();
|
||||
std::string getMessageHistoryFilepath ();
|
||||
std::string getZrtpSecretsFilepath ();
|
||||
std::string getZrtpDataFilepath ();
|
||||
std::string getZrtpSecretsFilepath ();
|
||||
|
||||
void migrate ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,8 +92,11 @@ 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)*/
|
||||
|
||||
// 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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue