switch to datastore

This commit is contained in:
DenioD
2020-05-08 22:36:24 +02:00
parent 5006a8c7d7
commit eb263e5e0b
3 changed files with 96 additions and 38 deletions

View File

@@ -8,6 +8,8 @@ class ChatDataStore
private:
static bool instanced;
static ChatDataStore* instance;
Ui::MainWindow* ui;
MainWindow* main;
std::map<QString, ChatItem> data;
ChatDataStore()
{
@@ -20,6 +22,8 @@ class ChatDataStore
void setData(QString key, ChatItem value);
ChatItem getData(QString key);
std::map<QString, ChatItem> getAllRawChatItems();
std::map<QString, ChatItem> getAllContactRequests();
std::map<QString, ChatItem> getAllMemos();
QString dump();
~ChatDataStore()