summaryrefslogtreecommitdiff
path: root/src/client/Client.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-24 20:19:19 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-24 20:19:19 (GMT)
commit97b35bc47059315d4138c8e0827842d2c03de152 (patch)
treefeaf7a8c018982ba9d7ca1b8e6e15294abfdfc84 /src/client/Client.h
parent04488081d3fa0cd3dfb2939e5d902bc894df150d (diff)
downloadpowder-97b35bc47059315d4138c8e0827842d2c03de152.zip
powder-97b35bc47059315d4138c8e0827842d2c03de152.tar.gz
Various
Diffstat (limited to 'src/client/Client.h')
-rw-r--r--src/client/Client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/Client.h b/src/client/Client.h
index c974524..644fb06 100644
--- a/src/client/Client.h
+++ b/src/client/Client.h
@@ -10,6 +10,11 @@
#include "search/Save.h"
#include "Singleton.h"
+enum LoginStatus
+{
+ LoginPasswordInvalid, LoginUsernameInvalid, LoginOkay, LoginBanned, LoginError
+};
+
class Client: public Singleton<Client>
{
private:
@@ -23,6 +28,7 @@ private:
public:
Client();
~Client();
+ LoginStatus Login(string username, string password);
void ClearThumbnailRequests();
std::vector<Save*> * SearchSaves(int start, int count, string query, string sort, int & resultCount);
Thumbnail * GetPreview(int saveID, int saveDate);