Deskflow 1.22.0.197
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 (MainWindow &mainWindow, int columns=kDefaultColumns, int rows=kDefaultRows)
 ~ServerConfig () override=default
bool operator== (const ServerConfig &sc) const
const ScreenListscreens () const override
int numColumns () const
int numRows () const
bool hasHeartbeat () const
int heartbeat () const
ServerProtocol protocol () const
bool relativeMouseMoves () const
bool win32KeepForeground () const
bool hasSwitchDelay () const
int switchDelay () const
bool hasSwitchDoubleTap () const
int switchDoubleTap () const
bool switchCorner (int c) const
int switchCornerSize () const
const QList< bool > & switchCorners () const
const HotkeyListhotkeys () const
bool disableLockToScreen () const
bool clipboardSharing () const
size_t clipboardSharingSize () const
bool save (const QString &fileName) const override
bool screenExists (const QString &screenName) const override
void save (QFile &file) const override
bool isFull () const override
void commit ()
int numScreens () const
int autoAddScreen (const QString name)
const QString getServerName () const
void updateServerName ()
const QString configFile () const
bool useExternalConfig () const
void addClient (const QString &clientName)
QString getClientAddress () const
void setClientAddress (const QString &address)
Public Member Functions inherited from deskflow::gui::IServerConfig
virtual ~IServerConfig ()=default

Static Public Member Functions

static size_t defaultClipboardSharingSize ()
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)

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 , None , NumModifiers
}
enum class  SwitchCorner : int8_t {
  TopLeft , TopRight , BottomLeft , BottomRight ,
  NumSwitchCorners
}
enum class  Fix : int8_t {
  CapsLock , NumLock , ScrollLock , XTest ,
  NumFixes
}
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 ( MainWindow & mainWindow,
int columns = kDefaultColumns,
int rows = kDefaultRows )

◆ ~ServerConfig()

ServerConfig::~ServerConfig ( )
overridedefault

Member Function Documentation

◆ addClient()

void ServerConfig::addClient ( const QString & clientName)

◆ autoAddScreen()

int ServerConfig::autoAddScreen ( const QString name)

◆ clipboardSharing()

bool ServerConfig::clipboardSharing ( ) const
inline

◆ clipboardSharingSize()

size_t ServerConfig::clipboardSharingSize ( ) const
inline

◆ commit()

void ServerConfig::commit ( )

◆ configFile()

const QString ServerConfig::configFile ( ) const

◆ defaultClipboardSharingSize()

size_t ServerConfig::defaultClipboardSharingSize ( )
static

◆ disableLockToScreen()

bool ServerConfig::disableLockToScreen ( ) const
inline

◆ getClientAddress()

QString ServerConfig::getClientAddress ( ) const

◆ getServerName()

const QString ServerConfig::getServerName ( ) const

◆ hasHeartbeat()

bool ServerConfig::hasHeartbeat ( ) const
inline

◆ hasSwitchDelay()

bool ServerConfig::hasSwitchDelay ( ) const
inline

◆ hasSwitchDoubleTap()

bool ServerConfig::hasSwitchDoubleTap ( ) const
inline

◆ heartbeat()

int ServerConfig::heartbeat ( ) const
inline

◆ hotkeys()

const HotkeyList & ServerConfig::hotkeys ( ) const
inline

◆ isFull()

bool ServerConfig::isFull ( ) const
overridevirtual

◆ numColumns()

int ServerConfig::numColumns ( ) const
inline

◆ numRows()

int ServerConfig::numRows ( ) const
inline

◆ numScreens()

int ServerConfig::numScreens ( ) const

◆ operator==()

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

◆ protocol()

ServerProtocol ServerConfig::protocol ( ) const
inline

◆ relativeMouseMoves()

bool ServerConfig::relativeMouseMoves ( ) const
inline

◆ save() [1/2]

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

◆ save() [2/2]

void ServerConfig::save ( QFile & file) const
overridevirtual

◆ screenExists()

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

◆ screens()

const ScreenList & ServerConfig::screens ( ) const
inlineoverridevirtual

◆ setClientAddress()

void ServerConfig::setClientAddress ( const QString & address)

◆ switchCorner()

bool ServerConfig::switchCorner ( int c) const
inline

◆ switchCorners()

const QList< bool > & ServerConfig::switchCorners ( ) const
inline

◆ switchCornerSize()

int ServerConfig::switchCornerSize ( ) const
inline

◆ switchDelay()

int ServerConfig::switchDelay ( ) const
inline

◆ switchDoubleTap()

int ServerConfig::switchDoubleTap ( ) const
inline

◆ updateServerName()

void ServerConfig::updateServerName ( )

◆ useExternalConfig()

bool ServerConfig::useExternalConfig ( ) const

◆ win32KeepForeground()

bool ServerConfig::win32KeepForeground ( ) const
inline

◆ 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: