Apply calendar appcontrol aliases
authorHosang Kim <hosang.kim@samsung.com>
Mon, 29 Apr 2013 07:43:33 +0000 (16:43 +0900)
committerHosang Kim <hosang.kim@samsung.com>
Mon, 29 Apr 2013 07:54:25 +0000 (16:54 +0900)
Change-Id: Ief28919dff6a44f8f9a396bfd26e2ce0a589b2ad
Signed-off-by: Hosang Kim <hosang.kim@samsung.com>
src/calendar-app-control/CalendarAppControlDllEntry.cpp

index 78c0ead..1821da1 100644 (file)
@@ -111,6 +111,7 @@ StartAppControl(int req, const String& aId, const String& oId, const String* pUr
 
        AppSvcResFn pCb = NULL;
 
+       String providerAppId;
        String package;
        String operation;
        String uri;
@@ -140,6 +141,7 @@ StartAppControl(int req, const String& aId, const String& oId, const String* pUr
 #endif
 
                pCb = OnAppControlResultTizen;
+               providerAppId = L"tizen.calendar_list";
                operation = L"http://tizen.org/appcontrol/operation/social/pick";
 
                const String& tmpItemType = msg.GetValue(L"itemType");
@@ -175,6 +177,7 @@ StartAppControl(int req, const String& aId, const String& oId, const String* pUr
                
                hasOutput = true;
                pCb = OnAppControlResultTizen;
+               providerAppId = L"tizen.calendar_edit";
                operation = L"http://tizen.org/appcontrol/operation/social/edit";
 
                msg.AddData(CALENDAR_ITEM_TYPE, L"event");
@@ -191,6 +194,8 @@ StartAppControl(int req, const String& aId, const String& oId, const String* pUr
                        }
                }
 
+               providerAppId = L"tizen.calendar_detail";
+
                if (pActualUri)
                {
                        SysLog(NID_APP, "Calendar AppControl : VIEW operation (vcs).");
@@ -229,7 +234,7 @@ StartAppControl(int req, const String& aId, const String& oId, const String* pUr
                }
        }
 
-       package = _AppControlManager::GetAliasAppId(aId);
+       package = _AppControlManager::GetAliasAppId(providerAppId);
        SysLog(NID_APP, "Actual app is %ls.", package.GetPointer());
 
        __req = req;