#include <CArchDaemonNone.h>
Inherits IArchDaemon.
Inherited by CArchDaemonUnix.
Inheritance diagram for CArchDaemonNone:
Public Member Functions | |
virtual void | installDaemon (const char *name, const char *description, const char *pathname, const char *commandLine, const char *dependencies, bool allUsers) |
Install daemon. | |
virtual void | uninstallDaemon (const char *name, bool allUsers) |
Uninstall daemon. | |
virtual int | daemonize (const char *name, DaemonFunc func) |
Daemonize the process. | |
virtual bool | canInstallDaemon (const char *name, bool allUsers) |
Check if user has permission to install the daemon. | |
virtual bool | isDaemonInstalled (const char *name, bool allUsers) |
Check if the daemon is installed. |
This class implements IArchDaemon for a platform that does not have daemons. The install and uninstall functions do nothing, the query functions return false, and daemonize()
simply calls the passed function and returns its result.
Definition at line 29 of file CArchDaemonNone.h.
|
Check if user has permission to install the daemon. Returns true iff the caller has permission to install or uninstall the daemon. Note that even if this method returns true it's possible that installing/uninstalling the service may still fail. This method ignores whether or not the service is already installed. Implements IArchDaemon. Definition at line 57 of file CArchDaemonNone.cpp. |
|
Daemonize the process.
Daemonize. Throw XArchDaemonFailed on error. Exactly what happens when daemonizing depends on the platform.
Implements IArchDaemon. Reimplemented in CArchDaemonUnix. Definition at line 49 of file CArchDaemonNone.cpp. |
|
Install daemon.
Install a daemon. Implements IArchDaemon. Definition at line 32 of file CArchDaemonNone.cpp. |
|
Check if the daemon is installed. Returns true iff the daemon is installed. Implements IArchDaemon. Definition at line 63 of file CArchDaemonNone.cpp. |
|
Uninstall daemon.
Uninstall a daemon. Throws an Implements IArchDaemon. Definition at line 43 of file CArchDaemonNone.cpp. |