00001 /* 00002 * Copyright (c) 2010 Kevin Smith 00003 * Licensed under the GNU General Public License v3. 00004 * See Documentation/Licenses/GPLv3.txt for more information. 00005 */ 00006 00007 #pragma once 00008 00009 #include <string> 00010 00011 #include <Swiften/Elements/Payload.h> 00012 00013 namespace Swift { 00014 class ChatState : public Payload { 00015 public: 00016 enum ChatStateType {Active, Composing, Paused, Inactive, Gone}; 00017 ChatState(ChatStateType state = Active) { 00018 state_ = state; 00019 } 00020 00021 ChatStateType getChatState() const { return state_; } 00022 void setChatState(ChatStateType state) {state_ = state;} 00023 00024 private: 00025 ChatStateType state_; 00026 }; 00027 }