Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
deskflow::gui::CoreProcess Class Reference

#include <CoreProcess.h>

Inheritance diagram for deskflow::gui::CoreProcess:
Collaboration diagram for deskflow::gui::CoreProcess:

Classes

struct  Deps

Public Types

enum class  Error { AddressMissing , StartFailed }
enum class  ProcessState {
  Starting , Started , Stopping , Stopped ,
  RetryPending
}
enum class  ConnectionState { Disconnected , Connecting , Connected , Listening }

Signals

void starting ()
void error (Error error)
void logLine (const QString &line)
void connectionStateChanged (ConnectionState state)
void processStateChanged (ProcessState state)
void secureSocket (bool enabled)
void daemonIpcClientConnectionFailed ()

Public Member Functions

 CoreProcess (const IServerConfig &serverConfig, std::shared_ptr< Deps > deps=std::make_shared< Deps >())
void extracted (QString &app, QStringList &args)
void start (std::optional< ProcessMode > processMode=std::nullopt)
void stop (std::optional< ProcessMode > processMode=std::nullopt)
void restart ()
void cleanup ()
void applyLogLevel ()
void clearSettings ()
void retryDaemon ()
Settings::CoreMode mode () const
QString secureSocketVersion () const
bool isStarted () const
ProcessState processState () const
ConnectionState connectionState () const
void setAddress (const QString &address)
void setMode (Settings::CoreMode mode)

Member Enumeration Documentation

◆ ConnectionState

Enumerator
Disconnected 
Connecting 
Connected 
Listening 

◆ Error

Enumerator
AddressMissing 
StartFailed 

◆ ProcessState

Enumerator
Starting 
Started 
Stopping 
Stopped 
RetryPending 

Constructor & Destructor Documentation

◆ CoreProcess()

deskflow::gui::CoreProcess::CoreProcess ( const IServerConfig & serverConfig,
std::shared_ptr< Deps > deps = std::make_shared<Deps>() )
explicit

Member Function Documentation

◆ applyLogLevel()

void deskflow::gui::CoreProcess::applyLogLevel ( )

◆ cleanup()

void deskflow::gui::CoreProcess::cleanup ( )

◆ clearSettings()

void deskflow::gui::CoreProcess::clearSettings ( )

◆ connectionState()

ConnectionState deskflow::gui::CoreProcess::connectionState ( ) const
inline

◆ connectionStateChanged

void deskflow::gui::CoreProcess::connectionStateChanged ( ConnectionState state)
signal

◆ daemonIpcClientConnectionFailed

void deskflow::gui::CoreProcess::daemonIpcClientConnectionFailed ( )
signal

◆ error

void deskflow::gui::CoreProcess::error ( Error error)
signal

◆ extracted()

void deskflow::gui::CoreProcess::extracted ( QString & app,
QStringList & args )

◆ isStarted()

bool deskflow::gui::CoreProcess::isStarted ( ) const
inline

◆ logLine

void deskflow::gui::CoreProcess::logLine ( const QString & line)
signal

◆ mode()

Settings::CoreMode deskflow::gui::CoreProcess::mode ( ) const
inline

◆ processState()

ProcessState deskflow::gui::CoreProcess::processState ( ) const
inline

◆ processStateChanged

void deskflow::gui::CoreProcess::processStateChanged ( ProcessState state)
signal

◆ restart()

void deskflow::gui::CoreProcess::restart ( )

◆ retryDaemon()

void deskflow::gui::CoreProcess::retryDaemon ( )

◆ secureSocket

void deskflow::gui::CoreProcess::secureSocket ( bool enabled)
signal

◆ secureSocketVersion()

QString deskflow::gui::CoreProcess::secureSocketVersion ( ) const
inline

◆ setAddress()

void deskflow::gui::CoreProcess::setAddress ( const QString & address)
inline

◆ setMode()

void deskflow::gui::CoreProcess::setMode ( Settings::CoreMode mode)
inline

◆ start()

void deskflow::gui::CoreProcess::start ( std::optional< ProcessMode > processMode = std::nullopt)

◆ starting

void deskflow::gui::CoreProcess::starting ( )
signal

◆ stop()

void deskflow::gui::CoreProcess::stop ( std::optional< ProcessMode > processMode = std::nullopt)

The documentation for this class was generated from the following files: