Home | History | Annotate | Download | only in Common
      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 struct IEnumDirItemCallback
     16 {
     17   virtual HRESULT ScanProgress(UInt64 numFolders, UInt64 numFiles, UInt64 totalSize, const wchar_t *path, bool isDir) = 0;
     18 };
     19 
     20 HRESULT EnumerateItems(
     21     const NWildcard::CCensor &censor,
     22     NWildcard::ECensorPathMode pathMode,
     23     const UString &addPathPrefix,
     24     CDirItems &dirItems,
     25     IEnumDirItemCallback *callback);
     26 
     27 #endif
     28