You need to sign in or sign up before continuing.
Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
class ControllerClientCallbackHandler : public ControllerClientCallback {
public:
~ControllerClientCallbackHandler() { }
void ConnectedToControllerServiceCB(const LSFString& controllerServiceDeviceID, const LSFString& controllerServiceName) {
LSFString uniqueId = controllerServiceDeviceID;
LSFString name = controllerServiceName;
printf("\n%s: controllerServiceDeviceID = %s controllerServiceName = %s\n", __func__, uniqueId.c_str(), name.c_str());
connectedToControllerService = true;
gotReply = true;
gotSignal = true;
}
void ConnectToControllerServiceFailedCB(const LSFString& controllerServiceDeviceID, const LSFString& controllerServiceName) {
LSFString uniqueId = controllerServiceDeviceID;
LSFString name = controllerServiceName;
printf("\n%s: controllerServiceDeviceID = %s controllerServiceName = %s\n", __func__, uniqueId.c_str(), name.c_str());
gotReply = true;
gotSignal = true;
}
void DisconnectedFromControllerServiceCB(const LSFString& controllerServiceDeviceID, const LSFString& controllerServiceName) {
LSFString uniqueId = controllerServiceDeviceID;
LSFString name = controllerServiceName;
printf("\n%s: controllerServiceDeviceID = %s controllerServiceName = %s\n", __func__, uniqueId.c_str(), name.c_str());
connectedToControllerService = false;
gotReply = true;
gotSignal = true;
}
void ControllerClientErrorCB(const ErrorCodeList& errorCodeList) {
printf("\n%s:", __func__);
ErrorCodeList::const_iterator it = errorCodeList.begin();
for (; it != errorCodeList.end(); ++it) {
printf("\n%s", ControllerClientErrorText(*it));
}
printf("\n");
}
};