summaryrefslogtreecommitdiff
path: root/src/client/Client.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-12-09 12:05:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-12-09 12:05:27 (GMT)
commit38862a78d119d4ac8cd8495436e75d00f3ee896e (patch)
treeea1e21878adde1bda829454049c73e92f1cab513 /src/client/Client.h
parent6478ed121ce17cf7d7beaab2deb1953da63d283d (diff)
downloadpowder-38862a78d119d4ac8cd8495436e75d00f3ee896e.zip
powder-38862a78d119d4ac8cd8495436e75d00f3ee896e.tar.gz
New Conversation notifications
Diffstat (limited to 'src/client/Client.h')
-rw-r--r--src/client/Client.h5
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();