result SetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName, int value);
result SetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName,
const Tizen::Base::String& value);
- result ResetGallerySettingsRegistry(void);
private:
SettingPresentationModel(void);
virtual ~SettingPresentationModel(void);
SettingPresentationModel(SettingPresentationModel& value);
- SettingPresentationModel& operator = (SettingPresentationModel&);
+ SettingPresentationModel& operator=(SettingPresentationModel&);
result Construct(void);
static void CreateInstance(void);
result CreateDefaultRegistry(void);
private:
- static SettingPresentationModel* __pPresentationModelInstance;
Tizen::Io::Registry* __pDefaultGalleryRegistry;
- Tizen::Io::Registry* __pAppGalleryRegistry;
+ static SettingPresentationModel* __pPresentationModelInstance;
};
#endif /* _GL_SETTING_PRESENTATION_MODEL_H_ */
pDirectoryFullPathList->Add(pItem);
}
delete pEnum;
- pEnum = null;
return pDirectoryFullPathList;
}
}
pFooter->AddItem(itemCamera);
delete pBitmap1;
- pBitmap1 = null;
ButtonItem footerMore;
footerMore.Construct(BUTTON_ITEM_STYLE_ICON, ACTION_ID_FOOTER_MORE);
}
}
- if( pArgs != NULL)
+ if (pArgs != NULL)
{
__pMoveIndexList = pArgs;
}
__pLabelSelectCnt->Construct(
Rectangle(0, clientAreaBounds.height-H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL), strTmp);
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
- __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
AddControl(*__pLabelSelectCnt);
{
__pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetMargin(MARGIN_TYPE_LEFT, W_CONTENT_MARGIN);
result r = AddControl(*__pContentIconListView);
__pContentIconListView->SetShowState(true);
- __itemCount=0;
+ __itemCount = 0;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
{
__pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetMargin(MARGIN_TYPE_LEFT, W_CONTENT_MARGIN);
AddControl(*__pContentIconListView);
__pContentIconListView->SetShowState(true);
- __itemCount=0;
+ __itemCount = 0;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
pIconListviewItem = new (std::nothrow) IconListViewItem();
pIconListviewItem->Construct(*pBitmap, pItemText, pSelectedBitmap);
delete pSelectedBitmap;
- pSelectedBitmap = null;
}
else
{
if (pBitmap != null)
{
delete pBitmap;
- pBitmap = null;
}
if (pItemText != null)
{
delete pItemText;
- pItemText = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
if (r != E_SUCCESS)
{
delete pDataList;
- pDataList = null;
delete pIndexList;
- pIndexList = null;
AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
return E_FAILURE;
}
delete pIndexList;
- pIndexList = null;
__pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE,
APPCONTROL_OPERATION_ID_VIEW, pDataList, null);
int innerLoopCount = pMoveIndexList->GetCount();
for (int j = 0; j < innerLoopCount; ++j)
{
- if(collisionIndex == (const_cast<Integer*>(static_cast<const Integer*>
+ if (collisionIndex == (const_cast<Integer*>(static_cast<const Integer*>
(pMoveIndexList->GetAt(j))))->ToInt())
{
pMoveIndexList->RemoveAt(j, true);
pMainEnText = new(std::nothrow) EnrichedText();
r = pMainEnText->Construct(Dimension(__width - 80, 54));
- if(IsFailed(r))
+ if (IsFailed(r))
{
delete pMainEnText;
return E_FAILURE;
pSubEnText = new(std::nothrow) EnrichedText();
r = pSubEnText->Construct(Dimension(__width - 80, 42));
- if(IsFailed(r))
+ if (IsFailed(r))
{
pMainEnText->RemoveAll(true);
delete pMainEnText;
r = AddElement(Rectangle(26, 22, __width - 126, 54), IDA_FORMAT_MAIN_STRING, *pMainEnText);
r = AddElement(Rectangle(26, 76, __width - 126, 42), IDA_FORMAT_SUB_STRING, *pSubEnText);
- if(IsFailed(r))
+ if (IsFailed(r))
{
pMainEnText->RemoveAll(true);
pSubEnText->RemoveAll(true);
AppLogDebug("GetItemCheckedCount(%d)", checkedCount);
- if(__pContextMenuMore != null)
+ if (__pContextMenuMore != null)
{
delete __pContextMenuMore;
__pContextMenuMore = null;
if (__pContentDirectoryList != null)
{
delete __pContentDirectoryList;
- __pContentDirectoryList = null;
}
__pContentDirectoryList = contentDirectory.GetContentDirectoryPathListN(SORT_ORDER_NONE);
__pContentDirectoryNameList = new (std::nothrow) ArrayList(SingleObjectDeleter);
if (pContentTypeList != null)
{
delete pContentTypeList;
- pContentTypeList = null;
}
TryReturn(r == E_SUCCESS, false, "[%s] Unable to construct ContentDirectory", GetErrorMessage(r));
if (pContentList != null)
{
delete pContentList;
- pContentList = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
{
pDstBitmap = CoverVideoOverlayedImageOnThumbnailN(*pOrgBitmap, *pThumbnailInfo);
delete pOrgBitmap;
- pOrgBitmap = null;
}
}
else
pThumbnailBgBitmap->Scale(DIMENSION_REAL_ICON);
pThumbnail = GetShadedBackgroundBitmapN(*pThumbnailBgBitmap, *pDstBitmap, thumbnailRect);
delete pThumbnailBgBitmap;
- pThumbnailBgBitmap = null;
delete pDstBitmap;
- pDstBitmap = null;
}
else
{
if (pThumbnailInfo != null)
{
delete pThumbnailInfo;
- pThumbnailInfo = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
pThumbnailBgBitmap->Scale(Dimension(W_WIDE_THUMBNAIL, H_WIDE_THUMBNAIL));
pThumbnail = GetShadedBackgroundBitmapN(*pThumbnailBgBitmap, *pOrgBitmap, thumbnailRect);
delete pThumbnailBgBitmap;
- pThumbnailBgBitmap = null;
}
delete pOrgBitmap;
- pOrgBitmap = null;
}
else
{
if (pThumbnailInfo != null)
{
delete pThumbnailInfo;
- pThumbnailInfo = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
pTempThumbnailInfo->SetContentType(pThumbnailInfo->GetContentType());
pTempThumbnailInfo->SetDuration(pThumbnailInfo->GetDuration());
delete pThumbnailInfo;
- pThumbnailInfo = null;
isMatch = true;
break;
}
pInterface->OnThumbnailDecoded(index);
}
delete pEventEnum;
- pEventEnum = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
}
CATCH:
delete pContentInfo;
- pContentInfo = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
{
mainCanvas.DrawBitmap(playRect, *playBitmap);
delete playBitmap;
- playBitmap = null;
}
Canvas durCanvas;
BasePanel* pBasePanel = dynamic_cast<BasePanel*>(pScene->GetPanel());
BaseForm* pBaseForm = dynamic_cast<BaseForm*>(pScene->GetForm());
- if(pBasePanel != null )
+ if (pBasePanel != null)
{
pBasePanel->OnUpdateContentList();
}
BasePanel* pBasePanel = dynamic_cast<BasePanel*>(pScene->GetPanel());
BaseForm* pBaseForm = dynamic_cast<BaseForm*>(pScene->GetForm());
- if(pBasePanel != null )
+ if (pBasePanel != null )
{
pBasePanel->OnUpdateContentList();
}
{
__pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
__pLabelSelectCnt->Construct(Rectangle(0, clientAreaBounds.height-H_COUNT_LABEL,
clientAreaBounds.width, H_COUNT_LABEL), ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
- __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
AddControl(*__pLabelSelectCnt);
{
__pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
{
__pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
Rectangle(0, clientAreaBounds.height-H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL),
ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
- __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
AddControl(*__pLabelSelectCnt);
pSelectedBitmap->Construct(canvas, canvas.GetBounds());
pIconListviewItem->Construct(*pBitmap, pItemText, pSelectedBitmap);
delete pSelectedBitmap;
- pSelectedBitmap = null;
}
else
{
if (pBitmap != null)
{
delete pBitmap;
- pBitmap = null;
}
if (pItemText != null)
{
delete pItemText;
- pItemText = null;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
else
{
delete map;
- map = null;
}
}
else
{
delete map;
- map = null;
}
}
}
return;
}
- //TODO TO rework this, update to use the FileMoveTimer, When this func is used..
+
result r = __pPresentationModel->MoveToContentFileList(*pIndexList, destDirectory);
delete pIndexList;
- pIndexList = null;
TryReturn(r == E_SUCCESS, , "Failed on OnRequestDeleteAction");
__pPresentationModel->RefreshCurrentAlbumContentInfoList(CONTENT_TYPE_ALL);
{
if (__pFileProgressingHeaderLabel != null)
{
- switch(action)
+ switch (action)
{
case FILE_MOVE_ACTION:
__pFileProgressingHeaderLabel->SetText(ResourceManager::GetString(L"IDS_COM_POP_MOVING"));
r = SetElementSelectionEnabled(IDA_FORMAT_STRING, true);
TryCatch(!IsFailed(r),,"RadioCustomItem::the value is %s",GetErrorMessage(r));
- CATCH:
+CATCH:
return r;
}
int effectiveIndex = 0;
int inputValue = 0 ;
- // for (int i = 0; i < groupIndex; i++)
- // effectiveIndex = effectiveIndex + pGroupItemCount[i];
effectiveIndex = effectiveIndex + itemIndex;
if (settingInfo[effectiveIndex].itemType == ITEM_TYPE_DROPDOWN)
{
settingInfo[effectiveIndex].isOpen = true;
settingInfo[effectiveIndex].childCount = 0;
- for (int iter = effectiveIndex + 1; iter < SETTING_MAX; iter++)
+ for (int iter = effectiveIndex + 1; iter < SETTING_MAX; ++iter)
{
if (settingInfo[iter].itemType == ITEM_TYPE_RADIO)
{
}
settingInfo[parentIndex].subText = settingInfo[effectiveIndex].titleText;
- for (int iter = 0; iter < settingInfo[parentIndex].childCount; iter++)
+ for (int iter = 0; iter < settingInfo[parentIndex].childCount; ++iter)
{
if (parentIndex + iter + 1 != effectiveIndex)
{
const Color ITEM_BACKGROUND_COLOR = CUSTOM_COLOR_SETTINGS_LISTITEM_BACKGROUND;
const Color ITEM_RADIO_ITEM_BACKGROUND_COLOR = CUSTOM_COLOR_SETTINGS_LISTITEM_RADIO_BACKGROUND;
- // for (int i = 0; i < groupIndex; i++)
- // effectiveIndex = effectiveIndex + pGroupItemCount[i];
effectiveIndex = effectiveIndex + itemIndex;
AppLogDebug("SettingMainForm::CreateItem --> groupIndex : %d, itemIndex: %d itemWidth: %d effectiveIndex %d", groupIndex, itemIndex, itemWidth, effectiveIndex);
if (r == E_SUCCESS)
{
- switch(interval)
+ switch (interval)
{
case 2:
{
const wchar_t* PATH_DATA_DIRECTORY = L"data/";
const wchar_t* PATH_GALLERY_DEFAULT_SETTINGS = L"GalleryDefaultSettings.ini";
-const wchar_t* PATH_GALLERY_SETTINGS = L"GalleryUserSettings.ini";
const wchar_t* SECTION_GALLERY = L"GALLRY_SETTING";
const wchar_t* SECTION_IMAGE_VIEWER = L"IMAGE_VIEWER_SETTING";
SettingPresentationModel::SettingPresentationModel(void)
: __pDefaultGalleryRegistry(null)
- , __pAppGalleryRegistry(null)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
SettingPresentationModel::Construct(void)
{
AppLogDebug("ENTER");
- int valueRegistryNumber = 0;
- String valueRegistryString = L"";
- AppManager* pAppManager = AppManager::GetInstance();
- TryReturn(pAppManager != null, E_FAILURE, "Failed to get AppManager");
- String pathGallerySetting =
- pAppManager->GetAppSharedPath(GALLERY_APP_ID) + PATH_DATA_DIRECTORY + PATH_GALLERY_SETTINGS;
- AppLogDebug("pathGallerySetting(%ls)", pathGallerySetting.GetPointer());
-
- __pDefaultGalleryRegistry = new (std::nothrow) Registry();
- __pAppGalleryRegistry = new (std::nothrow) Registry();
-
result r = CreateDefaultRegistry();
TryCatch(r == E_SUCCESS, , "CreateDefaultRegistry() failed[%s]", GetErrorMessage(r));
- if (File::IsFileExist(pathGallerySetting) == true)
- {
- AppLogDebug("Already exist camcorder settings file");
-
- __pAppGalleryRegistry->Construct(pathGallerySetting, "r+");
- }
- else
- {
- __pAppGalleryRegistry->Construct(pathGallerySetting, "w+");
- r = __pAppGalleryRegistry->AddSection(SECTION_IMAGE_VIEWER);
- TryCatch(r == E_SUCCESS, , "Registry::AddSection() failed[%s]", GetErrorMessage(r));
-
- r = __pDefaultGalleryRegistry->GetValue(SECTION_IMAGE_VIEWER, SLIDESHOW_INTERVAL_VALUE,
- valueRegistryNumber);
- TryCatch(r == E_SUCCESS, , "Registry::GetValue() failed[%s]", GetErrorMessage(r));
- r = __pAppGalleryRegistry->AddValue(SECTION_IMAGE_VIEWER, SLIDESHOW_INTERVAL_VALUE, valueRegistryNumber);
- TryCatch(r == E_SUCCESS, , "Registry::AddValue() failed[%s]", GetErrorMessage(r));
-
- r = __pDefaultGalleryRegistry->GetValue(SECTION_IMAGE_VIEWER, TRANSITION_EFFECT_VALUE,
- valueRegistryString);
- TryCatch(r == E_SUCCESS, , "Registry::GetValue() failed[%s]", GetErrorMessage(r));
- r = __pAppGalleryRegistry->AddValue(SECTION_IMAGE_VIEWER, TRANSITION_EFFECT_VALUE, valueRegistryString);
- TryCatch(r == E_SUCCESS, , "Registry::AddValue() failed[%s]", GetErrorMessage(r));
-
- r = __pDefaultGalleryRegistry->GetValue(SECTION_IMAGE_VIEWER, REPEAT_VALUE,
- valueRegistryNumber);
- TryCatch(r == E_SUCCESS, , "Registry::GetValue() failed[%s]", GetErrorMessage(r));
- r = __pAppGalleryRegistry->AddValue(SECTION_IMAGE_VIEWER, REPEAT_VALUE, valueRegistryNumber);
- TryCatch(r == E_SUCCESS, , "Registry::AddValue() failed[%s]", GetErrorMessage(r));
-
- r = __pDefaultGalleryRegistry->GetValue(SECTION_IMAGE_VIEWER, SHUFFLE_VALUE,
- valueRegistryString);
- TryCatch(r == E_SUCCESS, , "Registry::GetValue() failed[%s]", GetErrorMessage(r));
- r = __pAppGalleryRegistry->AddValue(SECTION_IMAGE_VIEWER, SHUFFLE_VALUE, valueRegistryNumber);
- TryCatch(r == E_SUCCESS, , "Registry::AddValue() failed[%s]", GetErrorMessage(r));
-
- r = __pAppGalleryRegistry->Flush();
- TryCatch(r == E_SUCCESS, , "Registry::Flush() failed[%s]", GetErrorMessage(r));
- r = __pDefaultGalleryRegistry->Flush();
- TryCatch(r == E_SUCCESS, , "Registry::Flush() failed[%s]", GetErrorMessage(r));
- }
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
- CATCH:
- delete __pDefaultGalleryRegistry;
- __pDefaultGalleryRegistry = null;
-
- delete __pAppGalleryRegistry;
- __pAppGalleryRegistry = null;
+CATCH:
AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
return r;
SettingPresentationModel::GetValue(const String& strSectionName, const String& entryName, int& value) const
{
AppLogDebug("ENTER");
- result r = __pAppGalleryRegistry->GetValue(strSectionName, entryName, value);
+ result r = __pDefaultGalleryRegistry->GetValue(strSectionName, entryName, value);
TryCatch(r == E_SUCCESS, , "Registry::GetValue() failed[%s]", GetErrorMessage(r));
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
- CATCH:
+CATCH:
AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
return r;
SettingPresentationModel::GetValue(const String& strSectionName, const String& entryName, String& value) const
{
AppLogDebug("ENTER");
- result r = __pAppGalleryRegistry->GetValue(strSectionName, entryName, value);
+ result r = __pDefaultGalleryRegistry->GetValue(strSectionName, entryName, value);
TryCatch(r == E_SUCCESS, , "Registry::GetValue() failed[%s]", GetErrorMessage(r));
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
- CATCH:
+CATCH:
AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
return r;
SettingPresentationModel::SetValue(const String& strSectionName, const String& entryName, const int value)
{
AppLogDebug("ENTER");
- result r= __pAppGalleryRegistry->SetValue(strSectionName, entryName, value);
+ result r= __pDefaultGalleryRegistry->SetValue(strSectionName, entryName, value);
TryCatch(r == E_SUCCESS, , "Registry::SetValue() failed[%s]", GetErrorMessage(r));
- r = __pAppGalleryRegistry->Flush();
+ r = __pDefaultGalleryRegistry->Flush();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
- CATCH:
+CATCH:
AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
return r;
SettingPresentationModel::SetValue(const String& strSectionName, const String& entryName, const String& value)
{
AppLogDebug("ENTER");
- result r = __pAppGalleryRegistry->SetValue(strSectionName, entryName, value);
+ result r = __pDefaultGalleryRegistry->SetValue(strSectionName, entryName, value);
TryCatch(r == E_SUCCESS, , "Registry::SetValue() failed[%s]", GetErrorMessage(r));
- r = __pAppGalleryRegistry->Flush();
+ r = __pDefaultGalleryRegistry->Flush();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
- CATCH:
+CATCH:
AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
return r;
pAppManager->GetAppSharedPath(GALLERY_APP_ID) + PATH_DATA_DIRECTORY + PATH_GALLERY_DEFAULT_SETTINGS;
AppLogDebug("pathGalleryDefaultSetting(%ls)", pathGalleryDefaultSetting.GetPointer());
+ __pDefaultGalleryRegistry = new (std::nothrow) Registry();
if (File::IsFileExist(pathGalleryDefaultSetting))
{
AppLogDebug("Already exist default settings file");
return r;
- CATCH:
- AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
-
- return r;
-}
-
-result
-SettingPresentationModel::ResetGallerySettingsRegistry(void)
-{
- AppLogDebug("ENTER");
- AppManager* pAppManager = AppManager::GetInstance();
- TryReturn(pAppManager != null, E_FAILURE, "Failed to get AppManager");
- String pathGallerySetting =
- pAppManager->GetAppSharedPath(GALLERY_APP_ID) + PATH_DATA_DIRECTORY + PATH_GALLERY_SETTINGS;
-
- if (File::IsFileExist(pathGallerySetting))
- {
- File::Remove(pathGallerySetting);
- }
-
- result r = Construct();
- TryCatch(r == E_SUCCESS, , "CameraSettingsPresentationModel::Construct() failed[%s]", GetErrorMessage(r));
- AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
-
- return r;
-
- CATCH:
+CATCH:
+ delete __pDefaultGalleryRegistry;
+ __pDefaultGalleryRegistry = null;
AppLogDebug("EXIT with exception(%s)", GetErrorMessage(GetLastResult()));
return r;
{
__pContentListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentListView->SetItemProvider(*this);
Rectangle(0, clientAreaBounds.height-H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL),
ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
- __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
AddControl(*__pLabelSelectCnt);
{
__pContentListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentListView->SetItemProvider(*this);
{
__pContentListView->SetBitmapOfEmptyList(pBitmapEmpty);
delete pBitmapEmpty;
- pBitmapEmpty = null;
}
__pContentListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentListView->SetItemProvider(*this);
Rectangle(0, clientAreaBounds.height-H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL),
ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
__pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
- __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
AddControl(*__pLabelSelectCnt);
pItem->AddElement(RECT_VIDEO_THUMBNAIL, ACTION_ID_FORMAT_THUMBNAIL, *pBitmap,
pSelectedBitmap);
delete pSelectedBitmap;
- pSelectedBitmap = null;
}
else
{
pSelectedBitmap->Construct(canvas, canvas.GetBounds());
pItem->AddElement(RECT_VIDEO_THUMBNAIL, ACTION_ID_FORMAT_THUMBNAIL, *pBitmap, pSelectedBitmap);
delete pSelectedBitmap;
- pSelectedBitmap = null;
}
else
{
return;
}
- //TODO TO rework this, update to use the FileMoveTimer, When this func is used..
+
result r = __pPresentationModel->MoveToContentFileList(*pIndexList, destDirectory);
delete pIndexList;
- pIndexList = null;
TryReturn(r == E_SUCCESS, , "Failed on OnRequestDeleteAction");
__pPresentationModel->RefreshCurrentAlbumContentInfoList(CONTENT_TYPE_ALL);