X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=externals%2FMsgDevicedWrapper.cpp;h=20b9d6e7aca2ce8e59b339765685df913afbd32d;hb=244d3d2e4f9b08efcca53750f27fccbbe7ed97b8;hp=d603b6ed1efd5584f3974e69fd904b2c5b792964;hpb=0626a4192a0b3e443c93db4755c2a2c3ce175648;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git diff --git a/externals/MsgDevicedWrapper.cpp b/externals/MsgDevicedWrapper.cpp index d603b6e..20b9d6e 100644 --- a/externals/MsgDevicedWrapper.cpp +++ b/externals/MsgDevicedWrapper.cpp @@ -15,14 +15,17 @@ */ +#ifndef MSG_WEARABLE_PROFILE +#include +#endif /* MSG_WEARABLE_PROFILE */ #include -#include #include "MsgCallStatusManager.h" #include "MsgDebug.h" #include "MsgMutex.h" #include "MsgGconfWrapper.h" #include "MsgDevicedWrapper.h" +#include "MsgUtilFunction.h" int g_lock_cnt = 0; MsgMutex mx; @@ -80,17 +83,14 @@ void MsgDisplayUnlock() void MsgChangePmState() { MSG_BEGIN(); - int callStatus = 0; +#ifndef MSG_WEARABLE_PROFILE + bundle *bundle_data = bundle_create(); - callStatus = MsgGetCallStatus(); - MSG_DEBUG("Call Status = %d", callStatus); + bundle_add_str(bundle_data, "cmd", "change_pm_state"); - if (callStatus > 0 && callStatus < 3) { - MSG_DEBUG("Call is activated. Do not turn on the lcd."); - } else { - MSG_DEBUG("Call is not activated. Turn on the lcd."); - device_display_change_state(DISPLAY_STATE_NORMAL); - } + msg_launch_app(MSG_MGR_APP_ID, bundle_data); + bundle_free(bundle_data); +#endif /* MSG_WEARABLE_PROFILE */ MSG_END(); }