Skip to content

TDaemonDef

Daemon definition.

Declaration

Source position: daemonapp.pp line 244

type

  TDaemonDef = class(TCollectionItem)
  public
    constructor Create;
    destructor Destroy;
    property DaemonClass: TCustomDaemonClass; {r}
    property Instance: TCustomDaemon; {rw}
  published
    property DaemonClassName: string; {rw}
    property Name: string; {rw}
    property Description: string; {rw}
    property DisplayName: string; {rw}
    property RunArguments: string; {rw}
    property Options: TDaemonOptions; {rw}
    property Enabled: Boolean; {rwd}
    property WinBindings: TWinBindings; {rw}
    property OnCreateInstance: TNotifyEvent; {rw}
    property LogStatusReport: Boolean; {rw}
  end;

Description

TDaemonDef contains the definition of a daemon in the application: The name of the daemon, which TCustomDaemon descendent should be started to run the daemon, a description, and various other options should be set in this class. The global TDaemonApplication instance maintains a collection of TDaemonDef instances and will use these definitions to install or start the various daemons.

Properties

Member Visibility Description
DaemonClass read only public TDaemon class to use for this daemon.
DaemonClassName published Name of the TDaemon class to use for this daemon.
Description published Description of the daemon.
DisplayName published Displayed name of the daemon (service).
Enabled published Is the daemon enabled or not.
Instance public Instance of the daemon class.
LogStatusReport published Log the status report to the system log.
Name published Name of the daemon (service).
Options published Service options.
RunArguments published Additional command-line arguments when running daemon.
WinBindings published Windows-specific bindings (windows only).
See all Properties

Methods

Member Visibility Description
Create public Create a new TDaemonDef instance.
Destroy public Free a TDaemonDef from memory.
See all Methods

Events

Member Visibility Description
OnCreateInstance published Event called when a daemon in instantiated.
See all Events

See also

Name Description
TDaemonApplication Default descendent of CustomDaemonApplication.
TDaemon Daemon class for visual development.