-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfiguration.h
54 lines (45 loc) · 1.03 KB
/
configuration.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
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include "simplecrypt.h"
#include <QDialog>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QMessageBox>
#include <QSettings>
#include <QStandardPaths>
#include <QTextStream>
namespace Ui
{
class configuration;
}
class configuration : public QDialog
{
Q_OBJECT
public:
explicit configuration(QWidget *parent = nullptr, const QString &filename = QString("picta-dl-gui.conf"));
~configuration();
private slots:
void on_BntCancel_clicked();
void on_BntSave_clicked();
private:
Ui::configuration *ui;
QString proxy;
QString port;
QString proxy_user;
QString proxy_pass;
QString picta_user;
QString picta_pass;
SimpleCrypt crypto_pass;
quint64 crytokey = 1596880491598749;
QString defaultDownloadpath;
QString pictaGuiConfigFile;
QDir roamingDirPath;
bool systray;
bool notification;
bool envpictadl;
bool envffmpeg;
void loadConfigFile();
void saveConfigFile();
};
#endif // CONFIGURATION_H