Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ArchDaemonNone.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "arch/IArchDaemon.h"
11
12#define ARCH_DAEMON ArchDaemonNone
13
15
22{
23public:
24 ArchDaemonNone() = default;
25 ~ArchDaemonNone() override = default;
26
27 // IArchDaemon overrides
28 void installDaemon(
29 const char *name, const char *description, const char *pathname, const char *commandLine, const char *dependencies
30 ) override;
31 void uninstallDaemon(const char *name) override;
32 int daemonize(const char *name, DaemonFunc const &func) override;
33 bool canInstallDaemon(const char *name) override;
34 bool isDaemonInstalled(const char *name) override;
35 void installDaemon() override;
36 void uninstallDaemon() override;
37 std::string commandLine() const override;
38};
static const struct sockaddr FAR * name
Definition ArchNetworkWinsock.cpp:27
ArchDaemonNone()=default
void installDaemon() override
Install daemon.
Definition ArchDaemonNone.cpp:41
std::string commandLine() const override
Get the command line.
Definition ArchDaemonNone.cpp:51
void uninstallDaemon() override
Uninstall daemon.
Definition ArchDaemonNone.cpp:46
bool canInstallDaemon(const char *name) override
Check if user has permission to install the daemon.
Definition ArchDaemonNone.cpp:31
~ArchDaemonNone() override=default
int daemonize(const char *name, DaemonFunc const &func) override
Daemonize the process.
Definition ArchDaemonNone.cpp:24
bool isDaemonInstalled(const char *name) override
Check if the daemon is installed.
Definition ArchDaemonNone.cpp:36
Interface for architecture dependent daemonizing.
Definition IArchDaemon.h:22
std::function< int(int, const char **)> DaemonFunc
Definition IArchDaemon.h:24