26 lines
776 B
C++
26 lines
776 B
C++
/*
|
|
* Copyright (c) 2011 Jan Kaluza
|
|
* Licensed under the Simplified BSD license.
|
|
* See Documentation/Licenses/BSD-simplified.txt for more information.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <transport/BlockPayload.h>
|
|
#include <Swiften/Parser/GenericPayloadParser.h>
|
|
|
|
// This payload is NOT part of ANY XEP and it is only
|
|
// libtransport related extension.
|
|
namespace Transport {
|
|
class BlockParser : public Swift::GenericPayloadParser<BlockPayload> {
|
|
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_;
|
|
};
|
|
}
|