Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
App Class Referenceabstract

#include <App.h>

Inheritance diagram for App:
Collaboration diagram for App:

Classes

class  XNoEiSupport

Public Member Functions

 App (IEventQueue *events, deskflow::ArgsBase *args)
 App (App const &)=delete
 App (App &&)=delete
 ~App () override
Appoperator= (App const &)=delete
Appoperator= (App &&)=delete
virtual void help ()=0
virtual void parseArgs (int argc, const char *const *argv)=0
virtual void loadConfig ()=0
virtual bool loadConfig (const std::string &pathname)=0
virtual const char * daemonInfo () const =0
virtual std::string configSection () const =0
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 IApp
virtual int standardStartup (int argc, char **argv)=0
virtual int runInner (int argc, char **argv, StartupFunc startup)=0
virtual void startNode ()=0
virtual int mainLoop ()=0
virtual const char * daemonName () const =0
virtual int foregroundStartup (int argc, char **argv)=0
virtual deskflow::ScreencreateScreen ()=0
Public Member Functions inherited from IInterface
virtual ~IInterface ()=default
 Interface destructor does nothing.

Static Public Member Functions

static Appinstance ()

Public Attributes

void(* m_bye )(int)

Protected Member Functions

void runEventsLoop (void *)

Protected Attributes

IEventQueuem_events = nullptr

Constructor & Destructor Documentation

◆ App() [1/3]

App::App ( IEventQueue * events,
deskflow::ArgsBase * args )

◆ App() [2/3]

App::App ( App const & )
delete

◆ App() [3/3]

App::App ( App && )
delete

◆ ~App()

App::~App ( )
override

Member Function Documentation

◆ appUtil()

ARCH_APP_UTIL & App::appUtil ( )
inline

◆ argsBase()

deskflow::ArgsBase & App::argsBase ( ) const
inlineoverridevirtual

Implements IApp.

◆ bye()

void App::bye ( int error)
inlineoverridevirtual

Implements IApp.

◆ configSection()

virtual std::string App::configSection ( ) const
pure virtual

Implemented in ClientApp, and ServerApp.

◆ daemonInfo()

virtual const char * App::daemonInfo ( ) const
pure virtual

Implemented in ClientApp, and ServerApp.

◆ daemonMainLoop()

int App::daemonMainLoop ( int ,
const char **  )

◆ getEvents()

IEventQueue * App::getEvents ( ) const
inlineoverridevirtual

Implements IApp.

◆ getSocketMultiplexer()

SocketMultiplexer * App::getSocketMultiplexer ( ) const
inline

◆ help()

virtual void App::help ( )
pure virtual

Implemented in ClientApp, and ServerApp.

◆ initApp() [1/2]

void App::initApp ( int argc,
char ** argv )
inline

◆ initApp() [2/2]

void App::initApp ( int argc,
const char ** argv )
overridevirtual

Implements IApp.

◆ instance()

App & App::instance ( )
inlinestatic

◆ loadConfig() [1/2]

virtual void App::loadConfig ( )
pure virtual

Implemented in ClientApp, and ServerApp.

◆ loadConfig() [2/2]

virtual bool App::loadConfig ( const std::string & pathname)
pure virtual

Implemented in ClientApp, and ServerApp.

◆ loggingFilterWarning()

void App::loggingFilterWarning ( ) const

◆ operator=() [1/2]

App & App::operator= ( App && )
delete

◆ operator=() [2/2]

App & App::operator= ( App const & )
delete

◆ parseArgs()

virtual void App::parseArgs ( int argc,
const char *const * argv )
pure virtual

Implemented in ClientApp, and ServerApp.

◆ run()

int App::run ( int argc,
char ** argv )

◆ runEventsLoop()

void App::runEventsLoop ( void * )
protected

◆ setByeFunc()

void App::setByeFunc ( void(* bye )(int))
inlineoverridevirtual

Implements IApp.

◆ setEvents()

void App::setEvents ( EventQueue & events)
inline

◆ setSocketMultiplexer()

void App::setSocketMultiplexer ( std::unique_ptr< SocketMultiplexer > && sm)
inline

◆ setupFileLogging()

void App::setupFileLogging ( )

◆ version()

void App::version ( )
virtual

Member Data Documentation

◆ m_bye

void(* App::m_bye) (int)

◆ m_events

IEventQueue* App::m_events = nullptr
protected

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