source: trunk/synergy/lib/arch/CArchDaemonNone.h@ 3003

Last change on this file since 3003 was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.5 KB
Line 
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/*!
24This class implements IArchDaemon for a platform that does not have
25daemons. The install and uninstall functions do nothing, the query
26functions return false, and \c daemonize() simply calls the passed
27function and returns its result.
28*/
29class CArchDaemonNone : public IArchDaemon {
30public:
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
Note: See TracBrowser for help on using the repository browser.