deskflow/src/lib/arch/ArchDaemonNone.cpp
sithlord48 95586c88fd chore: ArchDaemonNone, use deault for empty deconstructor
use default for empty constructor
add comment for empty overrides from base class
2025-05-02 12:12:17 +01:00

54 lines
1,012 B
C++

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "arch/ArchDaemonNone.h"
//
// ArchDaemonNone
//
void ArchDaemonNone::installDaemon(const char *, const char *, const char *, const char *, const char *)
{
// do nothing
}
void ArchDaemonNone::uninstallDaemon(const char *)
{
// do nothing
}
int ArchDaemonNone::daemonize(const char *name, DaemonFunc func)
{
// simply forward the call to func. obviously, this doesn't
// do any daemonizing.
return func(1, &name);
}
bool ArchDaemonNone::canInstallDaemon(const char *)
{
return false;
}
bool ArchDaemonNone::isDaemonInstalled(const char *)
{
return false;
}
void ArchDaemonNone::installDaemon()
{
// do nothing
}
void ArchDaemonNone::uninstallDaemon()
{
// do nothing
}
std::string ArchDaemonNone::commandLine() const
{
return "";
}