Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ClientApp Class Reference

#include <ClientApp.h>

Inheritance diagram for ClientApp:
Collaboration diagram for ClientApp:

Public Member Functions

 ClientApp (IEventQueue *events)
 ~ClientApp () override=default
void parseArgs (int argc, const char *const *argv) override
void help () override
const char * daemonName () const override
const char * daemonInfo () const override
void loadConfig () override
bool loadConfig (const std::string &pathname) override
int foregroundStartup (int argc, char **argv) override
int standardStartup (int argc, char **argv) override
int runInner (int argc, char **argv, StartupFunc startup) override
deskflow::ScreencreateScreen () override
int mainLoop () override
void startNode () override
std::string configSection () const override
void updateStatus () const
void updateStatus (const std::string_view &) const
void handleScreenError ()
deskflow::ScreenopenClientScreen ()
void closeClientScreen (deskflow::Screen *screen)
void handleClientRestart (const Event &, EventQueueTimer *vtimer)
void scheduleClientRestart (double retryTime)
void handleClientConnected () const
void handleClientFailed (const Event &e)
void handleClientRefused (const Event &e)
void handleClientDisconnected ()
ClientopenClient (const std::string &name, const NetworkAddress &address, deskflow::Screen *screen)
void closeClient (Client *client)
bool startClient ()
void stopClient ()
ClientgetClientPtr ()
deskflow::ClientArgsargs () const
Public Member Functions inherited from App
 App (IEventQueue *events, deskflow::ArgsBase *args)
 App (App const &)=delete
 App (App &&)=delete
 ~App () override
Appoperator= (App const &)=delete
Appoperator= (App &&)=delete
virtual void version ()
void setByeFunc (void(*bye)(int)) override
void bye (int error) override
IEventQueuegetEvents () const override
ARCH_APP_UTILappUtil ()
deskflow::ArgsBaseargsBase () const override
int run (int argc, char **argv)
int daemonMainLoop (int, const char **)
void setupFileLogging ()
void loggingFilterWarning () const
void initApp (int argc, const char **argv) override
void initApp (int argc, char **argv)
void setEvents (EventQueue &events)
void setSocketMultiplexer (std::unique_ptr< SocketMultiplexer > &&sm)
SocketMultiplexergetSocketMultiplexer () const
Public Member Functions inherited from IInterface
virtual ~IInterface ()=default
 Interface destructor does nothing.

Static Public Member Functions

static ClientAppinstance ()
Static Public Member Functions inherited from App
static Appinstance ()

Additional Inherited Members

Public Attributes inherited from App
void(* m_bye )(int)
Protected Member Functions inherited from App
void runEventsLoop (void *)
Protected Attributes inherited from App
IEventQueuem_events = nullptr

Constructor & Destructor Documentation

◆ ClientApp()

ClientApp::ClientApp ( IEventQueue * events)
explicit

◆ ~ClientApp()

ClientApp::~ClientApp ( )
overridedefault

Member Function Documentation

◆ args()

deskflow::ClientArgs & ClientApp::args ( ) const
inline

◆ closeClient()

void ClientApp::closeClient ( Client * client)

◆ closeClientScreen()

void ClientApp::closeClientScreen ( deskflow::Screen * screen)

◆ configSection()

std::string ClientApp::configSection ( ) const
inlineoverridevirtual

Implements App.

◆ createScreen()

deskflow::Screen * ClientApp::createScreen ( )
overridevirtual

Implements IApp.

◆ daemonInfo()

const char * ClientApp::daemonInfo ( ) const
overridevirtual

Implements App.

◆ daemonName()

const char * ClientApp::daemonName ( ) const
overridevirtual

Implements IApp.

◆ foregroundStartup()

int ClientApp::foregroundStartup ( int argc,
char ** argv )
overridevirtual

Implements IApp.

◆ getClientPtr()

Client * ClientApp::getClientPtr ( )
inline

◆ handleClientConnected()

void ClientApp::handleClientConnected ( ) const

◆ handleClientDisconnected()

void ClientApp::handleClientDisconnected ( )

◆ handleClientFailed()

void ClientApp::handleClientFailed ( const Event & e)

◆ handleClientRefused()

void ClientApp::handleClientRefused ( const Event & e)

◆ handleClientRestart()

void ClientApp::handleClientRestart ( const Event & ,
EventQueueTimer * vtimer )

◆ handleScreenError()

void ClientApp::handleScreenError ( )

◆ help()

void ClientApp::help ( )
overridevirtual

Implements App.

◆ instance()

ClientApp & ClientApp::instance ( )
inlinestatic

◆ loadConfig() [1/2]

void ClientApp::loadConfig ( )
inlineoverridevirtual

Implements App.

◆ loadConfig() [2/2]

bool ClientApp::loadConfig ( const std::string & pathname)
inlineoverridevirtual

Implements App.

◆ mainLoop()

int ClientApp::mainLoop ( )
overridevirtual

Implements IApp.

◆ openClient()

Client * ClientApp::openClient ( const std::string & name,
const NetworkAddress & address,
deskflow::Screen * screen )

◆ openClientScreen()

deskflow::Screen * ClientApp::openClientScreen ( )

◆ parseArgs()

void ClientApp::parseArgs ( int argc,
const char *const * argv )
overridevirtual

Implements App.

◆ runInner()

int ClientApp::runInner ( int argc,
char ** argv,
StartupFunc startup )
overridevirtual

Implements IApp.

◆ scheduleClientRestart()

void ClientApp::scheduleClientRestart ( double retryTime)

◆ standardStartup()

int ClientApp::standardStartup ( int argc,
char ** argv )
overridevirtual

Implements IApp.

◆ startClient()

bool ClientApp::startClient ( )

◆ startNode()

void ClientApp::startNode ( )
overridevirtual

Implements IApp.

◆ stopClient()

void ClientApp::stopClient ( )

◆ updateStatus() [1/2]

void ClientApp::updateStatus ( ) const

◆ updateStatus() [2/2]

void ClientApp::updateStatus ( const std::string_view & ) const

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