diff options
Diffstat (limited to 'Swiften/Elements/ChatState.h')
| -rw-r--r-- | Swiften/Elements/ChatState.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Elements/ChatState.h b/Swiften/Elements/ChatState.h index a7a8b1d..5f0bb9b 100644 --- a/Swiften/Elements/ChatState.h +++ b/Swiften/Elements/ChatState.h @@ -8,18 +8,21 @@ #include <string> #include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { class SWIFTEN_API ChatState : public Payload { public: + typedef boost::shared_ptr<ChatState> ref; + + public: enum ChatStateType {Active, Composing, Paused, Inactive, Gone}; ChatState(ChatStateType state = Active) { state_ = state; } ChatStateType getChatState() const { return state_; } void setChatState(ChatStateType state) {state_ = state;} private: |
Swift