Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80335358
cellulopoolclient.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 31, 05:24
Size
933 B
Mime Type
text/x-c++
Expires
Mon, Sep 2, 05:24 (2 d)
Engine
blob
Format
Raw Data
Handle
20341017
Attached To
R9807 cellulo-lua
cellulopoolclient.h
View Options
#ifndef CELLULOPOOLCLIENT_H
#define CELLULOPOOLCLIENT_H
#include <QtCore>
#include <QObject>
#include "cellulo-qml-plugin/src/comm/relay/CelluloRobotPoolClient.h"
#include <QDebug>
#include <QVector>
using
Cellulo
::
CelluloRobotPoolClient
;
using
Cellulo
::
CelluloBluetooth
;
class
CelluloPoolClientWrapper
:
public
QObject
{
Q_OBJECT
Q_INVOKABLE
void
init_
();
Q_INVOKABLE
void
deinit_
();
CelluloRobotPoolClient
*
client
;
QVector
<
CelluloBluetooth
*>
robots
;
public:
CelluloPoolClientWrapper
();
QVector
<
Cellulo
::
CelluloBluetooth
*>
getRobots
()
{
return
robots
;
}
int
robots_N
;
public
slots
:
void
init
()
{
QMetaObject
::
invokeMethod
(
this
,
"init_"
,
Qt
::
BlockingQueuedConnection
);
}
void
deinit
()
{
QMetaObject
::
invokeMethod
(
this
,
"deinit_"
,
Qt
::
BlockingQueuedConnection
);
}
void
onNewRobot
(
CelluloBluetooth
*
robot
);
};
#endif
// CELLULOPOOLCLIENT_H
Event Timeline
Log In to Comment