2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (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 MpPlaylistContentListForm.cpp
19 * @brief This is the implementation file for PlaylistContentListForm class.
23 #include "MpMusicPlayerApp.h"
24 #include "MpNowPlayContentPanel.h"
25 #include "MpPlaylistContentListForm.h"
26 #include "MpPlaylistListPresentationModel.h"
27 #include "MpPlaylistPickerPopup.h"
28 #include "MpSharePopup.h"
29 #include "MpThumbnailInfo.h"
31 using namespace Tizen::App;
32 using namespace Tizen::Base;
33 using namespace Tizen::Base::Collection;
34 using namespace Tizen::Content;
35 using namespace Tizen::Graphics;
36 using namespace Tizen::Io;
37 using namespace Tizen::Social;
38 using namespace Tizen::Ui;
39 using namespace Tizen::Ui::Controls;
40 using namespace Tizen::Ui::Scenes;
42 PlaylistContentListForm::PlaylistContentListForm(void)
43 : ContentListForm::ContentListForm()
44 , ThumbnailBase::ThumbnailBase()
45 , __pContentListTableView(null)
47 , __pPresentationModel(null)
48 , __checkedItemCount(0)
49 , __currentContentType(-1)
50 , __activatedStateContextItem(-1)
56 PlaylistContentListForm::~PlaylistContentListForm(void)
63 PlaylistContentListForm::Initialize(void)
66 if (IsFailed(Form::Construct(IDL_CONTENT_LIST_FORM)))
68 AppLogDebug("Construct(IDL_CONTENT_LIST_FORM) failed(%s)", GetErrorMessage(GetLastResult()));
77 PlaylistContentListForm::Construct(void)
80 __pContentListTableView = static_cast<TableView*>(GetControl(IDC_TABLEVIEW_CONTENT_LIST));
81 __pContentListTableView->AddTableViewItemEventListener(*this);
82 __pContentListTableView->SetItemProvider(this);
84 SetContentList(__pContentListTableView);
86 return ContentListForm::Construct();
90 PlaylistContentListForm::OnInitializing(void)
93 __fontSizeValue = CommonUtil::GetFontSizeValue();
94 __itemHeight = CommonUtil::GetItemHeight(__fontSizeValue);
96 return ThumbnailBase::Construct();
100 PlaylistContentListForm::OnTerminating(void)
102 AppLogDebug("ENTER");
103 ThumbnailBase::Stop();
105 return ContentListForm::OnTerminating();
109 PlaylistContentListForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
111 AppLogDebug("ENTER");
112 SceneManager* pSceneManager = SceneManager::GetInstance();
114 AppAssert(pSceneManager);
118 case IDA_HEADER_BUTTON_SELECTE_ALL:
120 bool isChecked = true;
121 if (__checkedItemCount == __pContentListTableView->GetItemCount())
125 SetItemCheckedAll(isChecked);
129 case IDA_CONTEXT_MENU_ITEM_SEARCH:
131 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY));
135 case IDA_CONTEXT_MENU_ITEM_EDIT:
137 if (__pPresentationModel->GetContentCount() == 0)
139 MessageBox messageBox;
140 messageBox.Construct(L"", ResourceManager::GetString(L"IDS_MUSIC_HEADER_NO_SONGS"), MSGBOX_STYLE_NONE, 3000);
143 messageBox.ShowAndWait(modalResult);
147 ToggleScreenState(SCREEN_STATE_EDITOR);
152 case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
154 if (__pPresentationModel->GetContentCount() == 0)
156 MessageBox messageBox;
157 messageBox.Construct(L"", ResourceManager::GetString(L"IDS_MUSIC_HEADER_NO_SONGS"), MSGBOX_STYLE_NONE, 3000);
160 messageBox.ShowAndWait(modalResult);
164 ToggleScreenState(SCREEN_STATE_SHARE_VIA);
165 // LanucherPicker(PICKER_TYPE_SHARE_PICKER);
170 case IDA_FOOTER_BUTTON_SHARE:
172 LanucherPicker(PICKER_TYPE_SHARE_PICKER);
176 case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
178 LanucherPicker(PICKER_TYPE_PLAY_LIST_PICKER);
182 case IDA_FOOTER_BUTTON_MORE:
184 CreateOptionMenuN(source);
185 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_EDIT);
189 case IDA_FOOTER_BUTTON_DELETE:
191 if (__currentContentType == RECENTLY_ADDED_CONTENT)
193 RemoveCheckedTableviewItem(true);
197 int totalCount = __pPresentationModel->GetContentCount();
198 for (int iCount = 0; iCount < totalCount; iCount++)
200 if (__pContentListTableView->IsItemChecked(iCount) == true)
202 ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
203 if (pContentInfoStruct == null)
207 // __pContentListTableView->SetItemChecked(iCount, false);
208 __pPresentationModel->DeleteContent(__currentContentType, *pContentInfoStruct);
210 delete pContentInfoStruct;
213 RemoveCheckedTableviewItem(false);
214 __pPresentationModel->UpdatePlaylistContentList(__currentContentType, __headerTitle);
218 if(__pPresentationModel->GetContentCount() == 0)
220 ToggleScreenState(SCREEN_STATE_NORMAL);
230 TryRemoveContextMenu(actionId);
235 PlaylistContentListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
236 const Tizen::Ui::Scenes::SceneId& currentSceneId,
237 Tizen::Base::Collection::IList* pArgs)
239 AppLogDebug("ENTER");
240 if (pArgs != null && previousSceneId.Equals(IDSCN_PLAYLIST_LIST, true) == true)
242 __headerTitle.Clear();
243 __prevSceneId.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME)));
244 __headerTitle.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME)));
245 __currentContentType = static_cast<Integer*>(pArgs->GetAt(DATA_ITEM_CONTENT_TYPE))->ToInt();
247 pArgs->RemoveAll(true);
250 else if (pArgs != null && previousSceneId.Equals(IDSCN_PLAYLIST_CREATOR, true) == true)
252 SetItemCheckedAll(false);
253 pArgs->RemoveAll(true);
257 __pPresentationModel = PlaylistListPresentationModel::GetInstance();
258 __pPresentationModel->UpdatePlaylistContentList(__currentContentType, __headerTitle);
260 if (__currentContentType < RECENTLY_ADDED_CONTENT || !previousSceneId.Equals(IDSCN_PLAYER,true))
269 PlaylistContentListForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
270 const Tizen::Ui::Scenes::SceneId& nextSceneId)
272 AppLogDebug("ENTER");
273 CancelAllThumbnailRequest();
278 PlaylistContentListForm::GetItemCount(void)
280 AppLogDebug("ENTER");
281 if (__pPresentationModel == null)
287 return __pPresentationModel->GetContentCount();
290 Tizen::Ui::Controls::TableViewItem*
291 PlaylistContentListForm::CreateItem(const int itemIndex, int itemWidth)
293 AppLogDebug("ENTER");
294 RelativeLayout layout;
297 TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
298 if (GetScreenState() != SCREEN_STATE_NORMAL)
300 tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
303 TableViewItem* pItem = new (std::nothrow) TableViewItem();
304 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
306 result r = pItem->Construct(layout, Dimension(itemWidth, __itemHeight), tableViewAnnexStyle);
307 TryCatch(r == E_SUCCESS, delete pItem, "pItem->Construct(%s)", GetErrorMessage(r));
308 TryCatch(pContentInfo != null, delete pItem, "pContentInfo is null", GetErrorMessage(GetLastResult()));
310 r = CreateTableViewItem(*pItem, *pContentInfo);
311 TryCatch(r == E_SUCCESS, delete pItem, "CreateTableViewItem failed(%s)", GetErrorMessage(r));
313 RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
320 AppLogDebug("EXIT(%ls)", GetErrorMessage(GetLastResult()));
326 PlaylistContentListForm::OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableView,
328 Tizen::Ui::Controls::TableViewItem* pItem,
329 Tizen::Ui::Controls::TableViewItemStatus status)
331 AppLogDebug("ENTER");
332 if (GetScreenState() != SCREEN_STATE_NORMAL)
334 SetItemCheckedStateChanged(status);
339 if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
341 SceneManager* pSceneManager = SceneManager::GetInstance();
342 AppAssert(pSceneManager);
344 ArrayList* pSceneArg = MakePlayerSceneParam(itemIndex);
345 if (pSceneArg != null)
347 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pSceneArg);
354 PlaylistContentListForm::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView, int itemIndex,
355 Tizen::Ui::Controls::TableViewContextItem* pContextItem,
358 AppLogDebug("ENTER");
361 __activatedStateContextItem = itemIndex;
367 PlaylistContentListForm::GetDefaultItemHeight(void)
369 AppLogDebug("ENTER");
375 PlaylistContentListForm::DeleteItem(const int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
377 AppLogDebug("ENTER");
383 PlaylistContentListForm::OnTableViewItemReordered(Tizen::Ui::Controls::TableView& tableView,
387 AppLogDebug("ENTER");
391 Tizen::Base::Collection::ArrayList*
392 PlaylistContentListForm::GetSearchResultContentList(int itemIndex)
394 AppLogDebug("ENTER");
395 ArrayList* pTempList = new (std::nothrow) ArrayList();
396 if (pTempList == null)
401 pTempList->Construct();
403 pTempList->Add(*(new (std::nothrow) String(MUSIC)));
404 pTempList->Add(*(new (std::nothrow) Integer(itemIndex)));
405 pTempList->Add(*(__pPresentationModel->GetContentPathListN(__currentContentType)));
410 Tizen::Base::Collection::ArrayList*
411 PlaylistContentListForm::GetAudioContentInfoContentList(int itemIndex)
413 AppLogDebug("ENTER");
414 ArrayList* pTempList = new (std::nothrow) ArrayList();
415 if (pTempList == null)
420 pTempList->Construct();
422 pTempList->Add(*(new (std::nothrow) String(MUSIC)));
423 pTempList->Add(*(new (std::nothrow) Integer(itemIndex)));
424 pTempList->Add(*(__pPresentationModel->GetContentPathListN(__currentContentType)));
430 PlaylistContentListForm::IsEmptyContentList(void)
432 AppLogDebug("ENTER");
433 if (__pPresentationModel->GetContentCount() != INIT_VALUE)
442 PlaylistContentListForm::GetCheckedItemCount(void)
444 AppLogDebug("ENTER");
446 return __checkedItemCount;
449 Tizen::Base::Collection::ArrayList*
450 PlaylistContentListForm::MakePlayerSceneParam(int startIndex)
452 AppLogDebug("ENTER");
453 if (__currentContentType != RECENTLY_ADDED_CONTENT)
456 return GetAudioContentInfoContentList(startIndex);
458 else if (__currentContentType == RECENTLY_ADDED_CONTENT)
461 return GetSearchResultContentList(startIndex);
468 PlaylistContentListForm::SetHeader(void)
470 AppLogDebug("ENTER");
471 CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
477 PlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo)
479 AppLogDebug("ENTER");
480 Panel* pTableViewItem = new (std::nothrow) Panel();
482 if (GetScreenState() != SCREEN_STATE_NORMAL)
484 if (__fontSizeValue.Equals(STRING_FONT_SIZE_GIANT, false))
486 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_GIANT)))
488 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
492 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_HUGE, false))
494 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_HUGE)))
496 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
500 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_LARGE, false))
502 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_LARGE)))
504 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
508 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_SMALL, false))
510 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_SMALL)))
512 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
518 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_DEFAULT)))
520 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
527 if (__fontSizeValue.Equals(STRING_FONT_SIZE_GIANT, false))
529 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_GIANT)))
531 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
535 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_HUGE, false))
537 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_HUGE)))
539 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
543 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_LARGE, false))
545 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_LARGE)))
547 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
551 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_SMALL, false))
553 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_SMALL)))
555 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
561 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_DEFAULT)))
563 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
569 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME))->SetText(contentInfo.TitleName);
570 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ARTIST_NAME))->SetText(contentInfo.ArtistName);
571 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_THUMBNAIL))->SetBackgroundBitmap(*GetDefaultThumbnail());
573 parent.AddControl(pTableViewItem);
574 CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
581 PlaylistContentListForm::OnAppControlCompleteResponseReceived(const AppId& appId,
582 const String& operationId, AppCtrlResult appControlResult,
583 const IMap* pExtraData)
585 AppLogDebug("ENTER");
586 if (pExtraData == null)
591 AppLogDebug("%ls, %ls", appId.GetPointer(), operationId.GetPointer());
592 if (appId.Equals(String(PROVIDER_ID_CONTACT)))
594 if (appControlResult == APP_CTRL_RESULT_SUCCEEDED)
596 const String* pResultString = static_cast<const String*>(pExtraData->GetValue(String(APPCONTROL_KEY_SOCIAL_ITEM_ID)));
598 AppLogDebug("%ls", pResultString->GetPointer());
600 Integer::Parse(*pResultString, contactId);
602 AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
603 Addressbook* pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
605 ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(__activatedStateContextItem);
606 if (pCcontentInfo == null)
613 Contact* pContact = pAddressbook->GetContactN(contactId);
614 pContact->SetValue(CONTACT_PROPERTY_ID_RINGTONE, pCcontentInfo->ContentFilePath);
615 result r = pAddressbook->UpdateContact(*pContact);
619 ShowDelayedMessageBox(ResourceManager::GetString(L"IDS_COM_POP_SUCCESS"));
622 delete pCcontentInfo;
623 pCcontentInfo = null;
636 PlaylistContentListForm::OnFormMenuRequested(Tizen::Ui::Controls::Form& source)
638 if (GetScreenState() == SCREEN_STATE_NORMAL && IsEmptyContentList() == false)
640 CreateOptionMenuN(source);
641 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_EDIT);
646 PlaylistContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
648 AppLogDebug("ENTER");
649 Object* pParam = null;
650 __pThumbnail = pThumbnailInfo->GetBitmapN();
651 pParam = pThumbnailInfo->GetUserParamN();
654 __pContentListTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
658 delete pThumbnailInfo;
663 PlaylistContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
665 AppLogDebug("ENTER");
669 AppLogDebug("pItem is null");
675 Label* pThumbnailLabel = static_cast<Label*>(pItem->GetControl(IDC_CONTENTS_THUMBNAIL, true));
676 if (__pThumbnail == null || pThumbnailLabel == null)
678 AppLogDebug("__pThumbnail or pThumbnailLabel is null");
684 pThumbnailLabel->SetBackgroundBitmap(*__pThumbnail);
687 pThumbnailLabel->Invalidate(true);
692 PlaylistContentListForm::UpdateTableView(void)
694 AppLogDebug("ENTER");
695 __pContentListTableView->UpdateTableView();
700 PlaylistContentListForm::UpdateContentList(void)
702 AppLogDebug("ENTER");
703 __pPresentationModel->UpdatePlaylistContentList(__currentContentType, __headerTitle);
705 if (__pPresentationModel->GetContentCount() == 0)
707 SceneManager* pSceneManager = SceneManager::GetInstance();
708 ToggleScreenState(SCREEN_STATE_NORMAL);
709 AppAssert(pSceneManager);
710 pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_NONE,SCENE_DESTROY_OPTION_KEEP));
720 PlaylistContentListForm::SetItemCheckedAll(bool isChecked)
722 AppLogDebug("ENTER");
723 if (isChecked == true)
725 __checkedItemCount = __pContentListTableView->GetItemCount();
729 __checkedItemCount = INIT_VALUE;
731 CommonUtil::SetItemCheckedAll(isChecked, *__pContentListTableView);
733 if (GetFooter() != null)
735 CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
738 SetCheckedCountBallonTooltip(GetCheckedItemCount());
743 PlaylistContentListForm::RemoveCheckedTableviewItem(bool itemRemove)
745 AppLogDebug("ENTER");
748 int totalCount = __pContentListTableView->GetItemCount();
749 for (int iCount = 0; iCount < totalCount; iCount++)
751 if (__pContentListTableView->IsItemChecked(iCount) == true)
753 __pContentListTableView->SetItemChecked(iCount, false);
754 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(iCount);
755 if (pContentInfo != null)
757 RemoveContentAt(pContentInfo->contentId);
765 SetItemCheckedAll(false);
771 PlaylistContentListForm::SetItemCheckedStateChanged(Tizen::Ui::Controls::TableViewItemStatus status)
773 AppLogDebug("ENTER");
774 if (status == TABLE_VIEW_ITEM_STATUS_UNCHECKED)
776 __checkedItemCount--;
777 if (__checkedItemCount == INIT_VALUE)
779 if (GetFooter() != null)
781 CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
785 else if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
787 if (__checkedItemCount == INIT_VALUE)
789 if (GetFooter() != null)
791 CommonUtil::SetFooterItemEnabled(*GetFooter(), true);
795 __checkedItemCount++;
798 SetCheckedCountBallonTooltip(GetCheckedItemCount());
802 Tizen::Base::Collection::IList*
803 PlaylistContentListForm::GetPickerArgumentListN(PickerType pickerType, PickerArgumentType argumentType)
805 AppLogDebug("ENTER");
806 Tizen::Base::Collection::ArrayList* pContentFilePathList = new (std::nothrow) ArrayList(SingleObjectDeleter);
807 if (IsFailed(pContentFilePathList->Construct()))
809 AppLogDebug("pContentList->Construct failed(%s)", GetErrorMessage(GetLastResult()));
810 delete pContentFilePathList;
814 if (argumentType == PICKER_ARGUMENT_TYPE_ACTIVATED_STATE_CONTEXT_ITEM)
816 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(__activatedStateContextItem);
817 if (pContentInfo == null)
819 delete pContentFilePathList;
820 AppLogDebug("GetContentInfoN(%d) is null", __activatedStateContextItem);
824 pContentFilePathList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
827 else if (argumentType == PICKER_ARGUMENT_TYPE_CHECKED_ITEM_ALL)
829 int totalCount = __pContentListTableView->GetItemCount();
830 for (int iCount = 0; iCount < totalCount; iCount++)
832 if (__pContentListTableView->IsItemChecked(iCount) == true)
834 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(iCount);
835 if (pContentInfo == null)
837 AppLogDebug("GetContentInfoN(%d) is null", iCount);
838 delete pContentFilePathList;
842 if (pickerType == PICKER_TYPE_PLAY_LIST_PICKER)
844 pContentFilePathList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
846 else if (pickerType == PICKER_TYPE_SHARE_PICKER)
848 pContentFilePathList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
855 return pContentFilePathList;
859 PlaylistContentListForm::OnFontSizeChanged(void)
861 __fontSizeValue = CommonUtil::GetFontSizeValue();
862 __itemHeight = CommonUtil::GetItemHeight(__fontSizeValue);
863 __pContentListTableView->UpdateTableView();