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(FILE_MOVE_ACTION));
380 pSelectedIndex->Add(new (std::nothrow) Integer(index));
382 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_NAME_EDITOR), pSelectedIndex);
383 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
387 AlbumListEditorForm::DeleteItem(int index, IconListViewItem* pItem)
389 AppLogDebug("ENTER");
391 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
397 AlbumListEditorForm::DeleteFolder()
399 AppLogDebug("ENTER");
400 int maxCount = __pPresentationModel->GetFolderCount();
401 result r = E_FAILURE;
403 int checkedCount = 0;
405 for (int i = 0 ; i < maxCount; ++i)
407 if (__pEditorFolderIconList->IsItemChecked(i) == true)
410 __pPresentationModel->DeleteContentInfoInDirectory(i, CONTENT_TYPE_ALL);
418 if (checkedCount == 0)
427 SetAllCheckState(false);
428 __pPresentationModel->InitializeAlbumInfoList(CONTENT_TYPE_ALL);
429 __pEditorFolderIconList->UpdateList();
430 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
436 AlbumListEditorForm::SetAllCheckState(bool state)
438 AppLogDebug("ENTER");
439 int maxCount = __pPresentationModel->GetFolderCount();
446 tempString = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED;");
450 tempString.Format(FORMAT_BUFFER_SIZE,
451 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), maxCount);
456 tempString = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
459 for (int i = 0 ; i < maxCount; ++i)
461 __pEditorFolderIconList->SetItemChecked(i, state);
462 __pEditorFolderIconList->RefreshList(i, LIST_REFRESH_TYPE_ITEM_MODIFY);
465 __pEditorFolderIconList->Draw();
466 __pSelectCountLabel->SetText(tempString);
467 __pSelectCountLabel->RequestRedraw();
468 __checkedCount = GetCheckedFolder();
471 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
475 AlbumListEditorForm::GetCheckedFolder()
477 AppLogDebug("ENTER");
478 int maxCount = __pPresentationModel->GetFolderCount();
481 for (int i = 0 ; i < maxCount; ++i)
483 if (__pEditorFolderIconList->IsItemChecked (i))
488 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
494 AlbumListEditorForm::OnActionPerformed(const Control& source, int actionId)
496 AppLogDebug("ENTER");
499 case ACTION_ID_ALBUM_LIST_SELECT_ALL:
500 if (__pPresentationModel->GetFolderCount() == GetCheckedFolder())
502 SetAllCheckState(false);
506 SetAllCheckState(true);
509 case ACTION_ID_FOOTER_DELETE:
511 __pDeletePopup->SetShowState(true);
512 __pDeletePopup->Show();
515 case ACTION_ID_FOOTER_SHARE:
516 __pShareContextMenu->SetShowState(true);
517 __pShareContextMenu->Show();
519 case ACTION_ID_CONTEXT_MENU_MESSAGE:
524 case ACTION_ID_CONTEXT_MENU_EMAIL:
529 case ACTION_ID_DELETE_POPUP_DEL:
531 __pDeletePopup->SetShowState(false);
532 __pDeletePopup->Show();
533 result r = DeleteFolder();
534 AppLogDebug("CHECKBUTTONSTATE : R1");
537 AppLogDebug("CHECKBUTTONSTATE : R2");
538 SceneManager* pSceneManager = SceneManager::GetInstance();
539 AppAssert(pSceneManager);
540 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
542 AppLogDebug("CHECKBUTTONSTATE : R3");
545 case ACTION_ID_DELETE_POPUP_CANCEL:
547 __pDeletePopup->SetShowState(false);
548 __pDeletePopup->Show();
554 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
558 AlbumListEditorForm::OnFormBackRequested(Form& source)
560 AppLogDebug("ENTER");
561 SceneManager* pSceneManager = SceneManager::GetInstance();
562 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
563 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
567 AlbumListEditorForm::OnSceneActivatedN(const SceneId& previousSceneId,
568 const SceneId& currentSceneId, IList* pArgs)
570 AppLogDebug("ENTER OnSceneActivatedN");
571 __pPresentationModel->InitializeAlbumInfoList(CONTENT_TYPE_ALL);
572 __pEditorFolderIconList->UpdateList();
574 __checkedCount = GetCheckedFolder();
578 if (__checkedCount == 0)
580 tempString = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
582 else if (__checkedCount == 1)
584 tempString = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
588 tempString.Format(FORMAT_BUFFER_SIZE,
589 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), __checkedCount);
592 __pSelectCountLabel->SetText(tempString);
593 __pSelectCountLabel->RequestRedraw();
596 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
600 AlbumListEditorForm::OnSceneDeactivated(const SceneId& currentSceneId,
601 const SceneId& nextSceneId)
603 AppLogDebug("ENTER");
604 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
608 AlbumListEditorForm::OnFileInfoChanged(const ContentType contentType)
610 AppLogDebug("ENTER");
612 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
616 AlbumListEditorForm::OnThumbnailDecoded(const int index)
618 AppLogDebug("ENTER : index(%d)", index);
619 __pEditorFolderIconList->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
620 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
624 AlbumListEditorForm::Update(void)
626 AppLogDebug("ENTER");
627 result r = __pEditorFolderIconList->UpdateList();
628 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
634 AlbumListEditorForm::OnRequestMessage(void)
636 AppLogDebug("ENTER");
638 int checkCount = GetCheckedFolder();
642 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
647 IList* pAlbumInfoList = __pPresentationModel->GetAlbumInfoList();
649 int maxCount = __pPresentationModel->GetFolderCount();
650 ContentManager contentManager;
651 result r = contentManager.Construct();
656 AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
660 ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
661 pArrayList->Construct();
662 for (int i = 0 ; i < maxCount; ++i)
664 if (__pEditorFolderIconList->IsItemChecked (i))
666 AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(pAlbumInfoList->GetAt(i));
667 IList* pContentIdList = pAlbumInfo->GetContentIdListN();
668 int loopCount = pContentIdList->GetCount();
669 for (int k = 0; k < loopCount; ++k)
671 ContentId* pContentId = static_cast<ContentId*>(pContentIdList->GetAt(k));
672 ContentInfo* pContentInfo = contentManager.GetContentInfoN(*pContentId);
674 if (pContentInfo == null)
678 pArrayList->Add(new (std::nothrow) String(pContentInfo->GetContentPath()));
688 HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
689 pDataList->Construct();
690 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_MESSAGE_TYPE), new (std::nothrow) String(APPCONTROL_DATA_MMS));
691 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
693 __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
694 null, null, pDataList, null);
696 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
700 AlbumListEditorForm::OnRequestEmail(void)
702 AppLogDebug("ENTER");
704 int checkCount = GetCheckedFolder();
708 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
713 IList* pAlbumInfoList = __pPresentationModel->GetAlbumInfoList();
715 int maxCount = __pPresentationModel->GetFolderCount();
716 ContentManager contentManager;
717 result r = contentManager.Construct();
722 AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
726 ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
727 pArrayList->Construct();
728 for (int i = 0 ; i < maxCount; ++i)
730 if (__pEditorFolderIconList->IsItemChecked (i))
732 AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(pAlbumInfoList->GetAt(i));
733 IList* pContentIdList = pAlbumInfo->GetContentIdListN();
734 int loopCount = pContentIdList->GetCount();
735 for (int k = 0; k < loopCount; ++k)
737 ContentId* pContentId = static_cast<ContentId*>(pContentIdList->GetAt(k));
738 ContentInfo* pContentInfo = contentManager.GetContentInfoN(*pContentId);
740 if (pContentInfo == null)
744 pArrayList->Add(new (std::nothrow) String(pContentInfo->GetContentPath()));
754 HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
755 pDataList->Construct();
756 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), (Object*)pArrayList);
758 __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
759 new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
761 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
765 AlbumListEditorForm::SetFooterButtonsState(bool enableState)
767 AppLogDebug("ENTER");
768 Footer* pFooter = GetFooter();
771 if (enableState == true)
773 pFooter->SetItemEnabled(0, true);
774 pFooter->SetItemEnabled(1, true);
778 pFooter->SetItemEnabled(0, false);
779 pFooter->SetItemEnabled(1, false);
782 pFooter->RequestRedraw(true);
783 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
787 AlbumListEditorForm::SetButtonState(void)
789 AppLogDebug("ENTER");
790 if (GetCheckedFolder() > 0)
792 AppLogDebug("BUTTONSTATE : Request Enable");
793 SetFooterButtonsState(true);
797 AppLogDebug("BUTTONSTATE : Request disable");
798 SetFooterButtonsState(false);
800 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));