diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-22 18:04:38 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-22 18:04:38 (GMT) |
| commit | eb52f759de6f0805865fb7f31444f2b1421b4d25 (patch) | |
| tree | 49b259400c8946a8bea84c7af3f758f86a59d976 /src/client/Client.h | |
| parent | 55d90a44a8425f70b08d864570e255f4bad8ba4c (diff) | |
| download | powder-eb52f759de6f0805865fb7f31444f2b1421b4d25.zip powder-eb52f759de6f0805865fb7f31444f2b1421b4d25.tar.gz | |
Success/Failure return from Asyn Task, Prompt to visit website upon update failure
Diffstat (limited to 'src/client/Client.h')
| -rw-r--r-- | src/client/Client.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/Client.h b/src/client/Client.h index 8c1fae7..b2822d4 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -27,11 +27,25 @@ enum RequestStatus { RequestOkay, RequestFailure }; +class UpdateInfo +{ +public: + enum BuildType { Stable, Beta, Snapshot }; + std::string File; + int Major; + int Minor; + int Build; + BuildType Type; + UpdateInfo() : Major(0), Minor(0), Build(0), File(""), Type(Stable) {} + UpdateInfo(int major, int minor, int build, std::string file, BuildType type) : Major(major), Minor(minor), Build(build), File(file), Type(type) {} +}; + class ClientListener; class Client: public Singleton<Client> { private: void * versionCheckRequest; bool updateAvailable; + UpdateInfo updateInfo; std::string lastError; @@ -59,6 +73,8 @@ private: public: vector<ClientListener*> listeners; + UpdateInfo GetUpdateInfo(); + Client(); ~Client(); |
