[Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'daemonapp' (#fcl)

TDaemonDef

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Daemon definition

Declaration

Source position: daemonapp.pp line 212

type TDaemonDef = class(TCollectionItem)

protected

  function GetDisplayName; override;

public

  constructor Create(); override;

  

Create a new TDaemonDef instance

  destructor Destroy; override;

  

Free a TDaemonDef from memory

  property DaemonClass: TCustomDaemonClass; [r]

  

TDaemon class to use for this daemon

  property Instance: TCustomDaemon; [rw]

  

Instance of the daemon class

published

  property DaemonClassName: String; [rw]

  

Name of the TDaemon class to use for this daemon

  property Name: String; [rw]

  

Name of the daemon (service)

  property Description: String; [rw]

  

Description of the daemon

  property DisplayName: String; [rw]

  

Displayed name of the daemon (service)

  property RunArguments: String; [rw]

  

Additional command-line arguments when running daemon.

  property Options: TDaemonOptions; [rw]

  

Service options

  property Enabled: Boolean; [rw]

  

Is the daemon enabled or not

  property WinBindings: TWinBindings; [rw]

  

Windows-specific bindings (windows only)

  property OnCreateInstance: TNotifyEvent; [rw]

  

Event called when a daemon in instantiated

  property LogStatusReport: Boolean; [rw]

  

Log the status report to the system log

end;

Inheritance

TDaemonDef

  

Daemon definition

|

TCollectionItem

|

TPersistent

|

TObject

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.

See also

TDaemonApplication

  

Default descendent of CustomDaemonApplication

TDaemon

  

Daemon class for visual development

The latest version of this document can be found at lazarus-ccr.sourceforge.net.