Call Appcontrol changes
authorAmith Kumar Mahale <amith.m@samsung.com>
Thu, 4 Apr 2013 13:17:59 +0000 (18:47 +0530)
committerAmith Kumar Mahale <amith.m@samsung.com>
Thu, 4 Apr 2013 13:17:59 +0000 (18:47 +0530)
Change-Id: Ib9df0e5ee93daa6c3a29ad7909bde2d8b6cba59f
Signed-off-by: Amith Kumar Mahale <amith.m@samsung.com>
inc/CallTypes.h
src/CallEndCallForm.cpp
src/CallTypes.cpp

index e80ca46..cbb4d4c 100644 (file)
@@ -315,7 +315,12 @@ extern const wchar_t* MESSAGE_TO;
 //Contacts app control parameters
 extern const wchar_t* CONTACTS_VIEW_TYPE;
 extern const wchar_t* CONTACTS_VIEW_TYPE_CONTACT;
+extern const wchar_t* ITEM_TYPE_CONTACT ;
 extern const wchar_t* CONTACTS_ID_KEY;
+extern const wchar_t* ITEM_TYPE_PERSON ;
+extern const wchar_t* CONTACT_KEY_ITEM_TYPE ;
+extern const wchar_t* CONTACT_KEY_ITEM_ID ;
+
 
 extern const wchar_t* SELECTION_MODE;
 extern const wchar_t* RETURN_TYPE;
index bfd46ba..1da349e 100644 (file)
@@ -277,7 +277,10 @@ EndCallForm::HandleAddToContacts(void)
                String idVal;
                idVal.Append(pContact->GetRecordId());
                extraData.Add(new (std::nothrow) String(CONTACTS_VIEW_TYPE), new (std::nothrow) String(CONTACTS_VIEW_TYPE_CONTACT));
+               extraData.Add(new (std::nothrow) String(CONTACTS_VIEW_TYPE_CONTACT), new (std::nothrow) String(CONTACTS_VIEW_TYPE_CONTACT));
+               extraData.Add(new (std::nothrow) String(CONTACT_KEY_ITEM_ID), new (std::nothrow) String(idVal));
                extraData.Add(new (std::nothrow) String(CONTACTS_ID_KEY), new (std::nothrow) String(idVal));
+               extraData.Add(new (std::nothrow) String(CONTACT_KEY_ITEM_TYPE), new (std::nothrow) String(ITEM_TYPE_PERSON));
                 pAc = AppManager::FindAppControlN(PROVIDER_ID_CONTACTS, OPERATION_ID_VIEW);
 
        }
@@ -285,6 +288,7 @@ EndCallForm::HandleAddToContacts(void)
        {
                AppLogDebug("Add Contact");
                extraData.Add(new (std::nothrow) String(INPUT_TYPE_PHONE), new (std::nothrow) String(*__pContactNumber));
+               extraData.Add(new (std::nothrow) String(CONTACT_KEY_ITEM_TYPE), new (std::nothrow) String(ITEM_TYPE_CONTACT));
                pAc = AppManager::FindAppControlN(PROVIDER_ID_CONTACTS, OPERATION_ID_ADD);
 
        }
index 3e1b90a..1a83742 100644 (file)
@@ -305,7 +305,7 @@ const wchar_t* CONTACT_NUMBER = L"number";
 const wchar_t* PARAM_CALL_VALUE_VOICE = L"voice";
 const wchar_t* PARAM_CALL_TYPE = L"http://tizen.org/appcontrol/data/call/type";
 const wchar_t* PARAM_PHONE_NUMBER = L"tel";
-const wchar_t* INPUT_TYPE_PHONE = L"phone";
+const wchar_t* INPUT_TYPE_PHONE = L"http://tizen.org/appcontrol/data/social/phone";
 const wchar_t* MESSAGE_TYPE = L"http://tizen.org/appcontrol/data/message/type";
 const wchar_t* MESSAGE_SMS_TYPE = L"SMS";
 const wchar_t* MESSAGE_TEXT = L"http://tizen.org/appcontrol/data/text";
@@ -313,7 +313,11 @@ const wchar_t* MESSAGE_TO = L"http://tizen.org/appcontrol/data/to";
 //Contacts app control parameters
 const wchar_t* CONTACTS_VIEW_TYPE = L"viewType";
 const wchar_t* CONTACTS_VIEW_TYPE_CONTACT = L"contact";
+const wchar_t* ITEM_TYPE_CONTACT = L"contact";
 const wchar_t* CONTACTS_ID_KEY = L"contactId";
+const wchar_t* ITEM_TYPE_PERSON = L"person";
+const wchar_t* CONTACT_KEY_ITEM_TYPE = L"http://tizen.org/appcontrol/data/social/item_type";
+const wchar_t* CONTACT_KEY_ITEM_ID = L"http://tizen.org/appcontrol/data/social/item_id";
 
 
 const wchar_t* SELECTION_MODE = L"selectionMode";