From: Amith Kumar Mahale Date: Thu, 4 Apr 2013 13:17:59 +0000 (+0530) Subject: Call Appcontrol changes X-Git-Tag: accepted/tizen_2.1/20130425.023544~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29213e4295ec2684cd073bb20ee45339bc0e9613;hp=6cd4a80cc0faf0cfcde643be368331562df6d4d7;p=apps%2Fosp%2FCall.git Call Appcontrol changes Change-Id: Ib9df0e5ee93daa6c3a29ad7909bde2d8b6cba59f Signed-off-by: Amith Kumar Mahale --- diff --git a/inc/CallTypes.h b/inc/CallTypes.h index e80ca46..cbb4d4c 100644 --- a/inc/CallTypes.h +++ b/inc/CallTypes.h @@ -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; diff --git a/src/CallEndCallForm.cpp b/src/CallEndCallForm.cpp index bfd46ba..1da349e 100644 --- a/src/CallEndCallForm.cpp +++ b/src/CallEndCallForm.cpp @@ -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); } diff --git a/src/CallTypes.cpp b/src/CallTypes.cpp index 3e1b90a..1a83742 100644 --- a/src/CallTypes.cpp +++ b/src/CallTypes.cpp @@ -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";