• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // EnumDirItems.h
2 
3 #ifndef __ENUM_DIR_ITEMS_H
4 #define __ENUM_DIR_ITEMS_H
5 
6 #include "../../../Common/Wildcard.h"
7 
8 #include "../../../Windows/FileFind.h"
9 
10 #include "DirItem.h"
11 
12 void AddDirFileInfo(int phyParent, int logParent, int secureIndex,
13     const NWindows::NFile::NFind::CFileInfo &fi, CObjectVector<CDirItem> &dirItems);
14 
15 HRESULT EnumerateItems(
16     const NWildcard::CCensor &censor,
17     NWildcard::ECensorPathMode pathMode,
18     const UString &addPathPrefix,
19     CDirItems &dirItems);
20 
21 
22 struct CMessagePathException: public UString
23 {
24   CMessagePathException(const char *a, const wchar_t *u = NULL);
25   CMessagePathException(const wchar_t *a, const wchar_t *u = NULL);
26 };
27 
28 
29 HRESULT EnumerateDirItemsAndSort(
30     NWildcard::CCensor &censor,
31     NWildcard::ECensorPathMode pathMode,
32     const UString &addPathPrefix,
33     UStringVector &sortedPaths,
34     UStringVector &sortedFullPaths,
35     CDirItemsStat &st,
36     IDirItemsCallback *callback);
37 
38 #ifdef _WIN32
39 void ConvertToLongNames(NWildcard::CCensor &censor);
40 #endif
41 
42 #endif
43