Skip to content

TCustomDaemonApplication

Custom daemon application class.

Declaration

Source position: daemonapp.pp line 360

type

  TCustomDaemonApplication = class(TCustomApplication)
  public
    constructor Create;
    destructor Destroy;
    procedure ShowException;
    function CreateDaemon : TCustomDaemon;
    procedure StopDaemons;
    procedure InstallDaemons;
    procedure RunDaemons;
    procedure UnInstallDaemons;
    procedure ShowHelp;
    procedure CreateForm;
    property OnRun: TNotifyEvent; {rw}
    property EventLog: TEventLog; {r}
    property GUIMainLoop: TGuiLoopEvent; {rw}
    property GuiHandle: THandle; {rw}
    property RunMode: TDaemonRunMode; {r}
    property AutoRegisterMessageFile: Boolean; {rwd}
  end;

Description

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.

Properties

Member Visibility Description
AutoRegisterMessageFile public Automatically register the message file.
EventLog read only public Event logger instance.
GuiHandle public Handle of GUI loop main application window handle.
GUIMainLoop public GUI main loop callback.
RunMode read only public Application mode.
See all Properties

Methods

Member Visibility Description
Create public Constructor for the class instance.
CreateDaemon public Create daemon instance.
CreateForm public Create a component.
Destroy public Clean up the TCustomDaemonApplication instance.
InstallDaemons public Install all daemons.
RunDaemons public Run all daemons.
ShowException public Show an exception.
ShowHelp public Display a help message.
StopDaemons public Stop all daemons.
UnInstallDaemons public Uninstall all daemons.
See all Methods

Events

Member Visibility Description
OnRun public Event executed when the daemon is run.
See all Events

See also

Name Description
TCustomApplication Ancestor class for TApplication classes.
TCustomDaemonMapperClass Class of TCustomDaemonMapper.