Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91153131
cellulobluetoothscannerwrapper.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
Fri, Nov 8, 10:43
Size
977 B
Mime Type
text/x-c++
Expires
Sun, Nov 10, 10:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22198279
Attached To
R9807 cellulo-lua
cellulobluetoothscannerwrapper.h
View Options
#ifndef CELLULOBLUETOOTHSCANNERWRAPPER_H
#define CELLULOBLUETOOTHSCANNERWRAPPER_H
#include <QtCore>
#include <QObject>
#include "cellulo-qml-plugin/src/comm/CelluloBluetoothScanner.h"
#include <QDebug>
#include <QVector>
using
Cellulo
::
CelluloBluetoothScanner
;
using
Cellulo
::
CelluloBluetooth
;
class
CelluloBluetoothScannerWrapper
:
public
QObject
{
Q_OBJECT
Q_INVOKABLE
void
init_
();
Q_INVOKABLE
void
deinit_
();
CelluloBluetoothScanner
*
scanner
;
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
// CELLULOBLUETOOTHSCANNERWRAPPER_H
Event Timeline
Log In to Comment