Sign in Join
FPDoc Onlineexperiment

TCustomDaemonApplication class

In unit DaemonApp

Custom daemon application class.

Declaration

pascal
TCustomDaemonApplication = class(TCustomApplication)

Inheritance

  1. TCustomDaemonApplication
  2. TCustomApplication
  3. TComponent
  4. TPersistent
  5. TObject

Descends from it: TDaemonApplication

Description

TCustomDaemonApplication is a TCustomApplication descendent which is the main application instance for a daemon. It handles the command-line and decides what to do when the application is started, depending on the command-line options given to the application, by calling the various methods.

It creates the necessary TDaemon instances by checking the TCustomDaemonMapperClass instance that contains the daemon maps.

See also

Properties

SysDataprotected
EventLogpublicEvent logger instance.
GUIMainLooppublicGUI main loop callback.
GuiHandlepublicHandle of GUI loop main application window handle.
RunModepublicApplication mode.
AutoRegisterMessageFilepublicAutomatically register the message file.

Methods

SysStartUnInstallDaemonsprotected
SysEndUnInstallDaemonsprotected
SysStartInstallDaemonsprotected
SysEndInstallDaemonsprotected
SysStartRunDaemonsprotected
SysEndRunDaemonsprotected
CreateDaemonControllerprotected
CreateServiceMapperprotected
CreateDaemonInstanceprotected
RemoveControllerprotected
GetEventLogprotected
DoRunprotected
DoLogprotected
CreatepublicConstructor for the class instance.
DestroypublicClean up the TCustomDaemonApplication instance.
ShowExceptionpublicShow an exception.
CreateDaemonpublicCreate daemon instance.
StopDaemonspublicStop all daemons.
InstallDaemonspublicInstall all daemons.
RunDaemonspublicRun all daemons.
UnInstallDaemonspublicUninstall all daemons.
ShowHelppublicDisplay a help message.
CreateFormpublicCreate a component.

Events

OnRunpublicEvent executed when the daemon is run.

Inherited

From TCustomApplication (38)

AbortRun CaseSensitiveLongOptions CaseSensitiveOptions CaseSensitiveShortOptions CheckOptions ConsoleApplication EnvironmentVariable EventLogFilter ExceptionExitCode ExeName FindOptionIndex GetConsoleApplication GetEnvironmentList GetNonOptions GetOptionAtIndex GetOptionValue GetOptionValues GetParamCount GetParams HandleException HasOption HelpFile Initialize Location Log OnException OptionChar ParamCount Params Run SetTitle SingleInstance SingleInstanceClass SingleInstanceEnabled StopOnException Terminate Terminated Title

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren 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 ReadState 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 (37)

AfterConstruction 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.