CArchDaemonNone Class Reference

Dummy implementation of IArchDaemon. More...

#include <CArchDaemonNone.h>

Inherits IArchDaemon.

Inherited by CArchDaemonUnix.

Inheritance diagram for CArchDaemonNone:

Inheritance graph
[legend]
Collaboration diagram for CArchDaemonNone:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CArchDaemonNone ()
virtual ~CArchDaemonNone ()
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)
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.

Detailed Description

Dummy implementation of IArchDaemon.

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.


Member Function Documentation

bool CArchDaemonNone::canInstallDaemon ( const char *  name,
bool  allUsers 
) [virtual]

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.

void CArchDaemonNone::installDaemon ( const char *  name,
const char *  description,
const char *  pathname,
const char *  commandLine,
const char *  dependencies,
bool  allUsers 
) [virtual]

Install daemon.

Install a daemon. name is the name of the daemon passed to the system and description is a short human readable description of the daemon. pathname is the path to the daemon executable. commandLine should not include the name of program as the first argument. If allUsers is true then the daemon will be installed to start at boot time, otherwise it will be installed to start when the current user logs in. If dependencies is not NULL then it's a concatenation of NUL terminated other daemon names followed by a NUL; the daemon will be configured to startup after the listed daemons. Throws an XArchDaemon exception on failure.

Implements IArchDaemon.

Definition at line 32 of file CArchDaemonNone.cpp.

bool CArchDaemonNone::isDaemonInstalled ( const char *  name,
bool  allUsers 
) [virtual]

Check if the daemon is installed.

Returns true iff the daemon is installed.

Implements IArchDaemon.

Definition at line 63 of file CArchDaemonNone.cpp.

void CArchDaemonNone::uninstallDaemon ( const char *  name,
bool  allUsers 
) [virtual]

Uninstall daemon.

Uninstall a daemon. Throws an XArchDaemon on failure.

Implements IArchDaemon.

Definition at line 43 of file CArchDaemonNone.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:18:50 2009 for synergy-plus by  doxygen 1.4.7