| 1 | /* | 
|---|
| 2 | * synergy -- mouse and keyboard sharing utility | 
|---|
| 3 | * Copyright (C) 2002 Chris Schoeneman | 
|---|
| 4 | * | 
|---|
| 5 | * This package is free software; you can redistribute it and/or | 
|---|
| 6 | * modify it under the terms of the GNU General Public License | 
|---|
| 7 | * found in the file COPYING that should have accompanied this file. | 
|---|
| 8 | * | 
|---|
| 9 | * This package is distributed in the hope that it will be useful, | 
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 12 | * GNU General Public License for more details. | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | #ifndef CARCHDAEMONNONE_H | 
|---|
| 16 | #define CARCHDAEMONNONE_H | 
|---|
| 17 |  | 
|---|
| 18 | #include "IArchDaemon.h" | 
|---|
| 19 |  | 
|---|
| 20 | #define ARCH_DAEMON CArchDaemonNone | 
|---|
| 21 |  | 
|---|
| 22 | //! Dummy implementation of IArchDaemon | 
|---|
| 23 | /*! | 
|---|
| 24 | This class implements IArchDaemon for a platform that does not have | 
|---|
| 25 | daemons.  The install and uninstall functions do nothing, the query | 
|---|
| 26 | functions return false, and \c daemonize() simply calls the passed | 
|---|
| 27 | function and returns its result. | 
|---|
| 28 | */ | 
|---|
| 29 | class CArchDaemonNone : public IArchDaemon { | 
|---|
| 30 | public: | 
|---|
| 31 | CArchDaemonNone(); | 
|---|
| 32 | virtual ~CArchDaemonNone(); | 
|---|
| 33 |  | 
|---|
| 34 | // IArchDaemon overrides | 
|---|
| 35 | virtual void            installDaemon(const char* name, | 
|---|
| 36 | const char* description, | 
|---|
| 37 | const char* pathname, | 
|---|
| 38 | const char* commandLine, | 
|---|
| 39 | const char* dependencies, | 
|---|
| 40 | bool allUsers); | 
|---|
| 41 | virtual void            uninstallDaemon(const char* name, bool allUsers); | 
|---|
| 42 | virtual int                     daemonize(const char* name, DaemonFunc func); | 
|---|
| 43 | virtual bool            canInstallDaemon(const char* name, bool allUsers); | 
|---|
| 44 | virtual bool            isDaemonInstalled(const char* name, bool allUsers); | 
|---|
| 45 | }; | 
|---|
| 46 |  | 
|---|
| 47 | #endif | 
|---|