OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
GuiAPIManager.h
Go to the documentation of this file.
1
5// ###########################################################################################################################################################################################################################################################################################################################
6
7#pragma once
8
9// OpenTwin header
11#include "OTCore/ServiceBase.h"
13
14namespace ot {
15
20 public:
22 static GuiAPIManager& instance(void);
23
26 void frontendConnected(const ServiceBase& _serviceInformation);
27
29 void frontendDisconnected(void);
30
32 bool isFrontendConnected(void) const { return !(m_frontend.getServiceURL().empty()); };
33
36 bool sendQueuedRequestToFrontend(const std::string& _message);
37
38 private:
39 ServiceBase m_frontend;
40
43
46 };
47
48}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_GUIAPI_API_EXPORT
Definition OTGuiAPIAPIExport.h:6
The GuiAPIManager singleton manages the frontend information and provides a message sending method.
Definition GuiAPIManager.h:18
bool isFrontendConnected(void) const
Returns true if the frontend information was set.
Definition GuiAPIManager.h:32
General service information. The ServiceBase class is used to store the general service information.
Definition ServiceBase.h:24
Definition Connector.h:8