|
This application illustrates a new CHT template called EmbedFileNotifyFunctions and a new class called HNDFileNotify (HNDFILENOTIFY.INC/HNDFILENOTIFY.CLW). The class attached to your procedure by this template, once initialized gives your procedure the ability to detect all changes occuring in a nominated directory. Whenever a new file is added to this directory, or a file is changed, your procedure is sent an event called EVENT:FileChanged to signal that this has occurred. At that point, what you do as a programmer to act on that event is wide open. This application illustrates one use of this new, directory monitoring capability. When a file is added to the designated source directory, that file is copied into a temporary, processing directory, from where it is compressed and encrypted into a CHT .HZO transport container. The file or files meeting the filter setting provided on the application interface, eventually then, end up compressed into this .HZO container. There is also an optional switch to remove the processed source file(s) from the directory being monitored. Any questions, feel free to ask. Cheers, Gus M. Creces The Clarion Handy Tools Page www.cwhandy.ca (CHT Website) news.cwhandy.ca (CHT Forum) |
| PROCEDURE (1): ProcessDirEntriesToHZO (Procedure Template: Source) |
|||||
| Count | Instance | Class | Type | Methods | Header File |
| (0001) | DISK | ADOBlob | SV | 4 | SVADO.INC |
| (0002) | ENC | ADOBlob | SV | 4 | SVADO.INC |
| (0003) | HZO | ADOBlob | SV | 4 | SVADO.INC |
| (0004) | QB | ADOBlob | SV | 4 | SVADO.INC |
| (4) Class Instances Found In ProcessDirEntriesToHZO | |||||
| PROCEDURE (2): JumpStartSplashCHTBlue (Procedure Template: Splash) |
|||||
| Count | Instance | Class | Type | Methods | Header File |
| (0001) | HTellMe | HNDWindow | HND | 197 | HNDWINDO.INC |
| (0002) | HWin | HNDWindow | HND | 197 | HNDWINDO.INC |
| (0003) | Toolbar | ToolbarClass | ABC | 6 | ABTOOLBA.INC |
| (0004) | ThisWindow | WindowManager | ABC | 38 | ABWINDOW.INC |
| (4) Class Instances Found In JumpStartSplashCHTBlue | |||||
| PROCEDURE (3): MainServiceWindow (Procedure Template: Window) |
|||||
| Count | Instance | Class | Type | Methods | Header File |
| (0001) | HDisk | HNDDisk | HNDDISK | 333 | HNDDISK.INC |
| (0002) | FNOTIFY | HNDFileNotify | HND | 5 | HNDFILENOTIFY.INC |
| (0003) | SHELL | HNDShell | HND | 88 | HNDSHELL.INC |
| (0004) | HWin | HNDWindow | HND | 197 | HNDWINDO.INC |
| (0005) | Toolbar | ToolbarClass | ABC | 6 | ABTOOLBA.INC |
| (0006) | ThisWindow | WindowManager | ABC | 38 | ABWINDOW.INC |
| (6) Class Instances Found In MainServiceWindow | |||||
Classes By Procedure In HNDMONITORDIRECTORYSRVC.APP