Files @ d11fdaf3e279
Branch filter:

Location: libtransport.git/spectrum/src/frontends/xmpp/BlockParser.h

Sebastian Krzyszkowiak
systemd: wait for network-online.target and add WantedBy=multi-user.target

Thanks to that, "systemctl enable spectrum2" does what expected, that is
makes Spectrum2 start on boot. Also, network.target doesn't tell anything
meaningful - it's just that the network stack is available.
Adding network-online.target makes sure that the network interfaces are up
before starting Spectrum2.
/*
 * Copyright (c) 2011 Jan Kaluza
 * Licensed under the Simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <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_;
	};
}