Sign in Join
FPDoc Onlineexperiment

TCustomDaemon class

In unit DaemonApp

Base daemon application class.

Declaration

pascal
TCustomDaemon = class(TDataModule)

Inheritance

  1. TCustomDaemon
  2. TDataModule
  3. TComponent
  4. TPersistent
  5. TObject

Descends from it: TDaemon

Description

TCustomDaemon implements all the basic calls that are needed for a daemon to function. Descendents of TCustomDaemon can override these calls to implement the daemon-specific behaviour.

TCustomDaemon is an abstract class, it should never be instantiated. Either a descendent of it must be created and instantiated, or a descendent of TDaemon can be designed to implement the behaviour of the daemon.

See also

Properties

DefinitionpublicThe definition used to instantiate this daemon instance.
DaemonThreadpublicThread in which daemon is running.
ControllerpublicTDaemonController instance controlling this daemon instance.
StatuspublicCurrent status of the daemon.
LoggerpublicTEventLog instance used to send messages to the system log.

Methods

Startprotected
Stopprotected
Pauseprotected
Continueprotected
Executeprotected
ShutDownprotected
Installprotected
UnInstallprotected
HandleCustomCodeprotected
DoThreadTerminateprotected
CheckControlMessagespublic
LogMessagepublicLog a message to the system log.
ReportStatuspublicReport the current status to the operating system.

Inherited

From TDataModule (17)

AfterConstruction BeforeDestruction Create CreateNew DefineProperties DesignOffset DesignPPI DesignSize Destroy DoCreate DoDestroy GetChildren HandleCreateException OldCreateOrder OnCreate OnDestroy ReadState

From TComponent (70)

_AddRef _Release CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.