TCustomDaemonApplication class
Custom daemon application class.
Declaration
TCustomDaemonApplication = class(TCustomApplication)Inheritance
- TCustomDaemonApplication
- TCustomApplication
- TComponent
- TPersistent
- 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
SysData | protected | |
EventLog | public | Event logger instance. |
GUIMainLoop | public | GUI main loop callback. |
GuiHandle | public | Handle of GUI loop main application window handle. |
RunMode | public | Application mode. |
AutoRegisterMessageFile | public | Automatically register the message file. |
Methods
SysStartUnInstallDaemons | protected | |
SysEndUnInstallDaemons | protected | |
SysStartInstallDaemons | protected | |
SysEndInstallDaemons | protected | |
SysStartRunDaemons | protected | |
SysEndRunDaemons | protected | |
CreateDaemonController | protected | |
CreateServiceMapper | protected | |
CreateDaemonInstance | protected | |
RemoveController | protected | |
GetEventLog | protected | |
DoRun | protected | |
DoLog | protected | |
Create | public | Constructor for the class instance. |
Destroy | public | Clean up the TCustomDaemonApplication instance. |
ShowException | public | Show an exception. |
CreateDaemon | public | Create daemon instance. |
StopDaemons | public | Stop all daemons. |
InstallDaemons | public | Install all daemons. |
RunDaemons | public | Run all daemons. |
UnInstallDaemons | public | Uninstall all daemons. |
ShowHelp | public | Display a help message. |
CreateForm | public | Create a component. |
Events
OnRun | public | Event 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.
