Deskflow 1.26.0.314
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ServerConfig Class Reference

#include <ServerConfig.h>

Inheritance diagram for ServerConfig:
Collaboration diagram for ServerConfig:

Public Member Functions

 ServerConfig (int columns=kServerGridWidth, int rows=kServerGridHeight)
 ~ServerConfig ()=default
bool operator== (const ServerConfig &sc) const
const ScreenListscreens () const
const HotkeyListhotkeys () const
bool save (const QString &fileName) const
bool screenExists (const QString &screenName) const
void save (QFile &file) const
bool isFull () const
void commit ()
int numScreens () const
QString getServerName () const
void updateServerName ()
QString configFile () const
bool useExternalConfig () const
void addClient (const QString &clientName)

Friends

class ServerConfigDialog
QTextStream & operator<< (QTextStream &outStream, const ServerConfig &config)

Additional Inherited Members

Public Types inherited from ScreenConfig
enum class  Modifier : int8_t {
  DefaultMod = -1 , Shift , Ctrl , Alt ,
  Meta , Super , AltGr , None ,
  NumModifiers
}
enum class  SwitchCorner : int8_t {
  TopLeft , TopRight , BottomLeft , BottomRight ,
  NumSwitchCorners
}
enum class  Fix : int8_t {
  CapsLock , NumLock , ScrollLock , XTest ,
  NumFixes
}
Static Public Member Functions inherited from ScreenConfig
static const char * modifierName (int idx)
static const char * fixName (int idx)
static const char * switchCornerName (int idx)
Protected Member Functions inherited from ScreenConfig
 ScreenConfig ()=default
 ~ScreenConfig ()=default
template<typename T1, typename T2>
void readSettings (QSettingsProxy &settings, T1 &array, const QString &arrayName, const T2 &defaultValue)
template<typename T1, typename T2>
void readSettings (QSettingsProxy &settings, T1 &array, const QString &arrayName, const T2 &defaultValue, int entries)
template<typename T>
void writeSettings (QSettingsProxy &settings, const T &array, const QString &arrayName) const

Constructor & Destructor Documentation

◆ ServerConfig()

ServerConfig::ServerConfig ( int columns = kServerGridWidth,
int rows = kServerGridHeight )
explicit

◆ ~ServerConfig()

ServerConfig::~ServerConfig ( )
default

Member Function Documentation

◆ addClient()

void ServerConfig::addClient ( const QString & clientName)

◆ commit()

void ServerConfig::commit ( )

◆ configFile()

QString ServerConfig::configFile ( ) const

◆ getServerName()

QString ServerConfig::getServerName ( ) const

◆ hotkeys()

const HotkeyList & ServerConfig::hotkeys ( ) const
inline

◆ isFull()

bool ServerConfig::isFull ( ) const

◆ numScreens()

int ServerConfig::numScreens ( ) const

◆ operator==()

bool ServerConfig::operator== ( const ServerConfig & sc) const

◆ save() [1/2]

bool ServerConfig::save ( const QString & fileName) const

◆ save() [2/2]

void ServerConfig::save ( QFile & file) const

◆ screenExists()

bool ServerConfig::screenExists ( const QString & screenName) const

◆ screens()

const ScreenList & ServerConfig::screens ( ) const
inline

◆ updateServerName()

void ServerConfig::updateServerName ( )

◆ useExternalConfig()

bool ServerConfig::useExternalConfig ( ) const

◆ operator<<

QTextStream & operator<< ( QTextStream & outStream,
const ServerConfig & config )
friend

◆ ServerConfigDialog

friend class ServerConfigDialog
friend

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