![]() |
Deskflow 1.24.0.365
Keyboard and mouse sharing utility
|
Dummy implementation of IArchDaemon. More...
#include <ArchDaemonNone.h>


Public Member Functions | |
| ArchDaemonNone ()=default | |
| ~ArchDaemonNone () override=default | |
| int | daemonize (DaemonFunc const &func) override |
| Daemonize the process. | |
| QString | commandLine () const override |
| Get the command line. | |
| Public Member Functions inherited from IArchDaemon | |
| virtual | ~IArchDaemon ()=default |
Additional Inherited Members | |
| Public Types inherited from IArchDaemon | |
| using | DaemonFunc = std::function<int()> |
Dummy implementation of IArchDaemon.
This class implements IArchDaemon for a platform that does not have daemons. The query functions return false, and daemonize() simply calls the passed function and returns its result.
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Get the command line.
Gets the command line with which the application was started.
Implements IArchDaemon.
|
inlineoverridevirtual |
Daemonize the process.
Daemonize. Throw ArchDaemonFailedException on error. name is the name of the daemon. Once daemonized, func is invoked and daemonize returns when and what it does.
Exactly what happens when daemonizing depends on the platform.
func gets passed one argument, the name passed to daemonize(). func is only called when the service is actually started. func must call ArchMiscWindows::runDaemon() to finally becoming a service. The runFunc function passed to runDaemon() must call ArchMiscWindows::daemonRunning(true) when it enters the main loop (i.e. after initialization) and ArchMiscWindows::daemonRunning(false) when it leaves the main loop. The stopFunc function passed to runDaemon() is called when the daemon must exit the main loop and it must cause runFunc to return. func should return what runDaemon() returns. func or runFunc can call ArchMiscWindows::daemonFailed() to indicate startup failure. Implements IArchDaemon.