Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F56592453
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
Fri, Mar 29, 08:28
Size
613 B
Mime Type
text/x-c
Expires
Sun, Mar 31, 09:28 (2 d)
Engine
blob
Format
Raw Data
Handle
16726396
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