msg.AddData(L"launch-type", L"visibility");
- __processId = _AppControlManager::GetInstance()->Launch(msg, "ug-bluetooth-efl", APPSVC_OPERATION_VIEW, NULL, NULL, OnBluetoothAppControlResult, 0);
+ __processId = _AppControlManager::GetInstance()->Launch(msg, "ug-bluetooth-efl", "http://tizen.org/appcontrol/operation/configure/bluetooth/visibility", NULL, NULL, OnBluetoothAppControlResult, 0);
SysTryReturnResult(NID_APP, __processId >= 0, E_SYSTEM, "StartAppControl: Launching Bluetooth Visiblity AppControl is failed.");
SysLog(NID_APP, "StartAppControl: Launching Bluetooth Visiblity AppControl succeeded.");
{
pResult->Add(new (std::nothrow) String(L"category"), new (std::nothrow) String(L"Bluetooth.Visibility"));
- const char* pBuf = appsvc_get_data(pBundle, "visibility");
+ const char* pBuf = appsvc_get_data(pBundle, "http://tizen.org/appcontrol/data/bluetooth/visibility");
if (pBuf)
{
switch (*pBuf)
{
case '0':
- pBuf = "Off";
+ pBuf = "off";
break;
case '1':
- case '2':
- case '3':
- pBuf = "TimeLimitedOn";
+ pBuf = "always";
break;
- case '4':
- pBuf = "AlwaysOn";
+ case '2':
+ pBuf = "time_limited";
break;
default:
- pBuf = "Off";
+ pBuf = "off";
break;
}
- pResult->Add(new (std::nothrow) String(L"visibility"), new (std::nothrow) String(pBuf));
+ pResult->Add(new (std::nothrow) String(L"http://tizen.org/appcontrol/data/bluetooth/visibility"), new (std::nothrow) String(pBuf));
}
}
break;