mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-06 17:01:35 +01:00
39 lines
772 B
C++
39 lines
772 B
C++
#ifndef SETTINGS_H
|
|
#define SETTINGS_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:
|
|
Ui::settings *ui;
|
|
QSettings *mySettings;
|
|
QHash<QString, QLineEdit*> *configLineEditMap;
|
|
QStringList *configOptionsKeys;
|
|
QStringList *configOptions;
|
|
void saveSetting();
|
|
QLabel *currentConfigCheckDisplay;
|
|
};
|
|
|
|
#endif // SETTINGS_H
|