N_SE-36744 N_SE-36750 N_SE-36754 N_SE-36743
[apps/osp/MyFiles.git] / src / MfFolderEntryPresentationModel.cpp
index 814f9be..4c7ef08 100644 (file)
@@ -72,6 +72,7 @@ FolderEntryPresentationModel::Construct(void)
 
        __requestId = 0;
        __currentRequestId = 0;
+       __deviceListCount = 1;
 
        __pFileEventManager = new (std::nothrow) FileEventManager();
        r = __pFileEventManager->Construct(*this);
@@ -1288,6 +1289,8 @@ FolderEntryPresentationModel::CreateTraversalTree(void)
        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");
@@ -1572,3 +1575,9 @@ FolderEntryPresentationModel::GetSortFolderEntryCount(int& currentDirectoryCount
        currentDirectoryCount = currentCount;
        currentFileCount = __pFolderEntries->GetCount() - currentCount;
 }
+
+int
+FolderEntryPresentationModel::GetDeviceListCount(void)
+{
+       return __deviceListCount;
+}