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

TDaemonController

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

Internal daemon controller class

Declaration

Source position: daemonapp.pp line 118

type TDaemonController = class(TComponent)

public

  constructor Create(); override;

  

Create a new instance of the TDaemonController class

  destructor Destroy; override;

  

Free a TDaemonController instance.

  procedure StartService; virtual;

  

Start the service

  procedure Main(); virtual;

  

Daemon main entry point

  procedure Controller(); virtual;

  

Controller

  function ReportStatus; virtual;

  

Report the status to the operating system.

  property Daemon: TCustomDaemon; [r]

  

Daemon instance this controller controls.

  property Params: TStrings; [r]

  

Parameters passed to the daemon

  property LastStatus: TCurrentStatus; [r]

  

Last reported status

  property CheckPoint: DWord;

  

Send checkpoint signal to the operating system

end;

Inheritance

TDaemonController

  

Internal daemon controller class

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

Description

TDaemonController is a class that is used by the TDaemonApplication class to control the daemon during runtime. The TDaemonApplication class instantiates an instance of TDaemonController for each daemon in the application and communicates with the daemon through the TDaemonController instance. It should rarely be necessary to access or use this class.

See also

TCustomDaemon

  

Base daemon application class

TDaemonApplication

  

Default descendent of CustomDaemonApplication

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