Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F60160112
cellulopoolclient.cpp
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, Apr 27, 23:18
Size
614 B
Mime Type
text/x-c
Expires
Mon, Apr 29, 23:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17266522
Attached To
R9807 cellulo-lua
cellulopoolclient.cpp
View Options
#include "cellulopoolclient.h"
void
CelluloPoolClientWrapper
::
init_
()
{
client
=
new
CelluloRobotPoolClient
;
connect
(
client
,
&
CelluloRobotPoolClient
::
newRobotFound
,
this
,
&
CelluloPoolClientWrapper
::
onNewRobot
);
qDebug
()
<<
"POOL Object created"
;
}
void
CelluloPoolClientWrapper
::
deinit_
()
{
client
->
deleteLater
();
client
=
nullptr
;
}
CelluloPoolClientWrapper
::
CelluloPoolClientWrapper
()
{
robots_N
=
0
;
}
void
CelluloPoolClientWrapper
::
onNewRobot
(
CelluloBluetooth
*
robot
)
{
qDebug
()
<<
"ATTENTION ROBOT FOUND "
<<
robot
->
getMacAddr
();
robots
.
push_back
(
robot
);
robots_N
++
;
}
Event Timeline
Log In to Comment