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 MpAllListPanel.cpp
19 * @brief This is the implementation file for AllListPanel class.
23 #include <FSclAddressbook.h>
24 #include "MpAllListPanel.h"
25 #include "MpAllListPresentationModel.h"
26 #include "MpMiniPlayer.h"
27 #include "MpMusicPlayerApp.h"
28 #include "MpSettingPresentationModel.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::Social;
37 using namespace Tizen::Ui;
38 using namespace Tizen::Ui::Controls;
39 using namespace Tizen::Ui::Scenes;
41 AllListPanel::AllListPanel(void)
42 : ContentLibaryPanel::ContentLibaryPanel()
43 , ThumbnailBase::ThumbnailBase()
44 , __pContextItem(null)
45 , __pDeletePopup(null)
53 AllListPanel::~AllListPanel(void)
60 AllListPanel::Initialize(void)
63 result r = Panel::Construct(IDL_CONTENT_LIBARY_ALL_LIST_PANEL);
66 AppLogDebug("Construct(IDL_CONTENT_LIST_PANEL) failed(%s)", GetErrorMessage(r));
70 return ContentLibaryPanel::Construct();
74 AllListPanel::OnInitializing(void)
77 __pPresentationModel = AllListPresentationModel::GetInstance();
78 __pContentTableView->AddFastScrollListener(*this);
80 __pContextItem = CommonUtil::CreateTableViewContextItemN(*this, GetWidth(), FLICK_MENU_STYLE_TYPE_01);
81 if (__pContextItem == null)
83 delete __pContextItem;
84 __pContextItem = null;
85 AppLogDebug("CommonUtil::CreateContentDeletePopup failed");
89 __fontSizeValue = CommonUtil::GetFontSizeValue();
90 __itemHeight = CommonUtil::GetItemHeight(__fontSizeValue);
95 return ThumbnailBase::Construct();
99 AllListPanel::OnTerminating(void)
101 AppLogDebug("ENTER");
102 ThumbnailBase::Stop();
104 if (__pDeletePopup != null)
106 delete __pDeletePopup;
107 __pDeletePopup = null;
109 if (__pContextItem != null)
111 delete __pContextItem;
112 __pContextItem = null;
116 return ContentLibaryPanel::OnTerminating();
120 AllListPanel::OnAppControlCompleteResponseReceived(const AppId& appId,
121 const String& operationId, AppCtrlResult appControlResult,
122 const IMap* pExtraData)
124 AppLogDebug("ENTER");
125 if (pExtraData == null)
130 AppLogDebug("%ls, %ls", appId.GetPointer(), operationId.GetPointer());
131 result r = E_SUCCESS;
133 if (appId.Equals(String(PROVIDER_ID_CONTACT))/* && operationId.Equals(String(OPERATION_ID_PICK))*/)
135 if (appControlResult == APP_CTRL_RESULT_SUCCEEDED)
139 ArrayList* pArrayListValue = null;
140 String* pResultString = null;
141 if (pExtraData != null)
143 IMapEnumerator* pEnum = pExtraData->GetMapEnumeratorN();
144 while (pEnum->MoveNext() == E_SUCCESS)
146 pKey = static_cast<String*>(pEnum->GetKey());
147 if (pKey->Equals(APPCONTROL_KEY_SOCIAL_ITEM_ID, true))
149 pArrayListValue = static_cast<ArrayList*>(pEnum->GetValue());
154 if (pArrayListValue != null && pArrayListValue->GetCount() > 0)
156 for (int iCount = 0; iCount < pArrayListValue->GetCount(); iCount++)
158 pResultString = static_cast<String*>(pArrayListValue->GetAt(iCount));
159 AppLogDebug("extraData : %ls:%ls total contacts %d", pKey->GetPointer(), pResultString->GetPointer(),pArrayListValue->GetCount());
160 Integer::Parse(*pResultString, contactId);
161 pResultString->Clear();
164 AppLogDebug("pKey is invaild");
167 AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
168 Addressbook* pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
170 ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(__itemIndex);
171 if (pContentInfoStruct == null)
176 Contact* pContact = pAddressbook->GetContactN(contactId);
177 pContact->Tizen::Social::Contact::SetValue(CONTACT_PROPERTY_ID_RINGTONE, pContentInfoStruct->ContentFilePath);
178 r = pAddressbook->UpdateContact(*pContact);
180 delete pContentInfoStruct;
190 AppLogDebug("pExtraData is null");
196 GetParent()->SendUserEvent(ID_SHOW_SUCCESS_MESSAGE,null);
204 AllListPanel::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
206 AppLogDebug("ENTER");
207 SceneManager* pSceneManager = SceneManager::GetInstance();
208 AppAssert(pSceneManager);
212 case IDA_FLICK_MENU_ITEM_SHARE:
214 CreateContextMenuN(source);
215 SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_EMAIL | CONTEXT_MENU_ITEM_STYLE_MESSAGE);
219 case IDA_FLICK_MENU_ITEM_SET_AS:
221 CreateContextMenuN(source);
222 SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_CALL | CONTEXT_MENU_ITEM_STYLE_CALLER);
226 case IDA_DELETE_POPUP_DELETE:
228 case IDA_DELETE_POPUP_CANCEL:
230 if (__pDeletePopup != null)
232 __pDeletePopup->SetShowState(false);
233 //delete __pDeletePopup;
234 //__pDeletePopup = null;
237 if (actionId == IDA_DELETE_POPUP_DELETE)
239 __pPresentationModel->RemoveContent(__itemIndex);
240 __pContentTableView->RefreshItem(__itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
245 case IDA_CONTEXT_MENU_ITEM_EMAIL:
247 case IDA_CONTEXT_MENU_ITEM_MESSAGE:
249 result r = E_FAILURE;
250 String providerID = ((actionId == IDA_CONTEXT_MENU_ITEM_EMAIL) ? PROVIDER_ID_EMAIL : PROVIDER_ID_MESSAGE);
251 AppControl* pAppControl = AppManager::FindAppControlN(providerID, OPERATION_ID_COMPOSE);
252 if (pAppControl == null)
254 AppLogDebug("AppManager::FindAppControlN is null");
258 ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(__itemIndex);
259 if (pContentInfoStruct == null)
261 AppLogDebug("PresentationModel->GetContentInfoN is null");
267 HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
268 pDataList->Construct();
270 Tizen::Base::Collection::ArrayList* pValueList = new (std::nothrow) ArrayList(SingleObjectDeleter);
271 pValueList->Construct();
272 pValueList->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
273 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_PATH), pValueList);
275 r = pAppControl->Start(null, null, pDataList, this);
279 Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
281 pFrame->SetEnabled(false);
285 AppLogDebug("AppControl Start fail");
288 pDataList->RemoveAll(true);
292 delete pContentInfoStruct;
295 if(__pContentTableView->IsContextItemOpened(__itemIndex))
297 __pContentTableView->CloseContextItem(__itemIndex);
302 case IDA_CONTEXT_MENU_ITEM_CALL:
304 result r = __pPresentationModel->SetCallRingtone(__itemIndex);
307 MessageBox messageBox;
308 messageBox.Construct(L"", ResourceManager::GetString(L"IDS_COM_POP_SUCCESS"), MSGBOX_STYLE_OK, 3000);
310 messageBox.ShowAndWait(modalResult);
313 if(__pContentTableView->IsContextItemOpened(__itemIndex))
315 __pContentTableView->CloseContextItem(__itemIndex);
320 case IDA_CONTEXT_MENU_ITEM_CALLER:
322 result r = E_FAILURE;
323 AppControl* pAppControl = AppManager::FindAppControlN(PROVIDER_ID_CONTACT, OPERATION_ID_SOCIAL_PICK);
324 if (pAppControl == null)
329 HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
330 pDataList->Construct();
331 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SELECTION_MODE), new (std::nothrow) String(APPCONTROL_OPTION_SINGLE));
332 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_ITEM_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_PERSON));
333 pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_SOCIAL_RESULT_TYPE), new (std::nothrow) String(APPCONTROL_OPTION_ITEM_ID));
335 r = pAppControl->Start(null, null, pDataList, this);
338 Frame* pFrame = MusicPlayerApp::GetInstance()->GetFrameAt(0);
340 pFrame->SetEnabled(false);
344 AppLogDebug("AppControl Start fail");
347 pDataList->RemoveAll(true);
352 if (__pContentTableView->IsContextItemOpened(__itemIndex))
354 __pContentTableView->CloseContextItem(__itemIndex);
359 case IDA_FLICK_MENU_ITEM_ADDTO:
361 LanucherPicker(PICKER_TYPE_PLAY_LIST_PICKER, PICKER_ARGUMENT_TYPE_ACTIVATED_STATE_CONTEXT_ITEM);
363 if (__pContentTableView->IsContextItemOpened(__itemIndex))
365 __pContentTableView->CloseContextItem(__itemIndex);
370 case IDA_FLICK_MENU_ITEM_DELETE:
372 if (__pDeletePopup == null)
374 __pDeletePopup = CommonUtil::CreateContentDeletePopup(*this, IDA_DELETE_POPUP_DELETE, IDA_DELETE_POPUP_CANCEL);
375 __pDeletePopup->SetPropagatedKeyEventListener(this);
377 __pDeletePopup->SetShowState(true);
378 __pDeletePopup->Show();
380 if (__pContentTableView->IsContextItemOpened(__itemIndex))
382 __pContentTableView->CloseContextItem(__itemIndex);
387 case IDA_CONTEXT_MENU_ITEM_EDIT:
389 case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
391 if (__pPresentationModel->GetTotalCount() == 0)
393 MessageBox messageBox;
394 messageBox.Construct(L"", ResourceManager::GetString(L"IDS_MUSIC_HEADER_NO_SONGS"), MSGBOX_STYLE_NONE, 3000);
397 messageBox.ShowAndWait(modalResult);
400 ArrayList* pData = new (std::nothrow) ArrayList();
402 pData->Add(*(new (std::nothrow) Integer(actionId)));
403 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALL_LIST_EDITOR),pData);
407 case IDA_CONTEXT_MENU_ITEM_SEARCH:
409 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY));
413 case IDA_FOOTER_BUTTON_MORE:
415 CreateOptionMenuN(source);
416 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_SETTINGS | CONTEXT_MENU_ITEM_STYLE_SEARCH | CONTEXT_MENU_ITEM_STYLE_SHARE_VIA |
417 CONTEXT_MENU_ITEM_STYLE_EDIT | CONTEXT_MENU_ITEM_STYLE_FOLDER_VIEW);
421 case IDA_FOOTER_BUTTON_BACK:
423 Tizen::App::UiApp::GetInstance()->GetFrameAt(0)->SetShowMode(FRAME_SHOW_MODE_MINIMIZED);
427 case IDA_CONTEXT_MENU_ITEM_FOLDER_VIEW:
429 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_FOLDER_LIST));
433 case IDA_CONTEXT_MENU_ITEM_SETTINGS:
435 // SettingPresentationModel::GetInstance()->InitializeSettingValue();
436 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_MUSIC_SETTING));
444 TryRemoveContextMenu(actionId);
449 AllListPanel::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
451 AppLogDebug("ENTER");
452 if(IsExistMiniPlayer())
454 Tizen::App::UiApp::GetInstance()->GetFrameAt(0)->SetShowMode(FRAME_SHOW_MODE_MINIMIZED);
458 Tizen::App::Application::GetInstance()->Terminate();
464 AllListPanel::OnFormMenuRequested(Tizen::Ui::Controls::Form& source)
466 AppLogDebug("ENTER");
467 CreateOptionMenuN(source);
468 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_SETTINGS | CONTEXT_MENU_ITEM_STYLE_SEARCH | CONTEXT_MENU_ITEM_STYLE_SHARE_VIA |
469 CONTEXT_MENU_ITEM_STYLE_EDIT | CONTEXT_MENU_ITEM_STYLE_FOLDER_VIEW);
474 AllListPanel::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
475 const Tizen::Ui::Scenes::SceneId& currentSceneId,
476 Tizen::Base::Collection::IList* pArgs)
478 AppLogDebug("ENTER");
479 ContentLibaryPanel::OnSceneActivatedN(previousSceneId, currentSceneId, null);
481 GetHeader()->SetItemSelected(0);
482 GetHeader()->Invalidate(true);
487 AllListPanel::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
488 const Tizen::Ui::Scenes::SceneId& nextSceneId)
490 AppLogDebug("ENTER");
491 CancelAllThumbnailRequest();
492 ContentLibaryPanel::OnSceneDeactivated(currentSceneId, nextSceneId);
493 __pContentTableView->RefreshItem(__itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
498 AllListPanel::GetItemCount(void)
500 AppLogDebug("ENTER");
501 if (__pPresentationModel == null)
506 return __pPresentationModel->GetTotalCount();
510 AllListPanel::CreateItem(const int itemIndex, int itemWidth)
512 AppLogDebug("ENTER");
513 RelativeLayout layout;
516 TableViewItem* pItem = new (std::nothrow) TableViewItem();
517 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
519 result r = pItem->Construct(layout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
520 TryCatch(r == E_SUCCESS, delete pItem, "pItem->Construct(%s)", GetErrorMessage(r));
521 TryCatch(pContentInfo != null, delete pItem, "pContentInfo is null", GetErrorMessage(GetLastResult()));
523 r = CreateTableViewItem(*pItem, *pContentInfo);
524 TryCatch(r == E_SUCCESS, delete pItem, "CreateTableViewItem failed(%s)", GetErrorMessage(r));
526 pItem->SetContextItem(__pContextItem);
527 RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
534 AppLogDebug("EXIT(%ls)", GetErrorMessage(GetLastResult()));
540 AllListPanel::OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableView,
542 Tizen::Ui::Controls::TableViewItem* pItem,
543 Tizen::Ui::Controls::TableViewItemStatus status)
545 AppLogDebug("ENTER");
546 SceneManager* pSceneManager = SceneManager::GetInstance();
547 AppAssert(pSceneManager);
549 if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
551 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), GetContentListN(itemIndex));
557 AllListPanel::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView,
559 Tizen::Ui::Controls::TableViewContextItem* pContextItem,
562 AppLogDebug("ENTER");
563 if (activated == true)
565 __itemIndex = itemIndex;
571 AllListPanel::OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index)
573 AppLogDebug("ENTER");
574 int totalCount = __pPresentationModel->GetTotalCount();
575 for (int iCount = 0; iCount < totalCount; iCount++)
577 String name = __pPresentationModel->GetContentName(iCount);
578 if (name.GetLength())
580 String firstCharacter;
582 name.SubString(0, 1, firstCharacter);
583 firstCharacter.ToUpper();
586 firstCharacter.GetCharAt(0, language);
588 if (Character::GetUnicodeCategory(language) == UNICODE_HANGUL)
590 Tizen::Base::String HangulIndex[] = {"ㄱ", "ㄲ", "ㄴ", "ㄷ", "ㄸ", "ㄹ", "ㅁ", "ㅂ", "ㅃ", "ㅅ", "ㅆ", "ㅇ" , "ㅈ", "ㅉ", "ㅊ", "ㅋ", "ㅌ", "ㅍ", "ㅎ"};
593 name.GetCharAt(0, songName);
595 wchar_t UnicodeValue = (songName - 0xAC00);
596 wchar_t InitialConsonant = ((UnicodeValue - (UnicodeValue % 28)) / 28) / 21;
597 int tempIndex = static_cast<int>(InitialConsonant);
599 if (HangulIndex[tempIndex].CompareTo(index) == 0)
601 __pContentTableView->ScrollToItem(iCount);
605 else if (index.CompareTo("0") == 0 && Character::IsDigit(language) == true)
607 __pContentTableView->ScrollToItem(iCount);
610 else if (firstCharacter.CompareTo(index) == 0)
612 __pContentTableView->ScrollToItem(iCount);
621 AllListPanel::OnKeyPressed(Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo)
623 AppLogDebug("ENTER");
624 if (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
634 AllListPanel::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
636 AppLogDebug("ENTER");
637 if (__pDeletePopup != null && (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC))
639 __pDeletePopup->SetShowState(false);
647 Tizen::Base::Collection::ArrayList*
648 AllListPanel::GetContentListN(int itemIndex)
650 AppLogDebug("ENTER");
651 ArrayList* pTempList = new (std::nothrow) ArrayList();
652 pTempList->Construct();
654 pTempList->Add(*(new (std::nothrow) String(MUSIC)));
655 pTempList->Add(*(new (std::nothrow) Integer(itemIndex)));
656 pTempList->Add(*(__pPresentationModel->GetContentListN()));
663 AllListPanel::UpdateContentList(void)
665 AppLogDebug("ENTER");
666 if (__pPresentationModel != null)
668 __pPresentationModel->UpdateContentList();
673 Tizen::Base::Collection::IList*
674 AllListPanel::GetPickerArgumentListN(PickerType pickerType, PickerArgumentType argumentType)
676 AppLogDebug("ENTER");
677 if (pickerType != PICKER_TYPE_PLAY_LIST_PICKER || argumentType != PICKER_ARGUMENT_TYPE_ACTIVATED_STATE_CONTEXT_ITEM)
683 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
684 if (pContentInfo == null)
690 ArrayList* pContentPath = new (std::nothrow) ArrayList();
691 result r = pContentPath->Construct();
700 pContentPath->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
708 AllListPanel::IsEmptyContentList(void)
710 AppLogDebug("ENTER");
711 if (__pPresentationModel == null || __pPresentationModel->GetTotalCount() == INIT_VALUE)
721 AllListPanel::CreateTableViewItem(Tizen::Ui::Container& parent,
722 const ContentInformation& contentInfoStruct)
724 AppLogDebug("ENTER");
725 Panel* pTableViewItem = new (std::nothrow) Panel();
727 if (__fontSizeValue.Equals(STRING_FONT_SIZE_GIANT, false))
729 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_GIANT)))
731 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
735 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_HUGE, false))
737 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_HUGE)))
739 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
743 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_LARGE, false))
745 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_LARGE)))
747 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
751 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_SMALL, false))
753 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_SMALL)))
755 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
761 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_DEFAULT)))
763 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
768 //static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_THUMBNAIL))->SetBackgroundBitmap(*GetDefaultThumbnail());
769 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME))->SetText(contentInfoStruct.TitleName);
770 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ARTIST_NAME))->SetText(contentInfoStruct.ArtistName);
772 parent.AddControl(pTableViewItem);
773 CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
780 AllListPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
782 AppLogDebug("ENTER");
783 __pThumbnail = pThumbnailInfo->GetBitmapN();
784 Object* pParam = pThumbnailInfo->GetUserParamN();
787 __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
791 delete pThumbnailInfo;
796 AllListPanel::OnMusicContentUpdateCompleted(void)
798 AppLogDebug("ENTER");
799 if (__pDeletePopup != null && __pDeletePopup->GetShowState() == true)
801 __pDeletePopup->SetShowState(false);
802 // delete __pDeletePopup;
803 // __pDeletePopup = null;
805 ContentLibaryPanel::OnMusicContentUpdateCompleted();
810 AllListPanel::OnFontSizeChanged(void)
812 __fontSizeValue = CommonUtil::GetFontSizeValue();
813 __itemHeight = CommonUtil::GetItemHeight(__fontSizeValue);
814 __pContentTableView->UpdateTableView();
819 AllListPanel::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
821 AppLogDebug("ENTER");
824 AppLogDebug("pItem is null");
830 Label* pThumbnailLabel = static_cast<Label*>(pItem->GetControl(IDC_CONTENTS_THUMBNAIL, true));
831 if (__pThumbnail == null || pThumbnailLabel == null)
833 AppLogDebug("__pThumbnail or pThumbnailLabel is null");
838 pThumbnailLabel->SetBackgroundBitmap(*__pThumbnail);
841 pThumbnailLabel->Invalidate(true);