summaryrefslogtreecommitdiff
path: root/src/client/Client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Client.h')
-rw-r--r--src/client/Client.h16
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();