ImagingTools Core SDK
IServerDispatcher.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/IPolymorphic.h>
7
8// ImtCore includes
9#include <imtrest/IServer.h>
10#include <imtcom/IServerConnectionInterface.h>
11
12
13namespace imtcom
14{
15
16
120class IServerDispatcher : virtual public istd::IPolymorphic
121{
122public:
151
178
216 virtual imtrest::IServer::ServerStatus GetServerStatus(IServerConnectionInterface::ProtocolType protocolType) const = 0;
217
249};
250
251
252} // namespace imtcom
253
254
ProtocolType
Communication protocols supported by server connections.
QList< ProtocolType > ProtocolTypes
List of protocol types for querying supported protocols.
Interface for managing the lifecycle of multi-protocol servers.
virtual bool StopServer(IServerConnectionInterface::ProtocolType protocolType)=0
Stop the server for the specified protocol.
virtual imtrest::IServer::ServerStatus GetServerStatus(IServerConnectionInterface::ProtocolType protocolType) const =0
Query the operational status of a server.
virtual IServerConnectionInterface::ProtocolTypes GetSupportedProtocols() const =0
Get the list of protocols supported by this dispatcher.
virtual bool StartServer(IServerConnectionInterface::ProtocolType protocolType)=0
Start a server for the specified protocol.
Server Communication and Connection Management Module.