30 #ifndef PTLIB_SERVICEPROCESS_H
31 #define PTLIB_SERVICEPROCESS_H
57 unsigned majorVersion,
58 unsigned minorVersion,
60 unsigned patchVersion,
61 unsigned oemVersion = 0
131 PSystemLog::Level level
139 PSystemLog::Level GetLogLevel()
const {
return PSystemLog::GetTarget().GetThresholdLevel(); }
162 #include "msos/ptlib/svcproc.h"
164 #include "unix/ptlib/svcproc.h"
169 #endif // PTLIB_SERVICEPROCESS_H
virtual void OnControl()
The Control menu option was used in the SysTray menu.
bool m_debugMode
Flag to indicate service is run in simulation mode.
Definition: svcproc.h:158
virtual void OnContinue()
Resume after the service was paused.
This class represents an operating system process.
Definition: pprocess.h:106
A process type that runs as a "background" service.
Definition: svcproc.h:45
virtual PBoolean OnStart()=0
Called when the service is started.
bool PBoolean
Definition: object.h:174
virtual void Main()
User override function for the main execution routine of the thread.
virtual PBoolean OnPause()
Called by the system when the service is to be paused.
PServiceProcess(const char *manuf, const char *name, unsigned majorVersion, unsigned minorVersion, CodeStatus status, unsigned patchVersion, unsigned oemVersion=0)
Create a new service process.
virtual bool IsServiceProcess() const
virtual int InternalMain(void *arg=NULL)
Main function for process, called from real main after initialisation.
virtual void OnStop()
Called by the system when the service is stopped.
PSyncPoint m_exitMain
Definition: svcproc.h:155
static PServiceProcess & Current()
Get the current service process object.
CodeStatus
Release status for the program.
Definition: pprocess.h:114
This class defines a thread synchronisation object.
Definition: syncpoint.h:63