MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
RemoteControl.hpp
1 #pragma once
2 
3 #include "Export.hpp"
4 
5 #include <memory>
6 
7 #include <QString>
8 
9 #include "GraphTypes.hpp"
10 #include "ChangeListener.hpp"
11 #include "Configuration.hpp"
12 
13 namespace Showcase
14 {
15 
17  class SHOWCASE_API RemoteControl
18  {
19  public:
20  RemoteControl();
21  ~RemoteControl();
22 
23  void initConnection(const QString& address);
24  void shutDown();
25 
26  // atm can only monitor single run config!
27  void monitor(RunConfigurationPtr runConfig);
28  void unmonitor(RunConfigurationPtr runConfig);
29 
30  void setMonitorAssets(bool monitor);
31 
32  void connectionStatusChanged(bool hasConnection);
33 
34  ChangeListenerPtr changeListener() const;
35 
36  void setDBServer(const QString& server);
37  const QString& DBServer() const;
38 
39  int editorPort() const;
40  void setEditorPort(int port);
41 
42  QString serverVersion() const;
43  void setServerVersion(const QString & version);
44 
45  void notify(const NodeId& id);
46  void notifyAll();
47 
48  NodeId componentThemeNodeId(const QString & componentName);
49 
50  void queueMessage(const QByteArray & message);
51 
52  private:
53  class D;
54  std::unique_ptr<D> m_d;
55  };
56  typedef std::shared_ptr<RemoteControl> RemoteControlPtr;
57 
58 
59 }