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: MfSubBaseSelectionForm.cpp
19 * @brief: This file contains implementation of SubBaseSelection class, which acts as a view for traversing SubDirectories
23 #include "MfMyFilesApp.h"
24 #include "MfSceneRegister.h"
25 #include "MfSubBaseSelectionForm.h"
27 using namespace Tizen::App;
28 using namespace Tizen::Base;
29 using namespace Tizen::Base::Collection;
30 using namespace Tizen::Base::Utility;
31 using namespace Tizen::Content;
32 using namespace Tizen::Graphics;
33 using namespace Tizen::Io;
34 using namespace Tizen::Locales;
35 using namespace Tizen::Media;
36 using namespace Tizen::System;
37 using namespace Tizen::Telephony;
38 using namespace Tizen::Ui;
39 using namespace Tizen::Ui::Controls;
40 using namespace Tizen::Ui::Scenes;
42 SubBaseSelection::SubBaseSelection(void)
47 , _pCreateFolder(null)
51 , _pLabelNumberOfItems(null)
55 , _pAudioPlayPressed(null)
57 , _pFolderBitmap(null)
60 , _pFolderEntryPM(null)
61 , _pThumbnailManager(null)
64 //,_listAnnexStyle(null)
65 _selectionMode = SELECTION_MODE_MULTIPLE;
66 _storedSortStyle = SORT_BY_TYPE_DATE_RECENT;
67 _storePreviousIndex = -1;
68 _currentViewStyle = APPCONTROL_VIEW_DEFAULT;
69 _currentExportFileType = EXPORT_TYPE_CONTACTS;
70 _currentFileType = FILE_TYPE_ALL;
71 _previousAudioSelected = -1;
72 _annexStyle = ANNEX_STYLE_NORMAL;
73 _storageType = MEMORY_TYPE_PHONE;
74 _currentAudioPlayIndex = -1;
75 _defaultListViewBounds = Rectangle(0,0,0,0);
78 SubBaseSelection::~SubBaseSelection(void)
95 if (_pCreateFolder != null)
97 delete _pCreateFolder;
100 if (_pAudioPlayer != null)
102 delete _pAudioPlayer;
105 if (_pFolderEntryPM != null)
107 delete _pFolderEntryPM;
110 if (_pAudioPlay != null)
115 if (_pAudioPause != null)
120 if (_pAudioPlayPressed != null)
122 delete _pAudioPlayPressed;
125 if (_pFolderBitmap != null)
127 delete _pFolderBitmap;
130 if (_pDummyImage != null)
135 if (_pCallManager != null)
137 delete _pCallManager;
138 _pCallManager = null;
143 SubBaseSelection::operator =(const SubBaseSelection& pSubBaseSelection)
148 SubBaseSelection::SubBaseSelection(const SubBaseSelection& pSubBaseSelection)
154 SubBaseSelection::OnPlayerOpened(result r)
156 //empty implementation
160 SubBaseSelection::OnPlayerEndOfClip(void)
162 //empty implementation
166 SubBaseSelection::OnPlayerBuffering(int percent)
168 //empty implementation
172 SubBaseSelection::OnPlayerErrorOccurred(PlayerErrorReason r)
174 //empty implementation
178 SubBaseSelection::OnPlayerInterrupted(void)
180 //empty implementation
184 SubBaseSelection::OnPlayerReleased(void)
186 //empty implementation
190 SubBaseSelection::OnPlayerSeekCompleted(result r)
192 //empty implementation
195 Tizen::Ui::Controls::ListItemBase*
196 SubBaseSelection::CreateItem(int index, int itemWidth)
198 AppLogDebug("Entry");
199 CustomItem* pCustomItem = null;
200 if (_currentViewStyle == APPCONTROL_VIEW_EXPORT)
202 pCustomItem = CreateExportListViewItem(index, itemWidth);
206 pCustomItem = CreateDefaultContentItem(index, itemWidth);
212 SubBaseSelection::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
224 SubBaseSelection::GetItemCount(void)
226 AppLogDebug("Entry");
229 if (_pFilenames != null)
231 AppResource* pAppResource = null;
234 pAppResource = Application::GetInstance()->GetAppResource();
235 TryCatch(pAppResource != null, , "Resource manager not found!");
237 pAppResource->GetString(L"IDS_SELECT_FILES", selectFiles);
239 if (_currentViewStyle == APPCONTROL_VIEW_IMPORT)
241 itemCount = _pFilenames->GetCount();
246 if (_pFilenames->GetCount() == 0)
248 if (_pLabelNumberOfItems->GetShowState() == true)
250 _pLabelNumberOfItems->SetShowState(false);
251 _pLabelNumberOfItems->Draw();
253 if (_selectionMode == SELECTION_MODE_MULTIPLE)
255 _pListView->SetSize(_defaultListViewBounds.width, _defaultListViewBounds.height);
256 _pListView->Invalidate(true);
262 if (_pLabelNumberOfItems->GetShowState() == false && _selectionMode != SELECTION_MODE_SINGE && _currentViewStyle == APPCONTROL_VIEW_DEFAULT)
264 _pLabelNumberOfItems->SetShowState(true);
267 if (_selectionMode == SELECTION_MODE_MULTIPLE)
269 _pListView->SetSize(_defaultListViewBounds.width, _defaultListViewBounds.height - _pLabelNumberOfItems->GetHeight());
270 _pListView->Invalidate(true);
272 _itemSelectedCount.Clear();
273 _itemSelectedCount.Append(selectFiles);
274 _pLabelNumberOfItems->SetText(_itemSelectedCount);
275 _pLabelNumberOfItems->Invalidate(true);
278 AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
279 itemCount = _pFilenames->GetCount();
287 AppLogDebug("Failed to get count");
292 SubBaseSelection::CreateDefaultContentItem(int index, int itemWidth)
294 AppLogDebug("Entry");
295 result r = E_SUCCESS;
298 String folderIconPath;
300 String searchedString;
301 String cacheImagePath;
303 PlayerState audioPlayerStatus;
304 CallStatus callStatus;
305 ContentType contentType = CONTENT_TYPE_UNKNOWN;
307 ContentListItem* pCustomItem = null;
308 Bitmap* pFetchedCacheImage = null;
309 Bitmap* pThumbnailImage = null;
310 HashMap* pCacheList = null;
312 Dimension thumbnailDimension(W_LISTVIEW_ITEM_BITMAP, H_LISTVIEW_ITEM_BITMAP);
313 Dimension textDimension(itemWidth - W_LISTVIEW_ITEM_BITMAP, H_ITEM_LISTVIEW);
314 AppResource* pAppResource = null;
315 DirectoryEntry* pFileDetails = null;
319 w_Title = itemWidth - ((W_LISTVIEW_ITEM_BITMAP * 4) + (4 * X_LISTVIEW));
320 TryCatch(_pFilenames != null, , "Filename list if empty!");
322 pAppResource = Application::GetInstance()->GetAppResource();
323 TryCatch(pAppResource != null, , "Resource manager not found!");
325 pCustomItem = new (std::nothrow) ContentListItem(itemWidth, H_ITEM_LISTVIEW);
326 TryCatch(pCustomItem != null, , "Failed to alloated customitem");
328 pFileDetails = static_cast< DirectoryEntry* >(_pFilenames->GetAt(index));
329 if (pFileDetails != null)
331 filename = pFileDetails->GetFileName();
333 contentType = ContentManagerUtil::CheckContentType(pFileDetails->GetFullFilePath());
334 pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
335 if (_pThumbnailManager != null)
337 if (pFileDetails->IsDirectory())
339 pCustomItem->SetThumbnail(_pFolderBitmap);
340 _annexStyle = ANNEX_STYLE_NORMAL;
341 pCustomItem->SetListAnnexStyle(_annexStyle);
345 if (!pFileDetails->GetFileExtension().IsEmpty())
347 filename = filename + "." + pFileDetails->GetFileExtension();
350 if (pFileDetails->GetBitmap() == null)
352 if (pCacheList != null && (contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO))
354 if (pFileDetails != null)
356 cacheImagePath = pFileDetails->GetFullFilePath();
359 if ((pCacheList->GetValue(cacheImagePath)) != null)
361 pFetchedCacheImage = static_cast< Bitmap* >(pCacheList->GetValue(cacheImagePath));
365 if (pFetchedCacheImage != null)
367 pThumbnailImage = CacheManager::GetInstance()->GetCacheBitmapN(cacheImagePath);
368 pCustomItem->SetThumbnail(pThumbnailImage);
372 pFileDetails->SetDummy(true);
373 pCustomItem->SetThumbnail(_pDummyImage);
376 //r = _pFolderEntryPM->InitThumbnailManager(index);
380 pCustomItem->SetThumbnail(pFileDetails->GetBitmap());
383 if (_selectionMode == SELECTION_MODE_SINGE)
385 _annexStyle = ANNEX_STYLE_RADIO;
386 pCustomItem->SetListAnnexStyle(_annexStyle);
388 else if (_selectionMode == SELECTION_MODE_MULTIPLE)
390 _annexStyle = ANNEX_STYLE_MARK;
391 pCustomItem->SetListAnnexStyle(_annexStyle);
393 else if (_selectionMode == SELECTION_MODE_NONE)
395 _annexStyle = ANNEX_STYLE_NORMAL;
396 pCustomItem->SetListAnnexStyle(_annexStyle);
400 if (contentType == CONTENT_TYPE_AUDIO)
402 callStatus = _pCallManager->GetCurrentCallStatus();
403 if (callStatus != CALL_STATUS_UNDEFINED && callStatus == CALL_STATUS_IDLE)
406 if (_pAudioPlayer != null)
408 audioPlayerStatus = _pAudioPlayer->GetState();
409 AppLogDebug("SubBaseSelection::CreateDefaultContentItem:%d", audioPlayerStatus);
412 if (audioPlayerStatus == PLAYER_STATE_CLOSED)
414 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
417 if (_currentAudioPlayIndex == index)
419 if (audioPlayerStatus == PLAYER_STATE_PLAYING)
421 pCustomItem->SetAudioBitmap(null, _pAudioPause);
423 //else if (audioPlayerStatus == PLAYER_STATE_PAUSED || audioPlayerStatus == PLAYER_STATE_ENDOFCLIP)
426 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
431 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
436 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
445 if (!filename.IsEmpty())
447 pCustomItem->SetTitle(filename, searchedString);
449 pCustomItem->MakeAppControlFormListItem();
451 AppLogDebug("Exit %s", GetErrorMessage(r));
457 if (_pAudioPlay != null)
463 if (_pAudioPause != null)
469 AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
474 SubBaseSelection::OnThumbnailReceived(ThumbRequest* pThumbReq)
476 result res = E_SUCCESS;
477 AppLogDebug("Enter");
481 if (pThumbReq != null)
483 if (pThumbReq->GetCurrentSourceForm() != _pFolderEntryPM->GetSourceForm())
485 if (pThumbReq->pBitmap != null)
487 AppLogDebug("This Bitmap is not requested from same form");
488 delete pThumbReq->pBitmap;
496 if (pThumbReq->iRquestId < _pFilenames->GetCount())
499 _pFolderEntryPM->OnThumbnailResponseReceived(pThumbReq->pBitmap, pThumbReq->iRquestId);
501 if (_pListView && _pListView->IsVisible())
503 res = _pListView->RefreshList(pThumbReq->iRquestId, LIST_REFRESH_TYPE_ITEM_MODIFY);
509 _pFolderEntryPM->OnThumbnailResponseFailed();
512 AppLogDebug("Exit %s", GetErrorMessage(res));
517 SubBaseSelection::OnListViewItemStateChangedNotify(ViewType viewType)
519 //empty Implementation
523 SubBaseSelection::InitializePlayer(void)
525 AppLogDebug("SubFolderSelection::OnListViewItemStateChanged");
526 if (_pAudioPlayer == null)
528 _pAudioPlayer = new (std::nothrow) Player();
530 if (_pAudioPlayer != null)
532 _pAudioPlayer->Construct(*this);
538 SubBaseSelection::LoadMusicPlayer(const Tizen::Base::String& mediaFilepath, Tizen::Media::PlayerState PlayerCurrentState)
540 AppLogDebug("SubFolderSelection::OnListViewItemStateChanged");
541 result r = E_SUCCESS;
542 if (_pAudioPlayer != null && mediaFilepath.IsEmpty() == false)
544 if (_pAudioPlayer->GetState() != PLAYER_STATE_PAUSED)
546 if (_pAudioPlayer != null)
548 delete _pAudioPlayer;
549 _pAudioPlayer = null;
551 _pAudioPlayer = new (std::nothrow) Player();
552 _pAudioPlayer->Construct(*this);
555 r = _pAudioPlayer->OpenFile(mediaFilepath, false);
556 r = _pAudioPlayer->Play();
557 r = _pAudioPlayer->SetLooping(false);
558 r = _pAudioPlayer->SetVolume(100);
560 AppLogDebug("Exit: %s", GetErrorMessage(r));
564 SubBaseSelection::InitializeAppRegistry(void)
566 AppLogDebug("Entry");
567 result r = E_SUCCESS;
568 int previousSortValue = 0;
569 AppRegistry* pAppRegistry = null;
570 String sortbyKeyName(L"SortBy");
571 SortByType sortStyle = SORT_BY_TYPE_DATE_RECENT;
573 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
575 r = pAppRegistry->Add(sortbyKeyName, sortStyle);
579 r = pAppRegistry->Save();
581 else if (r == E_KEY_ALREADY_EXIST)
583 pAppRegistry->Get(sortbyKeyName, previousSortValue);
584 _storedSortStyle = static_cast< SortByType >(previousSortValue);
585 if (_storedSortStyle != null)
587 pAppRegistry->Set(sortbyKeyName, sortStyle);
588 r = pAppRegistry->Save();
592 AppLogDebug("Exit %s", GetErrorMessage(r));
597 SubBaseSelection::CreateLabelControl(void)
599 AppLogDebug("Entry");
600 result r = E_SUCCESS;
601 Color backgroundColor(68, 68, 68);
602 //Color textColor(Color(76, 81, 88));
604 _pLabelNumberOfItems = static_cast< Label* >(GetControl(L"IDC_LABEL_SELECTED"));
605 TryCatch(_pLabelNumberOfItems != null, , "applog: allocation failed for __pLabelNumberOfItems");
607 // _pLabelNumberOfItems->Construct(Rectangle(0, GetClientAreaBounds().height - H_DISPLAY_PATH_LABEL, GetClientAreaBounds().width, H_DISPLAY_PATH_LABEL), _itemSelectedCount);
608 // _pLabelNumberOfItems->SetBackgroundColor(backgroundColor);
609 // _pLabelNumberOfItems->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
610 _pLabelNumberOfItems->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
611 // _pLabelNumberOfItems->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
612 _pLabelNumberOfItems->SetTextConfig(ID_FONT_SIZE_26, LABEL_TEXT_STYLE_BOLD);
614 if (_selectionMode == SELECTION_MODE_SINGE)
616 _pLabelNumberOfItems->SetShowState(false);
620 if (_currentViewStyle != APPCONTROL_VIEW_IMPORT)
622 _pLabelNumberOfItems->SetShowState(true);
626 // r = AddControl(*_pLabelNumberOfItems);
627 AppLogDebug("Exit %s", GetErrorMessage(r));
630 AppLogDebug("Exit %s", GetErrorMessage(r));
637 SubBaseSelection::SubBaseOnActionPerformed(const Tizen::Ui::Control& source, int actionId)
639 AppLogDebug("Entry");
647 UiApp* pApp = UiApp::GetInstance();
648 ((MyFilesApp*) Application::GetInstance())->SetAppControlSelected();
649 ((MyFilesApp*) Application::GetInstance())->AddAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
666 UiApp* pApp = UiApp::GetInstance();
668 ((MyFilesApp*) Application::GetInstance())->SetAppControlSelected();
669 ((MyFilesApp*) Application::GetInstance())->AddAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
680 UiApp* pApp = UiApp::GetInstance();
682 ((MyFilesApp*) Application::GetInstance())->SetAppControlSelected();
683 ((MyFilesApp*) Application::GetInstance())->AddAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
692 case IDA_BTN_CREATE_FOLDER:
694 ArrayList* pArg = null;
695 Integer* pSourceSelected = null;
696 SceneManager* pSceneManager = null;
698 pSceneManager = SceneManager::GetInstance();
700 pArg = new (std::nothrow) ArrayList();
702 pSourceSelected = new (std::nothrow) Integer(SELECT_CREATE_FOLDER);
703 pArg->Add(pSourceSelected);
705 _rootMediaPath = FolderNavigationPresentationModel::GetCurrentPath();
706 pArg->Add(&_rootMediaPath);
708 if (pSceneManager != null)
710 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_FOLDER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArg);
718 AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
722 SubBaseSelection::ClearSelectedItems(Tizen::Ui::Controls::ListView& listView)
724 ArrayList* pCheckedKeys = null;
726 if (_pFileManager != null)
728 pCheckedKeys = static_cast< ArrayList* >(_pFileManager->GetCheckedList()->GetKeysN());
729 AppLogDebug("Get count is %d",pCheckedKeys->GetCount());
730 for (itemCount=0; itemCount<pCheckedKeys->GetCount();itemCount++)
732 Integer* currentIndex = static_cast<Integer*>(pCheckedKeys->GetAt(itemCount));
733 listView.SetItemChecked(currentIndex->ToInt(), false);
735 _pFileManager->ClearCheckedList();
740 SubBaseSelection::ResetFooter(void)
742 AppResource* pAppResource = null;
745 pAppResource = Application::GetInstance()->GetAppResource();
746 pAppResource->GetString(L"IDS_SELECT_FILES", selectFiles);
748 if (_pListView != null)
750 ClearSelectedItems(*_pListView);
751 _pFooter->SetItemEnabled(0,false);
752 _pFooter->Invalidate(true);
753 _itemSelectedCount.Clear();
754 _itemSelectedCount.Append(selectFiles);
755 _pLabelNumberOfItems->SetText(_itemSelectedCount);
756 _pLabelNumberOfItems->Invalidate(true);
761 SubBaseSelection::OnPlayerAudioFocusChanged (void)
763 //Empty Implementation.
767 SubBaseSelection::OnFormBackRequested(Form& source)
771 result r = E_SUCCESS;
772 SceneManager* pSceneManager = null;
773 pSceneManager = SceneManager::GetInstance();
774 currentPath = FolderNavigationPresentationModel::GetCurrentPath();
776 if (_currentViewStyle != APPCONTROL_VIEW_EXPORT)
781 if (_pAudioPlayer != null)
783 if (_pAudioPlayer->GetState() == PLAYER_STATE_PLAYING)
785 _pAudioPlayer->Stop();
788 if (currentPath == BasePresentationModel::GetMediaPath() || currentPath == BasePresentationModel::GetSdCardPath())
790 FolderNavigationPresentationModel::SetCurrentFilePath(currentPath);
795 parentPath = FolderNavigationPresentationModel::GetParentPath();
797 FolderNavigationPresentationModel::SetCurrentFilePath(parentPath);
798 r = pSceneManager->GoForward(ForwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), null);
803 SubBaseSelection::ShowHomeView(void)
805 SceneManager* pSceneManager = null;
806 String topMostFileSelection(L"ScnTempForm");
807 pSceneManager = SceneManager::GetInstance();
808 if (pSceneManager != null)
810 IList* pArgs = new (std::nothrow) ArrayList();
811 pArgs->Add(new (std::nothrow) Integer(APPCONTROL_STATE_SELECTED));
812 if (pSceneManager->IsSceneAlive(topMostFileSelection))
814 pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_TOP_LEVEL_DIRECTORY_FORM, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT, SCENE_DESTROY_OPTION_DESTROY), pArgs);
818 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TOP_LEVEL_DIRECTORY_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE), pArgs);
824 SubBaseSelection::CreateExportListViewItem(int listItemIndex, int listItemWidth)
826 AppLogDebug("ENTER");
831 String folderIconPath;
832 String imageIconPath;
835 String fileExtension;
837 String searchedString;
840 String cacheImagePath;
842 HashMap* pCacheList = null;
843 Bitmap* pFetchedCacheImage = null;
844 Bitmap* pThumbnailImage = null;
846 DateTime dateCreated;
847 Dimension thumbnailDimension(H_LISTVIEW_ITEM_BITMAP, W_LISTVIEW_ITEM_BITMAP);
848 Dimension textDimension(listItemWidth - W_LISTVIEW_ITEM_BITMAP, H_ITEM_LISTVIEW);
850 DirectoryEntry* pFileDetails = null;
852 ContentListItem* pCustomItem = null;
853 ContentType contentType = CONTENT_TYPE_UNKNOWN;
855 //AppRegistry* pAppRegistry = null;
856 //pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
858 TryCatch(_pFilenames != null, , "MfMyFilesApp::Filename list if empty!");
859 TryCatch(_pFilenames->GetCount() != 0, , "MfMyFilesApp::Filename count is Zero!");
861 pCustomItem = new (std::nothrow) ContentListItem(listItemWidth, H_ITEM_LISTVIEW);
862 TryCatch(pCustomItem != null, , "MfMyFilesApp::Failed to allocate Memory to pCustomItem");
864 //Get the Directory Entry for the element at index from the Filenames list.
866 pFileDetails = static_cast< DirectoryEntry* >(_pFilenames->GetAt(listItemIndex));
867 TryCatch(pFileDetails != null, , "MfMyFilesApp::Failed to fetch FileDetails from __pFileNames!");
869 pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
871 //Set the filename of the element at index index
872 filename = pFileDetails->GetFileName();
873 fullFilePath = pFileDetails->GetFullFilePath();
875 //If the registry key value is set for show extension append the extension of the filename else do not.
877 if (!pFileDetails->GetFileExtension().IsEmpty())
879 filename = filename + "." + pFileDetails->GetFileExtension();
883 if (pFileDetails->IsDirectory())
885 pCustomItem->SetThumbnail(_pFolderBitmap);
889 pCustomItem->SetDescColor(Color::GetColor(COLOR_ID_GREY));
891 contentType = ContentManagerUtil::CheckContentType(fullFilePath);
893 if (pFileDetails->GetBitmap() == null && pFileDetails->IsDummy())
895 if (pCacheList != null && (contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO))
897 if (pFileDetails != null)
899 cacheImagePath = pFileDetails->GetFullFilePath();
900 AppLogDebug("cache path is %S",cacheImagePath.GetPointer());
903 if ((pCacheList->GetValue(cacheImagePath)) != null)
905 pFetchedCacheImage = static_cast< Bitmap* >(pCacheList->GetValue(cacheImagePath));
909 if (pFetchedCacheImage != null)
911 AppLogDebug("image taken from cachemanager");
912 pThumbnailImage = CacheManager::GetInstance()->GetCacheBitmapN(cacheImagePath);
913 pCustomItem->SetThumbnail(pThumbnailImage);
917 pFileDetails->SetDummy(true);
918 pCustomItem->SetThumbnail(_pDummyImage);
919 AppLogDebug("call to thumbnail manager");
924 AppLogDebug("BITMAP FOUND : NOT NEED TO DO GETTHUMBNAIL");
925 pCustomItem->SetThumbnail(pFileDetails->GetBitmap());
929 pCustomItem->SetTitle(filename, searchedText);
933 AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
938 if (pCustomItem != null)
947 SubBaseSelection::OnTelephonyCallStatusChangedN (CallStatus callStatus, CallInfo * pCallInfo)
949 AppLogDebug("SubBaseSelection::OnTelephonyCallStatusChangedN");
950 _pListView->UpdateList();
954 SubBaseSelection::OnSettingValueChanged(void)
956 //Empty Implementation.