diff --git a/include/transport/BlockParser.h b/include/transport/BlockParser.h new file mode 100644 index 0000000000000000000000000000000000000000..bf9c544b2dfeb851780f69f4d0795ee5b53ff968 --- /dev/null +++ b/include/transport/BlockParser.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2011 Jan Kaluza + * Licensed under the Simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include +#include + +// This payload is NOT part of ANY XEP and it is only +// libtransport related extension. +namespace Transport { + class BlockParser : public Swift::GenericPayloadParser { + public: + BlockParser(); + + virtual void handleStartElement(const std::string& element, const std::string&, const Swift::AttributeMap& attributes); + virtual void handleEndElement(const std::string& element, const std::string&); + virtual void handleCharacterData(const std::string& data); + +// private: +// int level_; + }; +}