/* * Copyright (c) 2010-2017 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include #include #include namespace Swift { class PayloadParserFactoryCollection; class PayloadSerializerCollection; class ToplevelElement; class XMLParserFactory; class SWIFTEN_API OutgoingLinkLocalSession : public Session { public: OutgoingLinkLocalSession( const JID& localJID, const JID& remoteJID, std::shared_ptr connection, PayloadParserFactoryCollection* payloadParserFactories, PayloadSerializerCollection* payloadSerializers, XMLParserFactory* xmlParserFactory); void queueElement(std::shared_ptr element); private: void handleSessionStarted(); void handleElement(std::shared_ptr); void handleStreamStart(const ProtocolHeader&); private: std::vector > queuedElements_; }; }