
XFileChange
unit
This unit contains definition of ZFileChange class, which is derived
from ZThread and intended to provide XCL applet
with notifications about changes in given folders.
Author: Tim Slusher.
ZFileChange = class(ZThread );
ZFileChange properties:
ChangeHandle: LongWord;
Properties, inherited from ZThread:
Handle : LongWord;
ThreadID : LongWord;
- PriorityClass : LongWord;
- ThreadPriority : LongWord;
Suspended : Boolean;
Terminated : Boolean;
- Data : Pointer;
ZFileChange methods:
- constructor Create( const APath : string;
WatchSubtree : Boolean; NotifyChanges : XFileNotifyChanges );
type XFileNotifyChanges = set of ( fncFileName, fncDirName, fncAttributes, fncLastAccess,
fncCreation, fncSecurity );
- function Execute
: Boolean;
Methods, inherited from ZThread:
- procedure Suspend;
- procedure Resume;
- procedure Terminate;
- function WaitFor : LongWord;
ZFileChange events:
Events, inherited from ZThread:
- OnExecute : XOnExecute; ( type XOnExecute = procedure( Sender :
TObject; Data : Pointer; var ReturnValue : Integer ) of object
);
- OnSuspend : XOnEvent;
- OnResume : XOnEvent;
goto XCL page
goto home
page