-
Notifications
You must be signed in to change notification settings - Fork 0
/
DiskMonitorFileInfo.h
45 lines (39 loc) · 1.39 KB
/
DiskMonitorFileInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//---------------------------------------------------------------------------
#ifndef DiskMonitorFileInfoH
#define DiskMonitorFileInfoH
#include <stdlib.h>
//---------------------------------------------------------------------------
class TMonitorFileInfo : public TObject
{
private:
AnsiString *Pathname;
AnsiString *Filename;
int Attributes;
int FileSize;
TDateTime LastWrite;
bool FileExists;
protected:
bool __fastcall DirExists(AnsiString dir);
void __fastcall LoadInfo();
public:
__fastcall TMonitorFileInfo(AnsiString Path, AnsiString Name);
__fastcall TMonitorFileInfo(AnsiString FullPathname);
__fastcall ~TMonitorFileInfo();
void __fastcall Construct();
bool __fastcall Exists();
AnsiString __fastcall GetPathname();
AnsiString __fastcall GetFilename();
void __fastcall SetPathname(AnsiString Path);
void __fastcall ReloadInfo();
int __fastcall GetAttributes();
long __fastcall GetFileSize();
TDateTime __fastcall GetLastWrite();
bool __fastcall IsReadOnly();
bool __fastcall IsHidden();
bool __fastcall IsSystem();
bool __fastcall IsVolumeID();
bool __fastcall IsDirectory();
bool __fastcall IsArchive();
};
//---------------------------------------------------------------------------
#endif