Files @ 285502c6ef00
Branch filter:

Location: libtransport.git/include/Swiften/Parser/PayloadParsers/PubSubPayloadParser.h

Vitaly Takmazov
Merge branch 'master' of https://github.com/hanzz/libtransport
/*
 * Copyright (c) 2012 Jan Kaluza
 * Licensed under the Simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <boost/optional.hpp>

#include <Swiften/Elements/PubSubPayload.h>
#include <Swiften/Parser/GenericPayloadTreeParser.h>
#include <Swiften/Parser/PayloadParsers/MUCItemParser.h>

namespace Swift {
	class PayloadParserFactoryCollection;
	class PubSubPayloadParser : public GenericPayloadTreeParser<PubSubPayload> {
		public:
			PubSubPayloadParser(PayloadParserFactoryCollection* collection) : factories(collection) {}
			virtual void handleTree(ParserElement::ref root);
		private:
			PayloadParserFactoryCollection* factories;
	};
}