Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
IArchDaemon.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 <QString>
12#include <functional>
13
15
21{
22public:
23 using DaemonFunc = std::function<int()>;
24
25 virtual ~IArchDaemon() = default;
27
28
30
56 virtual int daemonize(DaemonFunc const &func) = 0;
57
59
61
64 virtual QString commandLine() const = 0;
65
67};
static int(PASCAL FAR *bind_winsock)(SOCKET s
Interface for architecture dependent daemonizing.
Definition IArchDaemon.h:21
std::function< int()> DaemonFunc
Definition IArchDaemon.h:23
virtual int daemonize(DaemonFunc const &func)=0
Daemonize the process.
virtual QString commandLine() const =0
Get the command line.
virtual ~IArchDaemon()=default