|
Public Member Functions |
|
| Service (const char *internalServiceName, const char *displayServiceName) |
| bool | Create (const char *userName=0, const char *password=0, const bool autoStart=true, const bool restartOnError=true, const char *longDescription=0, const char *dependencies=0) |
|
bool | SetArgs (int argc=0, char **argv=0) |
| | Sets the arguments to use for this service. On Windows platforms these are stored in the registry.
|
|
bool | GetArgs (int &argc, char **&argv) |
| | Gets the arguments to use for this service. On Windows platforms these are stored in the registry.
|
|
bool | Start (void) |
| | Starts the service.
|
|
bool | Stop (void) |
| | Stops the service.
|
|
bool | Delete (void) |
| | Deletes the service.
|
| bool | Execute (const bool setCurrentDirectory=true, const bool storeLastDebugPrint=false) |
| virtual int | Main (int argc=0, char **argv=0)=0 |
|
void | DebugPrint (const char *,...) |
| | A utility function that allows the user to output debug information as the service is running.
|
Static Public Member Functions |
|
static bool | GetDebugLine (const char *serviceName, std::string &buffer) |
| | Retrieves the last line from DebugPrint for the service.
|
|
static bool | GetServiceList (std::list< std::string > &services) |
| | Gets the list of service names that are installed.
|
Protected Member Functions |
|
bool | NeedToExitMain (void) |
| | Returns true if the Main function needs to exit. This must be tested fairly regularly by the Main function.
|
|
void | SetDebugLine (const char *buffer) |
Protected Attributes |
|
bool | mToStdOut |