Skip to content

TDaemon

Daemon class for visual development.

Declaration

Source position: daemonapp.pp line 87

type

  TDaemon = class(TCustomDaemon)
  public
    property Definition;
    property Status;
  published
    property OnStart: TDaemonOKEvent; {rw}
    property OnStop: TDaemonOKEvent; {rw}
    property OnPause: TDaemonOKEvent; {rw}
    property OnContinue: TDaemonOKEvent; {rw}
    property OnShutDown: TDaemonEvent; {rw}
    property OnExecute: TDaemonEvent; {rw}
    property BeforeInstall: TDaemonEvent; {rw}
    property AfterInstall: TDaemonEvent; {rw}
    property BeforeUnInstall: TDaemonEvent; {rw}
    property AfterUnInstall: TDaemonEvent; {rw}
    property OnControlCode: TCustomControlCodeEvent; {rw}
    property OnControlCodeEvent: TCustomControlCodeEvEvent; {rw}
  end;

Description

TDaemon is a TCustomDaemon descendent which is meant for development in a visual environment: it contains event handlers for all major operations. Whenever a TCustomDaemon method is executed, it's execution is shunted to the event handler, which can be filled with code in the IDE.

All the events of the daemon are executed in the thread in which the daemon's controller is running (as given by DaemonThread), which is not the main program thread.

Properties

Member Visibility Description
AfterInstall published Called after the daemon was installed.
AfterUnInstall published Called after the daemon is uninstalled.
BeforeInstall published Called before the daemon will be installed.
BeforeUnInstall published Called before the daemon is uninstalled.
Definition read only public
Status read only public
See all Properties

Events

Member Visibility Description
OnContinue published Daemon continue.
OnControlCode published Called when a control code is received for the daemon.
OnControlCodeEvent published
OnExecute published Daemon execute event.
OnPause published Daemon pause event.
OnShutDown published Daemon shutdown.
OnStart published Daemon start event.
OnStop published Daemon stop event.
See all Events

See also

Name Description
TCustomDaemon Base daemon application class.
TDaemonController Internal daemon controller class.