diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-20 12:40:18 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-20 12:40:18 (GMT) |
| commit | 2be9c925088c16beb144dd9932202416d00ff581 (patch) | |
| tree | 51f8ccbf2b0b051890c5f5d12fa28a67635c06c2 /src/client/Client.h | |
| parent | 9769239af69695e9a7f8cf103a197695ecf691e0 (diff) | |
| download | powder-2be9c925088c16beb144dd9932202416d00ff581.zip powder-2be9c925088c16beb144dd9932202416d00ff581.tar.gz | |
OpenGL canvas for Windows, Notifications for main Game, Update checker in Client (+ other client triggered events)
Diffstat (limited to 'src/client/Client.h')
| -rw-r--r-- | src/client/Client.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/Client.h b/src/client/Client.h index 6c1baa5..6cdedd4 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -27,8 +27,13 @@ enum RequestStatus { RequestOkay, RequestFailure }; +class ClientListener; class Client: public Singleton<Client> { private: + void * versionCheckRequest; + bool updateAvailable; + + std::string lastError; list<string> stampIDs; @@ -46,13 +51,19 @@ private: int activeThumbRequestCompleteTimes[IMGCONNS]; std::string activeThumbRequestIDs[IMGCONNS]; void updateStamps(); + + void notifyUpdateAvailable(); public: + vector<ClientListener*> listeners; + //Config file handle json::Object configDocument; Client(); ~Client(); + void AddListener(ClientListener * listener); + RequestStatus ExecVote(int saveID, int direction); RequestStatus UploadSave(SaveInfo * save); @@ -82,6 +93,7 @@ public: std::string GetLastError() { return lastError; } + void Tick(); }; #endif // CLIENT_H |
