Deskflow 1.24.0.365
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) 2025 Deskflow Developers.
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
11#include "arch/IArchDaemon.h"
12
13#define ARCH_DAEMON ArchDaemonNone
14
16
22{
23public:
24 ArchDaemonNone() = default;
25 ~ArchDaemonNone() override = default;
26
27 // IArchDaemon overrides
28 int daemonize(DaemonFunc const &func) override
29 {
30 // simply forward the call to func. obviously, this doesn't
31 // do any daemonizing.
32 return func();
33 }
34 QString commandLine() const override
35 {
36 return {};
37 }
38};
ArchDaemonNone()=default
QString commandLine() const override
Get the command line.
Definition ArchDaemonNone.h:34
~ArchDaemonNone() override=default
int daemonize(DaemonFunc const &func) override
Daemonize the process.
Definition ArchDaemonNone.h:28
Interface for architecture dependent daemonizing.
Definition IArchDaemon.h:21
std::function< int()> DaemonFunc
Definition IArchDaemon.h:23