trikRuntime
trikCommunicator.h
Go to the documentation of this file.
1 /* Copyright 2013 - 2015 Yurii Litvinov, CyberTech Labs Ltd.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License. */
14 
15 #pragma once
16 
17 #include <QtCore/QString>
18 #include <QtCore/QScopedPointer>
19 
21 #include <trikNetwork/trikServer.h>
22 
23 namespace trikScriptRunner {
24 class TrikScriptRunner;
25 }
26 
27 namespace trikControl {
28 class BrickInterface;
29 }
30 
31 namespace trikNetwork {
32 class MailboxInterface;
33 }
34 
35 namespace trikCommunicator {
36 
37 class Connection;
38 
44 {
45  Q_OBJECT
46 
47 public:
53  );
54 
59  explicit TrikCommunicator(trikScriptRunner::TrikScriptRunner &runner, const QString &configVersion);
60 
61  ~TrikCommunicator() override;
62 
63 signals:
65  void stopCommandReceived();
66 
67 private:
69  , const QString &configVersion);
70 
71  Connection *connectionFactory();
72 
75 
78  const QString mConfigVersion;
79 };
80 
81 }
Definition: trikCommunicator.h:23
General wrapper for other executors (such as Python, JavaScript)
Definition: trikScriptRunner.h:27
Class that enables connection with a client running on computer (TRIKStudio or remote control)...
Definition: trikCommunicator.h:43
Server that can handle multiple clients. Actual work is done in separate threads by Connection object...
Definition: trikServer.h:31
Definition: trikCommunicator.h:31
Class that serves one client of TrikCommunicator.
Definition: connection.h:37
Definition: trikCommunicator.h:27
Definition: trikCommunicator.h:35
Allows communication between robots.
Definition: mailboxInterface.h:31
Interface representing TRIK controller board and devices installed on it, also provides access to per...
Definition: brickInterface.h:46