diff options
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client.h b/src/client.h index f44d8bf2..8d2c23d5 100644 --- a/src/client.h +++ b/src/client.h @@ -22,7 +22,7 @@ #ifndef CLIENT_H #define CLIENT_H -#include "configlistener.h" +#include "listener.h" #include "net/serverinfo.h" @@ -68,6 +68,12 @@ extern LoginData loginData; int get_elapsed_time(int start_time); /** + * Returns if this call and the last call were done for the same + * selected index and within a short time. + */ +bool isDoubleClick(int selected); + +/** * All client states. */ enum State { @@ -113,7 +119,7 @@ enum State { * The core part of the client. This class initializes all subsystems, runs * the event loop, and shuts everything down again. */ -class Client : public ConfigListener, public gcn::ActionListener +class Client : public Mana::Listener, public gcn::ActionListener { public: /** @@ -142,6 +148,7 @@ public: std::string brandingPath; std::string updateHost; std::string dataPath; + std::string chatLogDir; std::string configDir; std::string localDataDir; std::string screenshotDir; @@ -178,7 +185,7 @@ public: static const std::string &getScreenshotDirectory() { return instance()->mScreenshotDir; } - void optionChanged(const std::string &name); + void event(Channels channel, const Mana::Event &event); void action(const gcn::ActionEvent &event); private: |