66 return m_HasHeartbeat;
78 return m_RelativeMouseMoves;
82 return m_Win32KeepForeground;
86 return m_HasSwitchDelay;
94 return m_HasSwitchDoubleTap;
98 return m_SwitchDoubleTap;
102 return m_SwitchCorners[c];
106 return m_SwitchCornerSize;
110 return m_SwitchCorners;
118 return m_DefaultLockToScreenState;
122 return m_DisableLockToScreen;
126 return m_ClipboardSharing;
130 return m_ClipboardSharingSize;
137 bool save(
const QString &fileName)
const override;
138 bool screenExists(
const QString &screenName)
const override;
139 void save(QFile &file)
const override;
140 bool isFull()
const override;
151 void addClient(
const QString &clientName);
161 void setScreens(
const ScreenList &
screens)
165 void addScreen(
const Screen &screen)
167 m_Screens.append(screen);
169 void setNumColumns(
int n)
173 void setNumRows(
int n)
177 void haveHeartbeat(
bool on)
181 void setHeartbeat(
int val)
189 void setRelativeMouseMoves(
bool on)
191 m_RelativeMouseMoves = on;
193 void setWin32KeepForeground(
bool on)
195 m_Win32KeepForeground = on;
197 void haveSwitchDelay(
bool on)
199 m_HasSwitchDelay = on;
201 void setSwitchDelay(
int val)
205 void haveSwitchDoubleTap(
bool on)
207 m_HasSwitchDoubleTap = on;
209 void setSwitchDoubleTap(
int val)
211 m_SwitchDoubleTap = val;
213 void setSwitchCorner(
int c,
bool on)
215 m_SwitchCorners[c] = on;
217 void setSwitchCornerSize(
int val)
219 m_SwitchCornerSize = val;
221 void setDefaultLockToScreenState(
bool on)
223 m_DefaultLockToScreenState = on;
225 void setDisableLockToScreen(
bool on)
227 m_DisableLockToScreen = on;
229 void setClipboardSharing(
bool on)
231 m_ClipboardSharing = on;
233 void setConfigFile(
const QString &
configFile)
const;
235 size_t setClipboardSharingSize(
size_t size);
238 return m_SwitchCorners;
244 int adjacentScreenIndex(
int idx,
int deltaColumn,
int deltaRow)
const;
245 bool findScreenName(
const QString &
name,
int &index);
246 bool fixNoServer(
const QString &
name,
int &index);
249 bool m_HasHeartbeat =
false;
252 bool m_RelativeMouseMoves =
false;
253 bool m_Win32KeepForeground =
false;
254 bool m_HasSwitchDelay =
false;
255 int m_SwitchDelay = 0;
256 bool m_HasSwitchDoubleTap =
false;
257 int m_SwitchDoubleTap = 0;
258 int m_SwitchCornerSize = 0;
259 bool m_DefaultLockToScreenState =
false;
260 bool m_DisableLockToScreen =
false;
261 bool m_ClipboardSharing =
true;
262 QString m_ClientAddress =
"";
263 QList<bool> m_SwitchCorners;
266 ScreenList m_Screens;
static const struct sockaddr FAR * name
Definition ArchNetworkWinsock.cpp:28
QList< Hotkey > HotkeyList
Definition Hotkey.h:68
NetworkProtocol
Definition NetworkProtocol.h:14
@ Barrier
Definition NetworkProtocol.h:17
QTextStream & operator<<(QTextStream &outStream, const ServerConfig &config)
Definition ServerConfig.cpp:221
const auto kDefaultRows
Definition ServerConfig.h:19
const auto kDefaultColumns
Definition ServerConfig.h:18
Definition QSettingsProxy.h:14
Definition ScreenList.h:12
Definition ServerConfigDialog.h:23
Definition ServerConfig.h:35
bool hasHeartbeat() const
Definition ServerConfig.h:64
size_t clipboardSharingSize() const
Definition ServerConfig.h:128
bool useExternalConfig() const
Definition ServerConfig.cpp:337
const QList< bool > & switchCorners() const
Definition ServerConfig.h:108
bool win32KeepForeground() const
Definition ServerConfig.h:80
int switchCornerSize() const
Definition ServerConfig.h:104
const HotkeyList & hotkeys() const
Definition ServerConfig.h:112
const ScreenList & screens() const override
Definition ServerConfig.h:48
bool defaultLockToScreenState() const
Definition ServerConfig.h:116
int switchDelay() const
Definition ServerConfig.h:88
friend class ServerConfigDialog
Definition ServerConfig.h:36
static size_t defaultClipboardSharingSize()
Definition ServerConfig.cpp:420
bool operator==(const ServerConfig &sc) const
Definition ServerConfig.cpp:54
friend QTextStream & operator<<(QTextStream &outStream, const ServerConfig &config)
Definition ServerConfig.cpp:221
bool save(const QString &fileName) const override
Definition ServerConfig.cpp:42
int numScreens() const
Definition ServerConfig.cpp:305
NetworkProtocol protocol() const
Definition ServerConfig.h:72
bool relativeMouseMoves() const
Definition ServerConfig.h:76
void updateServerName()
Definition ServerConfig.cpp:322
bool disableLockToScreen() const
Definition ServerConfig.h:120
bool hasSwitchDelay() const
Definition ServerConfig.h:84
bool hasSwitchDoubleTap() const
Definition ServerConfig.h:92
bool isFull() const override
Definition ServerConfig.cpp:342
int numColumns() const
Definition ServerConfig.h:56
ServerConfig(int columns=kDefaultColumns, int rows=kDefaultRows)
Definition ServerConfig.cpp:37
~ServerConfig() override=default
bool switchCorner(int c) const
Definition ServerConfig.h:100
int switchDoubleTap() const
Definition ServerConfig.h:96
bool screenExists(const QString &screenName) const override
Definition ServerConfig.cpp:356
void addClient(const QString &clientName)
Definition ServerConfig.cpp:370
int heartbeat() const
Definition ServerConfig.h:68
bool clipboardSharing() const
Definition ServerConfig.h:124
QString getServerName() const
Definition ServerConfig.cpp:317
QString configFile() const
Definition ServerConfig.cpp:332
void commit()
Definition ServerConfig.cpp:99
int numRows() const
Definition ServerConfig.h:60
Definition IServerConfig.h:18
Definition IServerConfig.h:14
const auto kDefaultProtocol
Definition ServerConfig.h:30