String* pKey = null;
const String* pValue = null;
- const ArrayList* pArgList = null;
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_PHONE)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_PHONE)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(PHONE);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(PHONE);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_EMAIL)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_EMAIL)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(EMAIL);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(EMAIL);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_URL)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_URL)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(URL);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(URL);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
__initialSceneId = IDSCN_CONTACT_EDITOR;
String* pKey = null;
const String* pValue = null;
- const ArrayList* pArgList = null;
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_ITEM_ID)));
- if (pArgList == null || pArgList->GetCount() == 0)
- {
- AppLogDebug("To launch AppControl by the edit operation, the item_id should be input.");
- AppControlProviderManager::GetInstance()->SendAppControlResult(reqId, APP_CTRL_RESULT_FAILED, null);
- Terminate();
-
- return;
- }
-
- pValue = static_cast<const String*>(pArgList->GetAt(0));
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_ITEM_ID)));
if (pValue == null || pValue->GetPointer() == null)
{
AppLogDebug("To launch AppControl by the edit operation, the item_id should be input.");
pKey->Append(*pValue);
pArgs->Add(pKey);
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_PHONE)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_PHONE)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(PHONE);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(PHONE);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
- pArgList = static_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_EMAIL)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_EMAIL)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(EMAIL);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(EMAIL);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_URL)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_URL)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(URL);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(URL);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
__initialSceneId = IDSCN_CONTACT_EDITOR;
String* pKey = null;
const String* pValue = null;
- const ArrayList* pArgList = null;
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_PHONE)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_PHONE)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(PHONE);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(PHONE);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_EMAIL)));
- if (pArgList && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_EMAIL)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(EMAIL);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(EMAIL);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
- pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_URL)));
- if (pArgList != null && pArgList->GetCount() > 0)
+ pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_URL)));
+ if (pValue && pValue->GetPointer())
{
- pValue = static_cast<const String*>(pArgList->GetAt(0));
- if (pValue && pValue->GetPointer())
- {
- pKey = new (std::nothrow) String(URL);
- pKey->Append(DELIMITER);
- pKey->Append(*pValue);
- pArgs->Add(pKey);
- }
+ pKey = new (std::nothrow) String(URL);
+ pKey->Append(DELIMITER);
+ pKey->Append(*pValue);
+ pArgs->Add(pKey);
}
__initialSceneId = IDSCN_CONTACT_LIST;
pViewType->Append(VALUE_VIEW_TYPE_CONTACT);
pArgs->Add(pViewType);
- const ArrayList* pArgList = dynamic_cast<const ArrayList*>(pExtraData->GetValue(String(CONTACT_KEY_ITEM_ID)));
- if (pArgList == null || pArgList->GetCount() == 0)
- {
- AppLogDebug("To launch AppControl by the edit operation, the item_id should be input.");
- AppControlProviderManager::GetInstance()->SendAppControlResult(reqId, APP_CTRL_RESULT_FAILED, null);
- Terminate();
-
- return;
- }
-
- const String* pValue = static_cast<const String*>(pArgList->GetAt(0));
+ const String* pValue = static_cast<const String*>(pExtraData->GetValue(String(CONTACT_KEY_ITEM_ID)));
if (pValue == null || pValue->GetPointer() == null)
{
AppLogDebug("To launch AppControl by the view operation, the itemId should be input.");