Browse CVS Repository
Contents of /tombo/Tombo/Src/DirList.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.8 -
( show annotations)
( download)
( as text)
Tue Feb 7 17:07:37 2006 UTC
(18 years, 2 months ago)
by hirami
Branch: MAIN
CVS Tags: Tombo_2_0a3, Tombo_1_17_1, B199, B200, B201, B202, B203, B205, B206, B207, B208, B213, B212, B211, B217, B216, B215, B214, B219, B218, Tombo_2_0b2, Tombo_2_0b3, Tombo_2_0b1, Tombo_2_0b4, B228, B229, B226, B227, B224, B225, B222, B223, B220, B221, B231, B230, Tombo_1_17, Tombo_1_16, HEAD
Branch point for: Tombo_1_17_1_branch
Changes since 1.7: +5 -1 lines
File MIME type: text/x-chdr
* When some *.chs crypted with another password, popup warnings and show title '???????' if crypt failed.(#7227)
* Add RegErase tool.
| 1 |
#ifndef DIRLIST_H |
| 2 |
#define DIRLIST_H |
| 3 |
|
| 4 |
#include "VarBuffer.h" |
| 5 |
|
| 6 |
#define DIRLIST_GETLIST_RESULT_FAIL 0 |
| 7 |
#define DIRLIST_GETLIST_RESULT_SUCCESS 1 |
| 8 |
#define DIRLIST_GETLIST_RESULT_PARTIAL 2 |
| 9 |
|
| 10 |
////////////////////////////////////////////////////// |
| 11 |
// Directory item information |
| 12 |
////////////////////////////////////////////////////// |
| 13 |
|
| 14 |
struct DirListItem { |
| 15 |
DWORD nFileNamePos; |
| 16 |
DWORD nURIPos; |
| 17 |
DWORD nHeadLinePos; |
| 18 |
BOOL bFolder; |
| 19 |
}; |
| 20 |
|
| 21 |
////////////////////////////////////////////////////// |
| 22 |
// Directory list scanner |
| 23 |
////////////////////////////////////////////////////// |
| 24 |
|
| 25 |
class DirList { |
| 26 |
LPCTSTR pURIBase; |
| 27 |
public: |
| 28 |
TVector<DirListItem> vDirList; |
| 29 |
StringBufferT sbDirList; |
| 30 |
|
| 31 |
BOOL Init(LPCTSTR pURIBase); |
| 32 |
~DirList(); |
| 33 |
|
| 34 |
DWORD GetList(LPCTSTR pMatchPath, BOOL bSkipEncrypt, BOOL bLooseDecrypt); |
| 35 |
|
| 36 |
DWORD NumItems() { return vDirList.NumItems(); } |
| 37 |
DirListItem *GetItem(DWORD n) { return vDirList.GetUnit(n); } |
| 38 |
LPCTSTR GetFileName(DWORD n) { return sbDirList.Get(n); } |
| 39 |
}; |
| 40 |
|
| 41 |
#endif |
| |