67 return m_coreProcess.mode();
72 return m_serverConfig;
79 bool eventFilter(QObject *obj, QEvent *event)
override;
86 void toggleLogVisible(
bool visible);
88 void settingsChanged(
const QString &key = QString());
89 void serverConfigSaving();
94 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
95 void serverConnectionConfigureClient(
const QString &clientName);
98 void openAboutDialog();
99 void openGetNewVersionUrl()
const;
103 bool saveServerConfig();
106 void showMyFingerprint();
107 void updateSecurityIcon(
bool visible);
108 void updateNetworkInfo();
110 void coreModeToggled(
bool checked);
111 void updateModeControls();
112 void updateModeControlLabels();
113 std::unique_ptr<Ui::MainWindow> ui;
115 void createMenuBar();
116 void setupTrayIcon();
119 void handleUnrecognisedClient(
const QString &clientName);
121 void handlePeerFingerprint(
const QString &fingerprint);
122 void handleMissingKeyboardLayouts(
const QString &layouts);
123 void closeEvent(QCloseEvent *event)
override;
124 bool maybeHideToTray();
125 void secureSocket(
bool secureSocket);
127 void handleLogLine(
const QString &line);
128 void updateFingerprintButton();
129 void updateScreenName();
130 void saveSettings()
const;
131 void showConfigureServer(
const QString &message);
132 void showConfigureClient();
133 void restoreWindow();
134 void setupControls();
135 void showFirstConnectedMessage();
137 void showAndActivate();
138 void showHostNameEditor();
140 void daemonIpcClientConnectionFailed();
141 void toggleCanRunCore(
bool enableButtons);
142 void remoteHostChanged(
const QString &newRemoteHost);
143 void updateIpLabel(
const QStringList &addresses);
144 void updateTimeoutDelay(
int newDelay);
145 void setHelpFilePath();
146 void showHelpViewer()
const;
148 bool canRunCore()
const;
154 QString trustedFingerprintDatabase()
const;
160 bool generateCertificate();
164 void serverClientsChanged(
const QStringList &clients);
166 inline static const auto m_guiSocketName = QStringLiteral(
"deskflow-gui");
167 inline static const auto m_nameRegEx = QRegularExpression(QStringLiteral(
"^[\\w\\-_\\.]{0,255}$"));
170 bool m_secureSocket =
false;
171 bool m_saveOnExit =
true;
172 bool m_clientErrorVisible =
false;
175 QSet<QString> m_ignoredClients;
176 bool m_newClientPromptShowing =
false;
177 bool m_serverConfigDialogVisible =
false;
178 QSize m_expandedSize = QSize();
179 QStringList m_checkedClients;
180 QStringList m_checkedServers;
181 QSystemTrayIcon *m_trayIcon =
nullptr;
182 QLocalServer *m_guiDupeChecker =
nullptr;
189 QMenu *m_menuFile =
nullptr;
190 QMenu *m_menuEdit =
nullptr;
191 QMenu *m_menuView =
nullptr;
192 QMenu *m_menuHelp =
nullptr;
195 QAction *m_actionAbout =
nullptr;
196 QAction *m_actionMinimize =
nullptr;
197 QAction *m_actionQuit =
nullptr;
198 QAction *m_actionTrayQuit =
nullptr;
199 QAction *m_actionRestore =
nullptr;
200 QAction *m_actionSettings =
nullptr;
201 QAction *m_actionStartCore =
nullptr;
202 QAction *m_actionRestartCore =
nullptr;
203 QAction *m_actionStopCore =
nullptr;
204 QAction *m_actionShowHelp =
nullptr;
207 NetworkMonitor *m_networkMonitor =
nullptr;
208 QString m_currentIpAddress;
211 QStringList m_serverStartIPs;
212 QString m_serverStartSuggestedIP;
Definition MainWindow.h:45
MainWindow()
Definition MainWindow.cpp:60
void hide()
Definition MainWindow.cpp:1008
void changeEvent(QEvent *e) override
Definition MainWindow.cpp:1019
CoreMode coreMode() const
Definition MainWindow.h:65
ServerConfig & serverConfig()
Definition MainWindow.h:70
void open()
Definition MainWindow.cpp:623
LogLevel
Definition MainWindow.h:56
bool eventFilter(QObject *obj, QEvent *event) override
Definition MainWindow.cpp:1036