#include <IArchDaemon.h>
Inherits IInterface.
Inherited by CArch, CArchDaemonNone, and CArchDaemonWindows.
Inheritance diagram for IArchDaemon:
Public Types | |
typedef int(* | DaemonFunc )(int argc, const char **argv) |
Public Member Functions | |
manipulators | |
virtual void | installDaemon (const char *name, const char *description, const char *pathname, const char *commandLine, const char *dependencies, bool allUsers)=0 |
Install daemon. | |
virtual void | uninstallDaemon (const char *name, bool allUsers)=0 |
Uninstall daemon. | |
virtual int | daemonize (const char *name, DaemonFunc func)=0 |
Daemonize the process. | |
virtual bool | canInstallDaemon (const char *name, bool allUsers)=0 |
Check if user has permission to install the daemon. | |
virtual bool | isDaemonInstalled (const char *name, bool allUsers)=0 |
Check if the daemon is installed. |
This interface defines the operations required by synergy for installing uninstalling daeamons and daemonizing a process. Each architecture must implement this interface.
Definition at line 26 of file IArchDaemon.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. Implemented in CArch, CArchDaemonNone, and CArchDaemonWindows. Referenced by CArch::canInstallDaemon(). |
|
Daemonize the process.
Daemonize. Throw XArchDaemonFailed on error. Exactly what happens when daemonizing depends on the platform.
Implemented in CArch, CArchDaemonNone, CArchDaemonUnix, and CArchDaemonWindows. Referenced by CArch::daemonize(). |
|
Install daemon.
Install a daemon. Implemented in CArch, CArchDaemonNone, and CArchDaemonWindows. Referenced by CArch::installDaemon(). |
|
Check if the daemon is installed. Returns true iff the daemon is installed. Implemented in CArch, CArchDaemonNone, and CArchDaemonWindows. Referenced by CArch::isDaemonInstalled(). |
|
Uninstall daemon.
Uninstall a daemon. Throws an Implemented in CArch, CArchDaemonNone, and CArchDaemonWindows. Referenced by CArch::uninstallDaemon(). |