diff options
| author | Kevin Smith <git@kismith.co.uk> | 2010-02-16 09:05:37 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2010-02-17 08:05:08 (GMT) | 
| commit | 5a334fd9b676564a8915baad312d92bd86358eec (patch) | |
| tree | aaecbbccd9cddcb843c126b8c022f1d1e667efde /Swiften/Parser/PayloadParsers/ChatStateParser.h | |
| parent | 231c2cb6d00061e70860626467107f4c63f359a0 (diff) | |
| download | swift-contrib-5a334fd9b676564a8915baad312d92bd86358eec.zip swift-contrib-5a334fd9b676564a8915baad312d92bd86358eec.tar.bz2  | |
Preliminary Chat State Notifications support.
Only covers Active and Composing (Which is very possibly all we care about).
Diffstat (limited to 'Swiften/Parser/PayloadParsers/ChatStateParser.h')
| -rw-r--r-- | Swiften/Parser/PayloadParsers/ChatStateParser.h | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/Swiften/Parser/PayloadParsers/ChatStateParser.h b/Swiften/Parser/PayloadParsers/ChatStateParser.h new file mode 100644 index 0000000..cd212c0 --- /dev/null +++ b/Swiften/Parser/PayloadParsers/ChatStateParser.h @@ -0,0 +1,18 @@ +#pragma once + +#include "Swiften/Elements/ChatState.h" +#include "Swiften/Parser/GenericPayloadParser.h" + +namespace Swift { +	class ChatStateParser : public GenericPayloadParser<ChatState> { +		public: +			ChatStateParser(); + +			virtual void handleStartElement(const String& element, const String&, const AttributeMap& attributes); +			virtual void handleEndElement(const String& element, const String&); +			virtual void handleCharacterData(const String& data); + +		private: +			int level_; +	}; +}  | 
 Swift