| [Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] | 
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Custom daemon application class
Source position: daemonapp.pp line 329
| type TCustomDaemonApplication = class(TCustomApplication) end; | ||
| public | ||
| constructor Create(); override; | ||
| destructor Destroy; override; | 
 | Clean up the TCustomDaemonApplication instance | 
| procedure ShowException(); override; | 
 | Show an exception | 
| function CreateDaemon(); | 
 | Create daemon instance | 
| procedure StopDaemons(); | 
 | Stop all daemons | 
| procedure InstallDaemons; | 
 | Install all daemons. | 
| procedure RunDaemons; | 
 | Run all daemons. | 
| procedure UnInstallDaemons; | 
 | Uninstall all daemons | 
| procedure ShowHelp; | 
 | Display a help message | 
| procedure CreateForm(); virtual; | 
 | Create a component | 
| property OnRun: TNotifyEvent; [rw] | 
 | Event executed when the daemon is run. | 
| 
 | Event logger instance | |
| property GUIMainLoop: TGuiLoopEvent; [rw] | 
 | GUI main loop callback | 
| 
 | Handle of GUI loop main application window handle | |
| property RunMode: TDaemonRunMode; [r] | 
 | Application mode | 
| property AutoRegisterMessageFile: Boolean; [rw] | ||
| 
 | Custom daemon application class | |
| | | ||
| 
 | Ancestor class for TApplication classes. | |
| | | ||
| | | ||
| | | ||
TCustomDaemonApplication is a TCustomApplication descendent which is the main application instance for a daemon. It handles the command-line and decides what to do when the application is started, depending on the command-line options given to the application, by calling the various methods.
It creates the necessary TDaemon instances by checking the TCustomDaemonMapperClass instance that contains the daemon maps.
| 
 | Ancestor class for TApplication classes. | |
| 
 | Class of TCustomDaemonMapper |