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_DisableLockToScreen;
122 return m_ClipboardSharing;
126 return m_ClipboardSharingSize;
133 bool save(
const QString &fileName)
const override;
134 bool screenExists(
const QString &screenName)
const override;
135 void save(QFile &file)
const override;
136 bool isFull()
const override;
147 void addClient(
const QString &clientName);
157 void setScreens(
const ScreenList &
screens)
161 void addScreen(
const Screen &screen)
163 m_Screens.append(screen);
165 void setNumColumns(
int n)
169 void setNumRows(
int n)
173 void haveHeartbeat(
bool on)
177 void setHeartbeat(
int val)
185 void setRelativeMouseMoves(
bool on)
187 m_RelativeMouseMoves = on;
189 void setWin32KeepForeground(
bool on)
191 m_Win32KeepForeground = on;
193 void haveSwitchDelay(
bool on)
195 m_HasSwitchDelay = on;
197 void setSwitchDelay(
int val)
201 void haveSwitchDoubleTap(
bool on)
203 m_HasSwitchDoubleTap = on;
205 void setSwitchDoubleTap(
int val)
207 m_SwitchDoubleTap = val;
209 void setSwitchCorner(
int c,
bool on)
211 m_SwitchCorners[c] = on;
213 void setSwitchCornerSize(
int val)
215 m_SwitchCornerSize = val;
217 void setDisableLockToScreen(
bool on)
219 m_DisableLockToScreen = on;
221 void setClipboardSharing(
bool on)
223 m_ClipboardSharing = on;
225 void setConfigFile(
const QString &
configFile)
const;
227 size_t setClipboardSharingSize(
size_t size);
230 return m_SwitchCorners;
236 int adjacentScreenIndex(
int idx,
int deltaColumn,
int deltaRow)
const;
237 bool findScreenName(
const QString &
name,
int &index);
238 bool fixNoServer(
const QString &
name,
int &index);
241 bool m_HasHeartbeat =
false;
244 bool m_RelativeMouseMoves =
false;
245 bool m_Win32KeepForeground =
false;
246 bool m_HasSwitchDelay =
false;
247 int m_SwitchDelay = 0;
248 bool m_HasSwitchDoubleTap =
false;
249 int m_SwitchDoubleTap = 0;
250 int m_SwitchCornerSize = 0;
251 bool m_DisableLockToScreen =
false;
252 bool m_ClipboardSharing =
true;
253 QString m_ClientAddress =
"";
254 QList<bool> m_SwitchCorners;
257 ScreenList m_Screens;
static const struct sockaddr FAR * name
Definition ArchNetworkWinsock.cpp:28
QList< Hotkey > HotkeyList
Definition Hotkey.h:68
NetworkProtocol
Definition NetworkProtocol.h:10
@ Barrier
Definition NetworkProtocol.h:12
QTextStream & operator<<(QTextStream &outStream, const ServerConfig &config)
Definition ServerConfig.cpp:218
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:124
bool useExternalConfig() const
Definition ServerConfig.cpp:338
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
int switchDelay() const
Definition ServerConfig.h:88
friend class ServerConfigDialog
Definition ServerConfig.h:36
static size_t defaultClipboardSharingSize()
Definition ServerConfig.cpp:421
bool operator==(const ServerConfig &sc) const
Definition ServerConfig.cpp:54
friend QTextStream & operator<<(QTextStream &outStream, const ServerConfig &config)
Definition ServerConfig.cpp:218
bool save(const QString &fileName) const override
Definition ServerConfig.cpp:42
int numScreens() const
Definition ServerConfig.cpp:306
NetworkProtocol protocol() const
Definition ServerConfig.h:72
bool relativeMouseMoves() const
Definition ServerConfig.h:76
void updateServerName()
Definition ServerConfig.cpp:323
bool disableLockToScreen() const
Definition ServerConfig.h:116
bool hasSwitchDelay() const
Definition ServerConfig.h:84
bool hasSwitchDoubleTap() const
Definition ServerConfig.h:92
bool isFull() const override
Definition ServerConfig.cpp:343
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:357
void addClient(const QString &clientName)
Definition ServerConfig.cpp:371
int heartbeat() const
Definition ServerConfig.h:68
bool clipboardSharing() const
Definition ServerConfig.h:120
QString getServerName() const
Definition ServerConfig.cpp:318
QString configFile() const
Definition ServerConfig.cpp:333
void commit()
Definition ServerConfig.cpp:98
int numRows() const
Definition ServerConfig.h:60
Definition IServerConfig.h:18
Definition IServerConfig.h:14
const auto kDefaultProtocol
Definition ServerConfig.h:30