/* * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include #include #include namespace Swift { class SWIFTEN_API ConnectionServer { public: enum Error { Conflict, UnknownError }; virtual ~ConnectionServer(); virtual HostAddressPort getAddressPort() const = 0; virtual boost::optional tryStart() = 0; // FIXME: This should become the new start virtual void start() = 0; virtual void stop() = 0; boost::signals2::signal)> onNewConnection; }; }