Sign in Join
FPDoc Onlineexperiment

TDaemon class

In unit DaemonApp

Daemon class for visual development.

Declaration

pascal
TDaemon = class(TCustomDaemon)

Inheritance

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

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.

See also

Properties

DefinitionpublicThe definition used to instantiate this daemon instance.
StatuspublicCurrent status of the daemon.
BeforeInstallpublishedCalled before the daemon will be installed.
AfterInstallpublishedCalled after the daemon was installed.
BeforeUnInstallpublishedCalled before the daemon is uninstalled.
AfterUnInstallpublishedCalled after the daemon is uninstalled.

Methods

Startprotected
Stopprotected
Pauseprotected
Continueprotected
Executeprotected
ShutDownprotected
Installprotected
UnInstallprotected
HandleCustomCodeprotected

Events

OnStartpublishedDaemon start event.
OnStoppublishedDaemon stop event.
OnPausepublishedDaemon pause event.
OnContinuepublishedDaemon continue.
OnShutDownpublishedDaemon shutdown.
OnExecutepublishedDaemon execute event.
OnControlCodepublishedCalled when a control code is received for the daemon.
OnControlCodeEventpublished

Inherited

From TCustomDaemon (7)

CheckControlMessages Controller DaemonThread DoThreadTerminate Logger LogMessage ReportStatus

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.