set passphrase on initial install #64
This commit is contained in:
@@ -33,6 +33,18 @@ ChatItem ChatDataStore::getData(QString key)
|
||||
return this->data[key];
|
||||
}
|
||||
|
||||
QString ChatDataStore::getPassword()
|
||||
{
|
||||
|
||||
return _password;
|
||||
}
|
||||
|
||||
void ChatDataStore::setPassword(QString password)
|
||||
{
|
||||
|
||||
_password = password;
|
||||
}
|
||||
|
||||
QString ChatDataStore::dump()
|
||||
{
|
||||
json chats;
|
||||
|
||||
@@ -25,6 +25,11 @@ class ChatDataStore
|
||||
std::map<QString, ChatItem> getAllNewContactRequests();
|
||||
std::map<QString, ChatItem> getAllOldContactRequests();
|
||||
std::map<QString, ChatItem> getAllMemos();
|
||||
QString getPassword();
|
||||
|
||||
void setPassword(QString Password);
|
||||
QString _password;
|
||||
|
||||
QString dump();
|
||||
|
||||
~ChatDataStore()
|
||||
|
||||
Reference in New Issue
Block a user