diff options
Diffstat (limited to 'Slimber/MenuletController.h')
-rw-r--r-- | Slimber/MenuletController.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Slimber/MenuletController.h b/Slimber/MenuletController.h new file mode 100644 index 0000000..4073900 --- /dev/null +++ b/Slimber/MenuletController.h @@ -0,0 +1,30 @@ +#pragma once + +#include <vector> + +#include "Swiften/Base/String.h" + +class Menulet; + +class MenuletController { + public: + enum Status { + Online, + Offline + }; + + MenuletController(Menulet*); + virtual ~MenuletController(); + + void setXMPPStatus(const Swift::String& message, Status status); + void setUserNames(const std::vector<Swift::String>&); + + private: + void update(); + + private: + Menulet* menulet; + Status xmppStatus; + Swift::String xmppStatusMessage; + std::vector<Swift::String> linkLocalUsers; +}; |