Files @ d11fdaf3e279
Branch filter:

Location: libtransport.git/spectrum/src/frontends/xmpp/storageparser.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.
#pragma once

#include <boost/optional.hpp>

#include "Swiften/SwiftenCompat.h"
#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;
			SWIFTEN_UNIQUE_PTR<Swift::PayloadParser> currentPayloadParser;
	};
}