diff options
Diffstat (limited to 'src/client/Client.h')
| -rw-r--r-- | src/client/Client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/Client.h b/src/client/Client.h index 642fd63..bd33273 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -46,6 +46,7 @@ class ClientListener; class Client: public Singleton<Client> { private: std::string messageOfTheDay; + std::vector<std::pair<std::string, std::string> > serverNotifications; void * versionCheckRequest; bool updateAvailable; @@ -73,6 +74,7 @@ private: void notifyUpdateAvailable(); void notifyAuthUserChanged(); void notifyMessageOfTheDay(); + void notifyNewNotification(std::pair<std::string, std::string> notification); //Config file handle json::Object configDocument; @@ -92,6 +94,9 @@ public: std::vector<unsigned char> ReadFile(std::string filename); + void AddServerNotification(std::pair<std::string, std::string> notification); + std::vector<std::pair<std::string, std::string> > GetServerNotifications(); + void SetMessageOfTheDay(std::string message); std::string GetMessageOfTheDay(); |
