diff options
author | dknn <yoann.blein@free.fr> | 2012-06-02 15:31:42 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 08:39:46 (GMT) |
commit | fa9b881e10e7cab8495909818cc61519d24d6117 (patch) | |
tree | 944261259bbece0bb1027a83c6a30e5ec44738a8 /Swiften/Parser/PayloadParsers/RTPPayloadTypeParser.h | |
parent | 21719e2ca06b12d214c32ed24b3ecc2227c8dd07 (diff) | |
download | swift-contrib-fa9b881e10e7cab8495909818cc61519d24d6117.zip swift-contrib-fa9b881e10e7cab8495909818cc61519d24d6117.tar.bz2 |
Payload, serializer and parser for the "payload-type" XML node
Diffstat (limited to 'Swiften/Parser/PayloadParsers/RTPPayloadTypeParser.h')
-rw-r--r-- | Swiften/Parser/PayloadParsers/RTPPayloadTypeParser.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Swiften/Parser/PayloadParsers/RTPPayloadTypeParser.h b/Swiften/Parser/PayloadParsers/RTPPayloadTypeParser.h new file mode 100644 index 0000000..360053f --- /dev/null +++ b/Swiften/Parser/PayloadParsers/RTPPayloadTypeParser.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2011 Yoann Blein + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <Swiften/Elements/RTPPayloadType.h> +#include <Swiften/Parser/GenericPayloadParser.h> + +namespace Swift { + +class RTPPayloadTypeParser : public GenericPayloadParser<RTPPayloadType> { + public: + RTPPayloadTypeParser(); + + virtual void handleStartElement(const std::string& element, const std::string&, const AttributeMap& attributes); + virtual void handleEndElement(const std::string& element, const std::string&); + virtual void handleCharacterData(const std::string&) {}; + + private: + int level; +}; + +} |