void CreateStack(void);
void CreateTraversalTree(void);
+ int GetDeviceListCount(void);
private:
/*@fn FileListPresentationModel()
* Copy Constructor for the FileListPresentationModel class
ThumbnailManager* __pThumbnailManager;
Tizen::Base::Collection::Stack* __pFolderEntryStack;
CacheManager* __pCacheManager;
+ int __deviceListCount;
};
#endif // _MF_FOLDER_ENTRY_PRESENTATION_MODEL_H_
CategorySearch::~CategorySearch(void)
{
+ DeviceManager::RemoveDeviceEventListener(DEVICE_TYPE_STORAGE_CARD, *this);
+
if (__pHomeButton != null)
{
delete __pHomeButton;
if(_pFileEventManager != null)
_pFileEventManager->RemovePath(_pathOfSelectedFile);
+ DeviceManager::RemoveAllDeviceEventListeners();
+
if (_pIconListView != null)
{
_pIconListView->RemoveGestureDetector(*_pLongPressGestureDetector);
if (state == unmounted || state == removed)
{
+ if (_previousSceneId == IDSCN_CATEGORY_SEARCH_FORM)
+ {
+ if (_pFolderEntryPM != null)
+ {
+ if (_pFolderEntryPM->GetDeviceListCount() > 1)
+ {
+ SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+ return;
+ }
+ }
+ }
+
currentPath = FolderNavigationPresentationModel::GetCurrentPath();
if (state == unmounted)
{
__requestId = 0;
__currentRequestId = 0;
+ __deviceListCount = 1;
__pFileEventManager = new (std::nothrow) FileEventManager();
r = __pFileEventManager->Construct(*this);
GetDeviceList(pDeviceList);
deviceListCount = pDeviceList->GetCount();
+ __deviceListCount = deviceListCount;
+
//currentDirectoryPath = new (std::nothrow) String(directoryPath);
currentDirectoryPath = new (std::nothrow) String(*static_cast<String*>(pDeviceList->GetAt(0)));
TryCatch(__pFolderEntryStack != null, , "Stack is null");
currentDirectoryCount = currentCount;
currentFileCount = __pFolderEntries->GetCount() - currentCount;
}
+
+int
+FolderEntryPresentationModel::GetDeviceListCount(void)
+{
+ return __deviceListCount;
+}