return E_FAILURE;
}
- String combineText;
- String path;
Integer* pIndex = null;
int checkedIndex;
-
+ ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+ pArrayList->Construct();
int loopCount = pIndexList->GetCount();
- AppLogDebug("pIndexList->GetCount(%d)", loopCount);
+
for (int i = 0; i < loopCount; ++i)
{
pIndex = static_cast<Integer*>(pIndexList->GetAt(i));
if (pIndex != null)
{
checkedIndex = pIndex->ToInt();
- path = __pPresentationModel->GetContentFilePath(checkedIndex);
- }
-
- if (combineText.CompareTo(EMPTY_SPACE) != 0)
- {
- combineText.Append(L";");
+ pArrayList->Add(new (std::nothrow) String(__pPresentationModel->GetContentFilePath(checkedIndex)));
}
- combineText.Append(path);
}
+
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_ATTACHMENTS), new (std::nothrow) String(combineText));
+ pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
- pDataList, null);
+ new (std::nothrow) String(APPCONTROL_URI_MMS_TO), null, pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
return E_FAILURE;
}
- String combineText;
- String path;
Integer* pIndex = null;
int checkedIndex;
-
+ ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+ pArrayList->Construct();
int loopCount = pIndexList->GetCount();
- AppLogDebug("pIndexList->GetCount(%d)", loopCount);
+
for (int i = 0; i < loopCount; ++i)
{
pIndex = static_cast<Integer*>(pIndexList->GetAt(i));
if (pIndex != null)
{
checkedIndex = pIndex->ToInt();
- path = __pPresentationModel->GetContentFilePath(checkedIndex);
+ pArrayList->Add(new (std::nothrow) String(__pPresentationModel->GetContentFilePath(checkedIndex)));
}
-
- if (combineText.CompareTo(EMPTY_SPACE) != 0)
- {
- combineText.Append(L";");
- }
- combineText.Append(path);
}
+
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_ATTACHMENTS), new (std::nothrow) String(combineText));
+ pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL,
- APPCONTROL_OPERATION_ID_COMPOSE, pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE, null,
+ pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
if (pIndexList == null)
{
AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
-
return E_FAILURE;
}
- HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
- result r = pDataList->Construct();
- if (r != E_SUCCESS)
- {
- delete pDataList;
- delete pIndexList;
- AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
-
- return E_FAILURE;
- }
-
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_TYPE),
- new (std::nothrow) String(APPCONTROL_DATA_SLIDE_SHOW));
-
Integer* pRealIndex = null;
int realIndex = -1;
- String combineText;
- String path;
-
+ ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+ pArrayList->Construct();
int loopCount = pIndexList->GetCount();
- if (loopCount > 0)
+
+ for (int i = 0; i < loopCount; ++i)
{
- for (int i = 0; i < loopCount; ++i)
+ pRealIndex = static_cast<Integer*>(pIndexList->GetAt(i));
+ if (pRealIndex != null)
{
- pRealIndex = static_cast<Integer*>(pIndexList->GetAt(i));
- if (pRealIndex != null)
- {
- realIndex = pRealIndex->ToInt();
- }
-
- path = __pPresentationModel->GetContentFilePath(realIndex);
- if (combineText.CompareTo(EMPTY_SPACE) != 0)
- {
- combineText.Append(L";");
- }
- combineText.Append(path);
+ realIndex = pRealIndex->ToInt();
+ pArrayList->Add(new (std::nothrow) String(__pPresentationModel->GetContentFilePath(realIndex)));
}
- pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH),
- new (std::nothrow) String(combineText));
}
- delete pIndexList;
+ HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
+ pDataList->Construct();
+ pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_TYPE), new (std::nothrow) String(APPCONTROL_DATA_SLIDE_SHOW));
+ pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
- __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE,
- APPCONTROL_OPERATION_ID_VIEW, pDataList, null);
+ __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
+ pDataList, null);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
{
bool needToSelectAll = true;
int checkedCount = GetItemCheckedCount();
- int totalFileCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
- if (checkedCount == totalFileCount)
+ if (checkedCount == __itemCount)
{
needToSelectAll = false;
}
if (needToSelectAll == true)
{
- for (int i = 0 ; i < totalFileCount; ++i)
+ for (int i = 0 ; i < __itemCount; ++i)
{
if (__pContentIconListView->IsItemChecked(i) == false)
{
}
else
{
- for (int i = 0 ; i < totalFileCount; ++i)
+ for (int i = 0 ; i < __itemCount; ++i)
{
if (__pContentIconListView->IsItemChecked(i) == true)
{
if (needToSelectAll == true)
{
tempString.Format(LENGTH_COUNT_LABEL, L"%ls (%d)",
- ResourceManager::GetString(L"IDS_COM_BODY_SELECTED").GetPointer(), totalFileCount);
+ ResourceManager::GetString(L"IDS_COM_BODY_SELECTED").GetPointer(), __itemCount);
}
else
{