AppRegistry* pAppRegistry = null;
pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
- __pFolderEntryPM->GetFolderEntryCount(FolderNavigationPresentationModel::GetCurrentPath(), dirCount, fileCount);
TryCatch(__pFileNames != null, , "MfMyFilesApp::Filename list if empty!");
TryCatch(__pFileNames->GetCount() != 0, , "MfMyFilesApp::Filename count is Zero!");
if (__sourceInfo == CREATE_ITEM_SOURCE_SHARE_FORM)
{
+ __pFolderEntryPM->GetFolderEntryCount(FolderNavigationPresentationModel::GetCurrentPath(), dirCount, fileCount);
tempIndex = dirCount + listItemIndex;
listItemIndex = tempIndex;
}
result r = E_SUCCESS;
Directory* pDirectory = null;
FileAttributes fileAttrib;
- String fileExtension;
+
ContentType contentType = CONTENT_TYPE_UNKNOWN;
r = File::GetAttributes(filePath, fileAttrib);
r = File::GetAttributes(fullpath, fileAttrib);
- fileExtension = File::GetFileExtension(fullpath);
- contentType = ContentManagerUtil::CheckContentType(fullpath);
-
if (fileAttrib.IsDirectory())
{
currentDirectoryCount++;
{
currentFileCount++;
}
- else if (__entryType == FILE_TYPE_AUDIO_TYPE)
+ else
{
- if (contentType == CONTENT_TYPE_AUDIO)
+ contentType = ContentManagerUtil::CheckContentType(fullpath);
+
+ if (__entryType == FILE_TYPE_AUDIO_TYPE)
{
- currentFileCount++;
+ if (contentType == CONTENT_TYPE_AUDIO)
+ {
+ currentFileCount++;
+ }
}
- }
- else if (__entryType == FILE_TYPE_VIDEO_TYPE)
- {
- if (contentType == CONTENT_TYPE_VIDEO)
+ else if (__entryType == FILE_TYPE_VIDEO_TYPE)
{
- currentFileCount++;
+ if (contentType == CONTENT_TYPE_VIDEO)
+ {
+ currentFileCount++;
+ }
}
- }
- else if (__entryType == FILE_TYPE_IMAGE_TYPE)
- {
- if (contentType == CONTENT_TYPE_IMAGE)
+ else if (__entryType == FILE_TYPE_IMAGE_TYPE)
{
- currentFileCount++;
+ if (contentType == CONTENT_TYPE_IMAGE)
+ {
+ currentFileCount++;
+ }
}
- }
- else if (__entryType == FILE_TYPE_CONTACTS_TYPE)
- {
- if (fullpath.EndsWith(L"vcs") || fullpath.EndsWith(L"VCS"))
+ else if (__entryType == FILE_TYPE_CONTACTS_TYPE)
{
- currentFileCount++;
+ if (fullpath.EndsWith(L"vcs") || fullpath.EndsWith(L"VCS"))
+ {
+ currentFileCount++;
+ }
}
}
}
}
}
-
+ AppLogDebug("check 6");
if (pDirectory != null)
{
delete pDirectory;