-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
41 lines (34 loc) · 829 Bytes
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SETTINGS_H
#define SETTINGS_H
#include "serverconnection.h"
#include <QMainWindow>
#include <QLineEdit>
#include <QSettings>
#include <QNetworkReply>
#include <QLabel>
namespace Ui {
class settings;
}
class Settings : public QMainWindow
{
Q_OBJECT
public:
explicit Settings(QWidget *parent = nullptr);
~Settings();
void selectSettings(QSettings *selectedSettings);
private slots:
void okClose();
void cancleClose();
void checkConfig();
void handleTestConnectionResult(QNetworkReply *reply);
private:
ServerConnection *sc;
Ui::settings *ui;
QSettings *mySettings;
QHash<QString, QLineEdit*> *configLineEditMap;
QStringList *configOptionsKeys;
QStringList *configOptions;
void saveSetting();
QLabel *currentConfigCheckDisplay;
};
#endif // SETTINGS_H