-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsettingspage.h
More file actions
48 lines (44 loc) · 1.1 KB
/
settingspage.h
File metadata and controls
48 lines (44 loc) · 1.1 KB
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
#ifndef SETTINGSPAGE_H
#define SETTINGSPAGE_H
#include "pcloudwindow.h"
#include "pcloudapp.h"
#include <QObject>
#include <QString>
#include <QSettings>
#include <QProcess>
class PCloudWindow;
class SettingsPage: public QObject
{
Q_OBJECT
public:
friend class PCloudWindow;
explicit SettingsPage(PCloudWindow *w, PCloudApp *a, QObject *parent = 0);
void showEvent(); // custom
void initPublic();
private:
PCloudWindow *win;
PCloudApp *app;
bool p2p, autoaskCryptoKey, lockCryptoFldr;
int upldSpeed, upldSpeedNew, dwnldSpeed, dwnldSpeedNew;
QString initFlrd;
QString initCache;
quint64 cacheSize, minLocalSpace;
bool contextMenu;
void initSettingsPage();
void initMain();
void initSpeed();
void initSpace();
void initCrypto();
void clearSpeedEditLines();
void showResetError(int resetRes);
qint32 getCacheSize();
public slots:
void saveSettings();
void setSaveBtnEnable();
void cancelSettings();
void setNewDwnldSpeed();
void setNewUpldSpeed();
private slots:
void resetCryptoKey();
};
#endif // SETTINGSPAGE_H