__pTableView->SetItemChecked(groupIndex, itemIndex, !__pTableView->IsItemChecked(groupIndex, itemIndex));
return;
}
- result r = E_FAILURE;
__isNfcBusy = true;
- r = ToggleNfcActivateStatus(status);
- if (IsFailed(r))
- {
- AppLogDebug("ToggleWifiActivateStatus is Fail");
- }
+ ToggleNfcActivateStatus(status);
__pTableView->UpdateTableView();
}
AppLogDebug("__pNfcPresentationModelInstance is null");
return E_FAILURE;
}
+ result r = E_SUCCESS;
switch (itemStatus)
{
case TABLE_VIEW_ITEM_STATUS_CHECKED:
{
- if (!__pNfcPresentationModelInstance->IsNfcActivated())
+ r = __pNfcPresentationModelInstance->ActivateNfc();
+ if (IsFailed(r))
{
- __pNfcPresentationModelInstance->ActivateNfc();
+ AppLogDebug("Nfc active is failed %s", GetErrorMessage(r));
+ __isNfcBusy = false;
}
if (__isPredefinedItem)
case TABLE_VIEW_ITEM_STATUS_UNCHECKED:
{
- if (__pNfcPresentationModelInstance->IsNfcActivated())
+ r = __pNfcPresentationModelInstance->DeactivateNfc();
+ if (IsFailed(r))
{
- __pNfcPresentationModelInstance->DeactivateNfc();
+ AppLogDebug("Nfc deactive is failed %s", GetErrorMessage(r));
+ __isNfcBusy = false;
}
if (__isPredefinedItem)
AppLogDebug("ENTER");
if (status == ICON_LIST_VIEW_ITEM_SELECTED)
{
-#if 0
IList* pContentIdList = __pPresentationModel->GetContentIdList();
__pContentId = static_cast<ContentId*>(pContentIdList->GetAt(index));
HashMap extraData;
pAc->Start(&uri, null, &extraData, this);
delete pAc;
}
-#else
- SceneManager* pSceneManager = SceneManager::GetInstance();
-
- IList* pContentIdList = __pPresentationModel->GetContentIdList();
- ContentId* pContentId = static_cast<ContentId*>(pContentIdList->GetAt(index));
-
- ArrayList* aList = new (std::nothrow) ArrayList(SingleObjectDeleter);
- aList->Construct();
- aList->Add(pContentId);
-
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_WALLPAPER_IMAGE_SELECT, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), aList);
-#endif
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
{
for (int i = 0; i < pValueList->GetCount(); i++)
{
- if (__pContentId == null)
- {
- delete pEnum;
- return;
- }
- ContentManager pContentManager;
- pContentManager.Construct();
- ImageContentInfo* pImageContentInfo = static_cast<ImageContentInfo*>(pContentManager.GetContentInfoN(*__pContentId));
-
- if (pImageContentInfo == null)
- {
- MessageBox messageBox;
- int result = E_SUCCESS;
-
- messageBox.Construct(ResourceManager::GetString(L"IDS_EMAIL_POP_ALERT"), ResourceManager::GetString(L"IDS_COM_POP_FAILED"), MSGBOX_STYLE_NONE, MESSAGEBOX_DISPLAY_TIME_2_SEC);
- messageBox.ShowAndWait(result);
-
- break;
- }
-
String dstPath = Application::GetInstance()->GetAppDataPath();
String srcPath = *dynamic_cast<String*>(pValueList->GetAt(i));
String srcFileExtention = File::GetFileExtension(srcPath);
if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN, dstPath) != E_SUCCESS)
{
AppLogDebug("Wallpapaer Screen SetValue is Fail [%s]", GetErrorMessage(GetLastResult()));
- return;
}
+
if (SettingInfo::SetValue(RUNTIME_INFO_KEY_WALLPAPER_SCREEN_LOCK, dstPath) != E_SUCCESS)
{
AppLogDebug("Wallpapaer Lock Screen SetValue is Fail [%s]", GetErrorMessage(GetLastResult()));
- return;
}
}
break;
AppLogDebug("pContentInfo is null");
return;
}
+ Bitmap* pBitmap2 = pContentInfo->GetThumbnailN();
Bitmap* pBitmap1 = ResourceManager::GetApplicationBitmapN(pContentInfo->GetContentPath());
- if (pBitmap1 != null)
+ if (pBitmap2 != null)
+ {
+ Rectangle rectFirst(ICON_CAP+FOLDER_CAP, ICON_CAP,
+ ICON_CAP * DOUBLE_NUMBER + ICON_SIZE * TRIPLE_NUMBER,
+ ICON_CAP * DOUBLE_NUMBER + ICON_SIZE * TRIPLE_NUMBER);
+ r = canvas.DrawBitmap(rectFirst, *pBitmap2);
+ if (pBitmap1 != null)
+ {
+ delete pBitmap1;
+ }
+ delete pBitmap2;
+ }
+ else if (pBitmap1 != null)
{
Rectangle rectFirst(ICON_CAP+FOLDER_CAP, ICON_CAP,
ICON_CAP * DOUBLE_NUMBER + ICON_SIZE * TRIPLE_NUMBER,
return null;
}
Bitmap* pBitmap = ResourceManager::GetApplicationBitmapN(pContentInfo->GetContentPath());
- if (pBitmap != null)
+ Bitmap* pBitmap2 = pContentInfo->GetThumbnailN();
+ if (pBitmap2 != null)
+ {
+ int itemRectLineSize = 0;
+
+ Rectangle canvasRect = canvas.GetBounds();
+ if (__pCurrentFolderContentsIdList->GetCount() < FOLDER_BITMAP_MAX)
+ {
+ itemRectLineSize = MAX_UNDER_FILE_SIZE;
+ }
+ else
+ {
+ itemRectLineSize = MAX_OVER_FILE_SIZE;
+ }
+ Rectangle rectFirst(ICON_CAP + FOLDER_CAP, ICON_CAP,
+ ICON_CAP * DOUBLE_NUMBER + ICON_SIZE * TRIPLE_NUMBER,
+ ICON_CAP * DOUBLE_NUMBER + ICON_SIZE * TRIPLE_NUMBER);
+ canvas.FillRectangle(COLOR_BG_GROUP_ITEM_DEFAULT, canvasRect);
+ r = canvas.DrawBitmap(rectFirst, *pBitmap2);
+ if (pBitmap != null)
+ {
+ delete pBitmap;
+ }
+ delete pBitmap2;
+ }
+ else if (pBitmap != null)
{
int itemRectLineSize = 0;