spectrum2/spectrum/src/frontends/xmpp/storageparser.h

23 lines
648 B
C++

#pragma once
#include <boost/optional.hpp>
#include "Swiften/Elements/PrivateStorage.h"
#include "Swiften/Parser/GenericPayloadParser.h"
namespace Transport {
class StorageParser : public Swift::GenericPayloadParser<Swift::PrivateStorage> {
public:
StorageParser();
private:
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;
std::auto_ptr<Swift::PayloadParser> currentPayloadParser;
};
}