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->GetBitmap() == null)
347 if (pCacheList != null && (contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO))
349 if (pFileDetails != null)
351 cacheImagePath = pFileDetails->GetFullFilePath();
354 if ((pCacheList->GetValue(cacheImagePath)) != null)
356 pFetchedCacheImage = static_cast< Bitmap* >(pCacheList->GetValue(cacheImagePath));
360 if (pFetchedCacheImage != null)
362 pThumbnailImage = CacheManager::GetInstance()->GetCacheBitmapN(cacheImagePath);
363 pCustomItem->SetThumbnail(pThumbnailImage);
367 pFileDetails->SetDummy(true);
368 pCustomItem->SetThumbnail(_pDummyImage);
371 //r = _pFolderEntryPM->InitThumbnailManager(index);
375 pCustomItem->SetThumbnail(pFileDetails->GetBitmap());
378 if (_selectionMode == SELECTION_MODE_SINGE)
380 _annexStyle = ANNEX_STYLE_RADIO;
381 pCustomItem->SetListAnnexStyle(_annexStyle);
383 else if (_selectionMode == SELECTION_MODE_MULTIPLE)
385 _annexStyle = ANNEX_STYLE_MARK;
386 pCustomItem->SetListAnnexStyle(_annexStyle);
388 else if (_selectionMode == SELECTION_MODE_NONE)
390 _annexStyle = ANNEX_STYLE_NORMAL;
391 pCustomItem->SetListAnnexStyle(_annexStyle);
395 if (contentType == CONTENT_TYPE_AUDIO)
397 callStatus = _pCallManager->GetCurrentCallStatus();
398 if (callStatus != CALL_STATUS_UNDEFINED && callStatus == CALL_STATUS_IDLE)
401 if (_pAudioPlayer != null)
403 audioPlayerStatus = _pAudioPlayer->GetState();
404 AppLogDebug("SubBaseSelection::CreateDefaultContentItem:%d", audioPlayerStatus);
407 if (audioPlayerStatus == PLAYER_STATE_CLOSED)
409 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
412 if (_currentAudioPlayIndex == index)
414 if (audioPlayerStatus == PLAYER_STATE_PLAYING)
416 pCustomItem->SetAudioBitmap(null, _pAudioPause);
418 //else if (audioPlayerStatus == PLAYER_STATE_PAUSED || audioPlayerStatus == PLAYER_STATE_ENDOFCLIP)
421 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
426 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
431 pCustomItem->SetAudioBitmap(_pAudioPlay, null);
440 if (!filename.IsEmpty())
442 pCustomItem->SetTitle(filename, searchedString);
444 pCustomItem->MakeAppControlFormListItem();
446 AppLogDebug("Exit %s", GetErrorMessage(r));
452 if (_pAudioPlay != null)
458 if (_pAudioPause != null)
464 AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
469 SubBaseSelection::OnThumbnailReceived(ThumbRequest* pThumbReq)
471 result res = E_SUCCESS;
472 AppLogDebug("Enter");
476 if (pThumbReq != null)
478 if (pThumbReq->GetCurrentSourceForm() != _pFolderEntryPM->GetSourceForm())
480 if (pThumbReq->pBitmap != null)
482 AppLogDebug("This Bitmap is not requested from same form");
483 delete pThumbReq->pBitmap;
491 if (pThumbReq->iRquestId < _pFilenames->GetCount())
494 _pFolderEntryPM->OnThumbnailResponseReceived(pThumbReq->pBitmap, pThumbReq->iRquestId);
496 if (_pListView && _pListView->IsVisible())
498 res = _pListView->RefreshList(pThumbReq->iRquestId, LIST_REFRESH_TYPE_ITEM_MODIFY);
504 _pFolderEntryPM->OnThumbnailResponseFailed();
507 AppLogDebug("Exit %s", GetErrorMessage(res));
512 SubBaseSelection::OnListViewItemStateChangedNotify(ViewType viewType)
514 //empty Implementation
518 SubBaseSelection::InitializePlayer(void)
520 AppLogDebug("SubFolderSelection::OnListViewItemStateChanged");
521 if (_pAudioPlayer == null)
523 _pAudioPlayer = new (std::nothrow) Player();
525 if (_pAudioPlayer != null)
527 _pAudioPlayer->Construct(*this);
533 SubBaseSelection::LoadMusicPlayer(const Tizen::Base::String& mediaFilepath, Tizen::Media::PlayerState PlayerCurrentState)
535 AppLogDebug("SubFolderSelection::OnListViewItemStateChanged");
536 result r = E_SUCCESS;
537 if (_pAudioPlayer != null && mediaFilepath.IsEmpty() == false)
539 if (_pAudioPlayer->GetState() != PLAYER_STATE_PAUSED)
541 if (_pAudioPlayer != null)
543 delete _pAudioPlayer;
544 _pAudioPlayer = null;
546 _pAudioPlayer = new (std::nothrow) Player();
547 _pAudioPlayer->Construct(*this);
550 r = _pAudioPlayer->OpenFile(mediaFilepath, false);
551 r = _pAudioPlayer->Play();
552 r = _pAudioPlayer->SetLooping(false);
553 r = _pAudioPlayer->SetVolume(100);
555 AppLogDebug("Exit: %s", GetErrorMessage(r));
559 SubBaseSelection::InitializeAppRegistry(void)
561 AppLogDebug("Entry");
562 result r = E_SUCCESS;
563 int previousSortValue = 0;
564 AppRegistry* pAppRegistry = null;
565 String sortbyKeyName(L"SortBy");
566 SortByType sortStyle = SORT_BY_TYPE_DATE_RECENT;
568 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
570 r = pAppRegistry->Add(sortbyKeyName, sortStyle);
574 r = pAppRegistry->Save();
576 else if (r == E_KEY_ALREADY_EXIST)
578 pAppRegistry->Get(sortbyKeyName, previousSortValue);
579 _storedSortStyle = static_cast< SortByType >(previousSortValue);
580 if (_storedSortStyle != null)
582 pAppRegistry->Set(sortbyKeyName, sortStyle);
583 r = pAppRegistry->Save();
587 AppLogDebug("Exit %s", GetErrorMessage(r));
592 SubBaseSelection::CreateLabelControl(void)
594 AppLogDebug("Entry");
595 result r = E_SUCCESS;
596 Color backgroundColor(68, 68, 68);
597 //Color textColor(Color(76, 81, 88));
599 _pLabelNumberOfItems = static_cast< Label* >(GetControl(L"IDC_LABEL_SELECTED"));
600 TryCatch(_pLabelNumberOfItems != null, , "applog: allocation failed for __pLabelNumberOfItems");
602 // _pLabelNumberOfItems->Construct(Rectangle(0, GetClientAreaBounds().height - H_DISPLAY_PATH_LABEL, GetClientAreaBounds().width, H_DISPLAY_PATH_LABEL), _itemSelectedCount);
603 // _pLabelNumberOfItems->SetBackgroundColor(backgroundColor);
604 // _pLabelNumberOfItems->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
605 _pLabelNumberOfItems->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
606 // _pLabelNumberOfItems->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
607 _pLabelNumberOfItems->SetTextConfig(ID_FONT_SIZE_26, LABEL_TEXT_STYLE_BOLD);
609 if (_selectionMode == SELECTION_MODE_SINGE)
611 _pLabelNumberOfItems->SetShowState(false);
615 if (_currentViewStyle != APPCONTROL_VIEW_IMPORT)
617 _pLabelNumberOfItems->SetShowState(true);
621 // r = AddControl(*_pLabelNumberOfItems);
622 AppLogDebug("Exit %s", GetErrorMessage(r));
625 AppLogDebug("Exit %s", GetErrorMessage(r));
632 SubBaseSelection::SubBaseOnActionPerformed(const Tizen::Ui::Control& source, int actionId)
634 AppLogDebug("Entry");
642 UiApp* pApp = UiApp::GetInstance();
643 ((MyFilesApp*) Application::GetInstance())->SetAppControlSelected();
644 ((MyFilesApp*) Application::GetInstance())->AddAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
661 UiApp* pApp = UiApp::GetInstance();
663 ((MyFilesApp*) Application::GetInstance())->SetAppControlSelected();
664 ((MyFilesApp*) Application::GetInstance())->AddAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
675 UiApp* pApp = UiApp::GetInstance();
677 ((MyFilesApp*) Application::GetInstance())->SetAppControlSelected();
678 ((MyFilesApp*) Application::GetInstance())->AddAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
687 case IDA_BTN_CREATE_FOLDER:
689 ArrayList* pArg = null;
690 Integer* pSourceSelected = null;
691 SceneManager* pSceneManager = null;
693 pSceneManager = SceneManager::GetInstance();
695 pArg = new (std::nothrow) ArrayList();
697 pSourceSelected = new (std::nothrow) Integer(SELECT_CREATE_FOLDER);
698 pArg->Add(pSourceSelected);
700 _rootMediaPath = FolderNavigationPresentationModel::GetCurrentPath();
701 pArg->Add(&_rootMediaPath);
703 if (pSceneManager != null)
705 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_FOLDER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArg);
713 AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
717 SubBaseSelection::ClearSelectedItems(Tizen::Ui::Controls::ListView& listView)
719 ArrayList* pCheckedKeys = null;
721 if (_pFileManager != null)
723 pCheckedKeys = static_cast< ArrayList* >(_pFileManager->GetCheckedList()->GetKeysN());
724 AppLogDebug("Get count is %d",pCheckedKeys->GetCount());
725 for (itemCount=0; itemCount<pCheckedKeys->GetCount();itemCount++)
727 Integer* currentIndex = static_cast<Integer*>(pCheckedKeys->GetAt(itemCount));
728 listView.SetItemChecked(currentIndex->ToInt(), false);
730 _pFileManager->ClearCheckedList();
735 SubBaseSelection::ResetFooter(void)
737 AppResource* pAppResource = null;
740 pAppResource = Application::GetInstance()->GetAppResource();
741 pAppResource->GetString(L"IDS_SELECT_FILES", selectFiles);
743 if (_pListView != null)
745 ClearSelectedItems(*_pListView);
746 _pFooter->SetItemEnabled(0,false);
747 _pFooter->Invalidate(true);
748 _itemSelectedCount.Clear();
749 _itemSelectedCount.Append(selectFiles);
750 _pLabelNumberOfItems->SetText(_itemSelectedCount);
751 _pLabelNumberOfItems->Invalidate(true);
756 SubBaseSelection::OnPlayerAudioFocusChanged (void)
758 //Empty Implementation.
762 SubBaseSelection::OnFormBackRequested(Form& source)
766 result r = E_SUCCESS;
767 SceneManager* pSceneManager = null;
768 pSceneManager = SceneManager::GetInstance();
769 currentPath = FolderNavigationPresentationModel::GetCurrentPath();
771 if (_currentViewStyle != APPCONTROL_VIEW_EXPORT)
776 if (_pAudioPlayer != null)
778 if (_pAudioPlayer->GetState() == PLAYER_STATE_PLAYING)
780 _pAudioPlayer->Stop();
783 if (currentPath == BasePresentationModel::GetMediaPath() || currentPath == BasePresentationModel::GetSdCardPath())
785 FolderNavigationPresentationModel::SetCurrentFilePath(currentPath);
790 parentPath = FolderNavigationPresentationModel::GetParentPath();
792 FolderNavigationPresentationModel::SetCurrentFilePath(parentPath);
793 r = pSceneManager->GoForward(ForwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), null);
798 SubBaseSelection::ShowHomeView(void)
800 SceneManager* pSceneManager = null;
801 String topMostFileSelection(L"ScnTempForm");
802 pSceneManager = SceneManager::GetInstance();
803 if (pSceneManager != null)
805 IList* pArgs = new (std::nothrow) ArrayList();
806 pArgs->Add(new (std::nothrow) Integer(APPCONTROL_STATE_SELECTED));
807 if (pSceneManager->IsSceneAlive(topMostFileSelection))
809 pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_TOP_LEVEL_DIRECTORY_FORM, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT, SCENE_DESTROY_OPTION_DESTROY), pArgs);
813 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_TOP_LEVEL_DIRECTORY_FORM, SCENE_TRANSITION_ANIMATION_TYPE_NONE), pArgs);
819 SubBaseSelection::CreateExportListViewItem(int listItemIndex, int listItemWidth)
821 AppLogDebug("ENTER");
826 String folderIconPath;
827 String imageIconPath;
830 String fileExtension;
832 String searchedString;
835 String cacheImagePath;
837 HashMap* pCacheList = null;
838 Bitmap* pFetchedCacheImage = null;
839 Bitmap* pThumbnailImage = null;
841 DateTime dateCreated;
842 Dimension thumbnailDimension(H_LISTVIEW_ITEM_BITMAP, W_LISTVIEW_ITEM_BITMAP);
843 Dimension textDimension(listItemWidth - W_LISTVIEW_ITEM_BITMAP, H_ITEM_LISTVIEW);
845 DirectoryEntry* pFileDetails = null;
847 ContentListItem* pCustomItem = null;
848 ContentType contentType = CONTENT_TYPE_UNKNOWN;
850 //AppRegistry* pAppRegistry = null;
851 //pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
853 TryCatch(_pFilenames != null, , "MfMyFilesApp::Filename list if empty!");
854 TryCatch(_pFilenames->GetCount() != 0, , "MfMyFilesApp::Filename count is Zero!");
856 pCustomItem = new (std::nothrow) ContentListItem(listItemWidth, H_ITEM_LISTVIEW);
857 TryCatch(pCustomItem != null, , "MfMyFilesApp::Failed to allocate Memory to pCustomItem");
859 //Get the Directory Entry for the element at index from the Filenames list.
861 pFileDetails = static_cast< DirectoryEntry* >(_pFilenames->GetAt(listItemIndex));
862 TryCatch(pFileDetails != null, , "MfMyFilesApp::Failed to fetch FileDetails from __pFileNames!");
864 pCacheList = CacheManager::GetInstance()->GetCacheHashMap();
866 //Set the filename of the element at index index
867 filename = pFileDetails->GetFileName();
868 fullFilePath = pFileDetails->GetFullFilePath();
870 //If the registry key value is set for show extension append the extension of the filename else do not.
872 if (!pFileDetails->GetFileExtension().IsEmpty())
874 filename = filename + "." + pFileDetails->GetFileExtension();
878 if (pFileDetails->IsDirectory())
880 pCustomItem->SetThumbnail(_pFolderBitmap);
884 pCustomItem->SetDescColor(Color::GetColor(COLOR_ID_GREY));
886 contentType = ContentManagerUtil::CheckContentType(fullFilePath);
888 if (pFileDetails->GetBitmap() == null && pFileDetails->IsDummy())
890 if (pCacheList != null && (contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO))
892 if (pFileDetails != null)
894 cacheImagePath = pFileDetails->GetFullFilePath();
895 AppLogDebug("cache path is %S",cacheImagePath.GetPointer());
898 if ((pCacheList->GetValue(cacheImagePath)) != null)
900 pFetchedCacheImage = static_cast< Bitmap* >(pCacheList->GetValue(cacheImagePath));
904 if (pFetchedCacheImage != null)
906 AppLogDebug("image taken from cachemanager");
907 pThumbnailImage = CacheManager::GetInstance()->GetCacheBitmapN(cacheImagePath);
908 pCustomItem->SetThumbnail(pThumbnailImage);
912 pFileDetails->SetDummy(true);
913 pCustomItem->SetThumbnail(_pDummyImage);
914 AppLogDebug("call to thumbnail manager");
919 AppLogDebug("BITMAP FOUND : NOT NEED TO DO GETTHUMBNAIL");
920 pCustomItem->SetThumbnail(pFileDetails->GetBitmap());
924 pCustomItem->SetTitle(filename, searchedText);
928 AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
933 if (pCustomItem != null)
942 SubBaseSelection::OnTelephonyCallStatusChangedN (CallStatus callStatus, CallInfo * pCallInfo)
944 AppLogDebug("SubBaseSelection::OnTelephonyCallStatusChangedN");
945 _pListView->UpdateList();