namespace Bluetooth {
static Eina_Bool jobCompleteCB(void *userData){
- LogDebug("Entered");
+ LoggerD("Entered");
BluetoothCallbackUserDataPtr data = static_cast<BluetoothCallbackUserDataPtr>(userData);
if(!data) {
- LogWarning("BluetoothCallbackUserDataPtr is NULL");
+ LoggerW("BluetoothCallbackUserDataPtr is NULL");
return false;
}
if(!(data->mUserData)) {
- LogWarning("MulticallbackUserData is NULL");
+ LoggerW("MulticallbackUserData is NULL");
delete data;
return false;
}
switch(data->mCBType) {
case BluetoothCallbackUserData::BT_CB_SUCCESS:
{
- LogDebug("BT_CB_SUCCESS");
+ LoggerD("BT_CB_SUCCESS");
data->mUserData->invokeCallback("success");
break;
}
case BluetoothCallbackUserData::BT_CB_ERROR:
{
- LogDebug("BT_CB_ERROR");
+ LoggerD("BT_CB_ERROR");
data->mUserData->invokeCallback("error", JSWebAPIError::makeJSWebAPIError(data->mUserData->getContext(), *(data->mError)));
break;
}
case BluetoothCallbackUserData::BT_CB_DEVICE:
{
- LogDebug("BT_CB_DEVICE");
+ LoggerD("BT_CB_DEVICE");
BluetoothAdapter::getInstance()->returnDevice(data->mAddress, data->mUserData);
break;
}
case BluetoothCallbackUserData::BT_CB_DEVICES:
{
- LogDebug("BT_CB_DEVICES");
+ LoggerD("BT_CB_DEVICES");
BluetoothAdapter::getInstance()->returnKnownDevices(data->mUserData);
break;
}
case BluetoothCallbackUserData::BT_CB_SERVICE:
{
- LogDebug("BT_CB_SERVICE");
+ LoggerD("BT_CB_SERVICE");
BluetoothAdapter::getInstance()->returnRegisteredService(data->mUUID, data->mName, data->mUserData);
break;
}
default:
{
- LogWarning("Unknown callback type");
+ LoggerW("Unknown callback type");
}
}