2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file GlAlbumListEditorForm.cpp
19 * @brief This is the implementation file for AlbumListEditorForm class.
23 #include "GlAlbumInfo.h"
24 #include "GlAlbumListEditorForm.h"
25 #include "GlAlbumListPresentationModel.h"
26 #include "GlResourceManager.h"
29 using namespace Tizen::App;
30 using namespace Tizen::Base;
31 using namespace Tizen::Base::Collection;
32 using namespace Tizen::Content;
33 using namespace Tizen::Graphics;
34 using namespace Tizen::Media;
35 using namespace Tizen::Io;
36 using namespace Tizen::System;
37 using namespace Tizen::Ui;
38 using namespace Tizen::Ui::Controls;
39 using namespace Tizen::Ui::Scenes;
41 static const unsigned int COLOR_DELETE_BUTTON_NORMAL = Color32<208, 82, 82>::Value;
42 static const unsigned int COLOR_DELETE_BUTTON_PRESSED = Color32<194, 71, 71>::Value;
43 static const unsigned int COLOR_DELETE_BUTTON_TEXT = Color32<248, 246, 239>::Value;
45 static const int GAP_W_POPUP_ITEM = 5;
46 static const int W_DELETE_POPUP = 600;
47 static const int H_DELETE_POPUP = 300;
48 static const int H_DELETE_LABEL = 180;
49 static const int Y_DELETE_BUTTON = 180;
50 static const int H_DELETE_BUTTON = 80;
52 static const int FORMAT_BUFFER_SIZE = 256;
54 static const int X_POSITION_SHARE_CONTEXTMENU = 280;
55 static const int Y_POSITION_SHARE_CONTEXTMENU = 1150;
57 static const Color COLOR_FOLDER_BITMAP_DIM(Color::GetColor(COLOR_ID_BLACK));
58 static const int ALPHA_FOLDER_BITMAP_DIM = 70;
60 static const int IDA_ALBUM_EDIT = 503 ;
62 AlbumListEditorForm::AlbumListEditorForm()
64 , __pSelectCountLabel(null)
65 , __pEditorFolderIconList(null)
66 , __pShareContextMenu(null)
67 , __pDeletePopup(null)
68 , __pPresentationModel(null)
72 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
75 AlbumListEditorForm::~AlbumListEditorForm()
78 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
82 AlbumListEditorForm::Initialize(void)
85 result r = Form::Construct(IDL_FORM_ALBUM_LIST_EDITOR);
86 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
92 AlbumListEditorForm::OnInitializing(void)
95 __pPresentationModel = AlbumListPresentationModel::GetInstance();
96 __pPresentationModel->ClearThumbnailRequests();
97 __pPresentationModel->AddPresentationModelListener(this);
98 __pPresentationModel->AddContentEventListener(this);
100 SetFormBackEventListener(this);
101 GetHeader()->AddActionEventListener(*this);
102 GetFooter()->AddActionEventListener(*this);
104 result r = InitializeControl();
107 AppLogDebug("[%s] Unable to set InitializeControl.", GetErrorMessage(r));
110 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
116 AlbumListEditorForm::OnTerminating(void)
118 AppLogDebug("ENTER");
119 __pPresentationModel->RemovePresentationModelListener(*this);
120 __pPresentationModel->RemoveContentEventListener(*this);
122 if (__pDeletePopup != null)
124 delete __pDeletePopup;
125 __pDeletePopup = null;
127 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
133 AlbumListEditorForm::OnContentUpdated()
135 AppLogDebug("ENTER");
136 SceneManager* pSceneManager = SceneManager::GetInstance();
137 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
138 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
142 AlbumListEditorForm::InitializeControl()
144 AppLogDebug("ENTER");
147 CreateIconListView();
148 __checkedCount = GetCheckedFolder();
150 __pSelectCountLabel = static_cast<Label*>(GetControl(L"IDC_LABEL_ALBUM_LIST_EDITOR_SELECTED"));
151 AppAssert(__pSelectCountLabel);
153 __pShareContextMenu = new ContextMenu();
154 __pShareContextMenu->Construct(Point(X_POSITION_SHARE_CONTEXTMENU, Y_POSITION_SHARE_CONTEXTMENU),
155 CONTEXT_MENU_STYLE_LIST);
156 __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
157 ACTION_ID_CONTEXT_MENU_MESSAGE);
158 __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), ACTION_ID_CONTEXT_MENU_EMAIL);
159 __pShareContextMenu->AddActionEventListener(*this);
162 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
168 AlbumListEditorForm::InitializePopup(void)
170 AppLogDebug("ENTER");
171 if (__pDeletePopup == null)
173 __pDeletePopup = new (std::nothrow) Popup();
174 __pDeletePopup->Construct(false, Dimension(W_DELETE_POPUP, H_DELETE_POPUP));
176 Rectangle popupClientBounds = __pDeletePopup->GetClientAreaBounds();
178 Label* pLabel = new (std::nothrow) Label();
179 pLabel->Construct(Rectangle(0, 0, popupClientBounds.width, H_DELETE_LABEL),
180 ResourceManager::GetString(L"IDS_COM_POP_DELETE_Q"));
182 Button* pDeleteButton = new (std::nothrow) Button();
183 pDeleteButton->Construct(
184 Rectangle(0, Y_DELETE_BUTTON, popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
185 ResourceManager::GetString(L"IDS_COM_BODY_DELETE"));
186 pDeleteButton->SetColor(BUTTON_STATUS_NORMAL, COLOR_DELETE_BUTTON_NORMAL);
187 pDeleteButton->SetColor(BUTTON_STATUS_PRESSED, COLOR_DELETE_BUTTON_PRESSED);
188 pDeleteButton->SetTextColor(COLOR_DELETE_BUTTON_TEXT);
189 pDeleteButton->SetActionId(ACTION_ID_DELETE_POPUP_DEL);
190 pDeleteButton->AddActionEventListener(*this);
192 Button* pCancelButton = new (std::nothrow) Button();
193 pCancelButton->Construct(
194 Rectangle(popupClientBounds.width / 2 + GAP_W_POPUP_ITEM, Y_DELETE_BUTTON,
195 popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
196 ResourceManager::GetString(L"IDS_COM_POP_CANCEL"));
197 pCancelButton->SetActionId(ACTION_ID_DELETE_POPUP_CANCEL);
198 pCancelButton->AddActionEventListener(*this);
200 __pDeletePopup->AddControl(*pLabel);
201 __pDeletePopup->AddControl(*pDeleteButton);
202 __pDeletePopup->AddControl(*pCancelButton);
206 __pDeletePopup->SetShowState(true);
207 __pDeletePopup->Show();
209 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
215 AlbumListEditorForm::CreateIconListView(void)
217 AppLogDebug("ENTER");
218 __pEditorFolderIconList = static_cast< IconListView* >(GetControl(L"IDC_ICONLISTVIEW_ALBUM_LIST_EDITOR"));
219 AppAssert(__pEditorFolderIconList);
221 __pEditorFolderIconList->SetItemProvider(*this);
222 __pEditorFolderIconList->AddIconListViewItemEventListener(*this);
223 __pEditorFolderIconList->SetShowState(true);
224 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
228 AlbumListEditorForm::GetItemCount(void)
230 AppLogDebug("ENTER");
231 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
233 return __pPresentationModel->GetFolderCount();
237 AlbumListEditorForm::CreateItem(int index)
239 AppLogDebug("ENTER : index(%d)", index);
240 Bitmap* pBitmap = null;
241 Canvas* pEditAlbumCanvas = null;
242 Bitmap* pEditAlbumBitmap = null;
243 Bitmap* pBitmapRenameBg = null;
244 Bitmap* pBitmapRename = null;
246 int canvasWidth = 64;
247 int canvasHeight = 64;
249 IconListViewItem* pIconListviewItem = new IconListViewItem();
251 IList* pAlbumInfoList = __pPresentationModel->GetAlbumInfoList();
252 AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(pAlbumInfoList->GetAt(index));
254 Bitmap* pAlbumBitmap = pAlbumInfo->GetFolderThumnailBitmap();
255 if (pAlbumBitmap == null)
257 __pPresentationModel->RequestThumbnail(index, 0);
260 pBitmap = __pPresentationModel->CreateMergeBitmapN(index);
262 if (__pEditorFolderIconList->IsItemChecked(index) == true)
266 BufferInfo bufferInfo;
267 pBitmap->Lock(bufferInfo, INFINITE);
269 Color dimColor(COLOR_FOLDER_BITMAP_DIM);
270 dimColor.SetAlpha(ALPHA_FOLDER_BITMAP_DIM);
272 canvas.Construct(bufferInfo);
273 canvas.FillRectangle(dimColor, canvas.GetBounds());
274 Bitmap* pSelectedBitmap = new (std::nothrow) Bitmap();
275 pSelectedBitmap->Construct(canvas, canvas.GetBounds());
276 pIconListviewItem->Construct(*pBitmap, null, pSelectedBitmap);
277 delete pSelectedBitmap;
282 pIconListviewItem->Construct(*pBitmap);
290 pBitmapRenameBg = ResourceManager::GetBitmapN(IDB_ALBUM_EDIT_RENAME_BG);
291 pBitmapRename = ResourceManager::GetBitmapN(IDB_ALBUM_EDIT_RENAME);
293 if (pBitmapRenameBg != null && pBitmapRename != null)
296 pEditAlbumCanvas = new (std::nothrow) Canvas();
297 pEditAlbumCanvas->Construct(Rectangle(0,0,canvasWidth,canvasHeight));
298 pEditAlbumCanvas->DrawBitmap(Point(0,0),*pBitmapRenameBg);
299 pEditAlbumCanvas->DrawBitmap(Point(0,0),*pBitmapRename);
302 pEditAlbumBitmap = new (std::nothrow) Bitmap();
304 if (pEditAlbumBitmap != NULL)
306 pEditAlbumBitmap->Construct(*pEditAlbumCanvas,Rectangle(0,0,canvasWidth,canvasHeight));
307 delete pEditAlbumCanvas;
310 albumName = pAlbumInfo->GetAlbumName();
311 String reservedCameraName = ResourceManager::GetString(L"IDS_MEDIABR_BODY_CAMERA_ROLL_ABB");
313 if (index == 0 || reservedCameraName.Equals(albumName,true))
319 pIconListviewItem->SetOverlayBitmap(IDA_ALBUM_EDIT, pEditAlbumBitmap, ALIGNMENT_RIGHT, ALIGNMENT_TOP);
324 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
326 return pIconListviewItem;
330 AlbumListEditorForm::OnIconListViewItemStateChanged(IconListView& view, int index, IconListViewItemStatus status)
332 AppLogDebug("ENTER");
334 if (status == ICON_LIST_VIEW_ITEM_CHECKED || status == ICON_LIST_VIEW_ITEM_UNCHECKED)
336 if (status == ICON_LIST_VIEW_ITEM_CHECKED)
340 else if (status == ICON_LIST_VIEW_ITEM_UNCHECKED)
346 if (__checkedCount == 0)
348 tempString = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
350 else if (__checkedCount == 1)
352 tempString = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
356 tempString.Format(FORMAT_BUFFER_SIZE,
357 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), __checkedCount);
360 __pSelectCountLabel->SetText(tempString);
361 __pSelectCountLabel->RequestRedraw();
362 __pEditorFolderIconList->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
365 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
369 AlbumListEditorForm::OnIconListViewOverlayBitmapSelected (IconListView &iconListView, int index,
372 AppLogDebug("ENTER");
373 SceneManager* pSceneManager = SceneManager::GetInstance();
375 ArrayList* pSelectedIndex = new (std::nothrow) ArrayList(SingleObjectDeleter);
376 pSelectedIndex->Construct();
377 //Adding the Action Type
378 pSelectedIndex->Add(new (std::nothrow) Integer(ALBUM_RENAME));
379 pSelectedIndex->Add(new (std::nothrow) Integer(index));
381 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_NAME_EDITOR), pSelectedIndex);
382 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
386 AlbumListEditorForm::DeleteItem(int index, IconListViewItem* pItem)
388 AppLogDebug("ENTER");
390 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
396 AlbumListEditorForm::DeleteFolder()
398 AppLogDebug("ENTER");
399 int maxCount = __pPresentationModel->GetFolderCount();
400 result r = E_FAILURE;
402 int checkedCount = 0;
404 for (int i = 0 ; i < maxCount; ++i)
406 if (__pEditorFolderIconList->IsItemChecked(i) == true)
409 __pPresentationModel->DeleteContentInfoInDirectory(i, CONTENT_TYPE_ALL);
417 if (checkedCount == 0)
426 SetAllCheckState(false);
427 __pPresentationModel->InitializeAlbumInfoList(CONTENT_TYPE_ALL);
428 __pEditorFolderIconList->UpdateList();
429 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
435 AlbumListEditorForm::SetAllCheckState(bool state)
437 AppLogDebug("ENTER");
438 int maxCount = __pPresentationModel->GetFolderCount();
445 tempString = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED;");
449 tempString.Format(FORMAT_BUFFER_SIZE,
450 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), maxCount);
455 tempString = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
458 for (int i = 0 ; i < maxCount; ++i)
460 __pEditorFolderIconList->SetItemChecked(i, state);
461 __pEditorFolderIconList->RefreshList(i, LIST_REFRESH_TYPE_ITEM_MODIFY);
464 __pEditorFolderIconList->Draw();
465 __pSelectCountLabel->SetText(tempString);
466 __pSelectCountLabel->RequestRedraw();
467 __checkedCount = GetCheckedFolder();
470 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
474 AlbumListEditorForm::GetCheckedFolder()
476 AppLogDebug("ENTER");
477 int maxCount = __pPresentationModel->GetFolderCount();
480 for (int i = 0 ; i < maxCount; ++i)
482 if (__pEditorFolderIconList->IsItemChecked (i))
487 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
493 AlbumListEditorForm::OnActionPerformed(const Control& source, int actionId)
495 AppLogDebug("ENTER");
498 case ACTION_ID_ALBUM_LIST_SELECT_ALL:
499 if (__pPresentationModel->GetFolderCount() == GetCheckedFolder())
501 SetAllCheckState(false);
505 SetAllCheckState(true);
508 case ACTION_ID_FOOTER_DELETE:
510 __pDeletePopup->SetShowState(true);
511 __pDeletePopup->Show();
514 case ACTION_ID_FOOTER_SHARE:
515 __pShareContextMenu->SetShowState(true);
516 __pShareContextMenu->Show();
518 case ACTION_ID_CONTEXT_MENU_MESSAGE:
523 case ACTION_ID_CONTEXT_MENU_EMAIL:
528 case ACTION_ID_DELETE_POPUP_DEL:
530 __pDeletePopup->SetShowState(false);
531 __pDeletePopup->Show();
532 result r = DeleteFolder();
533 AppLogDebug("CHECKBUTTONSTATE : R1");
536 AppLogDebug("CHECKBUTTONSTATE : R2");
537 SceneManager* pSceneManager = SceneManager::GetInstance();
538 AppAssert(pSceneManager);
539 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
541 AppLogDebug("CHECKBUTTONSTATE : R3");
544 case ACTION_ID_DELETE_POPUP_CANCEL:
546 __pDeletePopup->SetShowState(false);
547 __pDeletePopup->Show();
553 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
557 AlbumListEditorForm::OnFormBackRequested(Form& source)
559 AppLogDebug("ENTER");
560 SceneManager* pSceneManager = SceneManager::GetInstance();
561 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
562 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
566 AlbumListEditorForm::OnSceneActivatedN(const SceneId& previousSceneId,
567 const SceneId& currentSceneId, IList* pArgs)
569 AppLogDebug("ENTER OnSceneActivatedN");
570 __pPresentationModel->InitializeAlbumInfoList(CONTENT_TYPE_ALL);
571 __pEditorFolderIconList->UpdateList();
573 __checkedCount = GetCheckedFolder();
577 if (__checkedCount == 0)
579 tempString = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
581 else if (__checkedCount == 1)
583 tempString = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
587 tempString.Format(FORMAT_BUFFER_SIZE,
588 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), __checkedCount);
591 __pSelectCountLabel->SetText(tempString);
592 __pSelectCountLabel->RequestRedraw();
595 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
599 AlbumListEditorForm::OnSceneDeactivated(const SceneId& currentSceneId,
600 const SceneId& nextSceneId)
602 AppLogDebug("ENTER");
603 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
607 AlbumListEditorForm::OnFileInfoChanged(const ContentType contentType)
609 AppLogDebug("ENTER");
611 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
615 AlbumListEditorForm::OnThumbnailDecoded(const int index)
617 AppLogDebug("ENTER : index(%d)", index);
618 __pEditorFolderIconList->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
619 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
623 AlbumListEditorForm::Update(void)
625 AppLogDebug("ENTER");
626 result r = __pEditorFolderIconList->UpdateList();
627 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
633 AlbumListEditorForm::OnRequestMessage(void)
635 AppLogDebug("ENTER");
637 int checkCount = GetCheckedFolder();
641 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
646 IList* pAlbumInfoList = __pPresentationModel->GetAlbumInfoList();
648 int maxCount = __pPresentationModel->GetFolderCount();
649 ContentManager contentManager;
650 result r = contentManager.Construct();
655 AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
659 ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
660 pArrayList->Construct();
661 for (int i = 0 ; i < maxCount; ++i)
663 if (__pEditorFolderIconList->IsItemChecked (i))
665 AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(pAlbumInfoList->GetAt(i));
666 IList* pContentIdList = pAlbumInfo->GetContentIdListN();
667 int loopCount = pContentIdList->GetCount();
668 for (int k = 0; k < loopCount; ++k)
670 ContentId* pContentId = static_cast<ContentId*>(pContentIdList->GetAt(k));
671 ContentInfo* pContentInfo = contentManager.GetContentInfoN(*pContentId);
673 if (pContentInfo == null)
677 pArrayList->Add(new (std::nothrow) String(pContentInfo->GetContentPath()));
687 HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
688 pDataList->Construct();
689 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
690 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
692 __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
693 null, null, pDataList, null);
695 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
699 AlbumListEditorForm::OnRequestEmail(void)
701 AppLogDebug("ENTER");
703 int checkCount = GetCheckedFolder();
707 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
712 IList* pAlbumInfoList = __pPresentationModel->GetAlbumInfoList();
714 int maxCount = __pPresentationModel->GetFolderCount();
715 ContentManager contentManager;
716 result r = contentManager.Construct();
721 AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
725 ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
726 pArrayList->Construct();
727 for (int i = 0 ; i < maxCount; ++i)
729 if (__pEditorFolderIconList->IsItemChecked (i))
731 AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(pAlbumInfoList->GetAt(i));
732 IList* pContentIdList = pAlbumInfo->GetContentIdListN();
733 int loopCount = pContentIdList->GetCount();
734 for (int k = 0; k < loopCount; ++k)
736 ContentId* pContentId = static_cast<ContentId*>(pContentIdList->GetAt(k));
737 ContentInfo* pContentInfo = contentManager.GetContentInfoN(*pContentId);
739 if (pContentInfo == null)
743 pArrayList->Add(new (std::nothrow) String(pContentInfo->GetContentPath()));
753 HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
754 pDataList->Construct();
755 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
757 __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
758 new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
760 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
764 AlbumListEditorForm::SetFooterButtonsState(bool enableState)
766 AppLogDebug("ENTER");
767 Footer* pFooter = GetFooter();
770 if (enableState == true)
772 pFooter->SetItemEnabled(0, true);
773 pFooter->SetItemEnabled(1, true);
777 pFooter->SetItemEnabled(0, false);
778 pFooter->SetItemEnabled(1, false);
781 pFooter->RequestRedraw(true);
782 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
786 AlbumListEditorForm::SetButtonState(void)
788 AppLogDebug("ENTER");
789 if (GetCheckedFolder() > 0)
791 AppLogDebug("BUTTONSTATE : Request Enable");
792 SetFooterButtonsState(true);
796 AppLogDebug("BUTTONSTATE : Request disable");
797 SetFooterButtonsState(false);
799 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));