-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcryptopage.h
More file actions
52 lines (48 loc) · 1.3 KB
/
cryptopage.h
File metadata and controls
52 lines (48 loc) · 1.3 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
49
50
51
52
#ifndef CRYPTOPAGE_H
#define CRYPTOPAGE_H
#include "pcloudwindow.h"
#include "pcloudapp.h"
#include "cryptokeydialog.h"
#include <QObject>
class PCloudWindow;
class CryptoKeyDialog;
class CryptoPage : public QObject
{
Q_OBJECT
friend class CryptoKeyDialog;
public:
explicit CryptoPage(PCloudWindow *w, PCloudApp *a,QObject *parent = 0);
void showEventCrypto();
void initCryptoPage();
int getCurrentCryptoPageIndex();
private:
PCloudApp* app;
PCloudWindow* win;
bool tryTrialClickedFlag;
int pageIndex, passStrenth;
CryptoKeyDialog *requestCryptoKeyDialog;
void setCurrentPageIndex();
void setTrialUI(bool hasSubscriptoin, uint expTime);
void showSetupCryptoError(int setupRes);
void showStartCryptoError(int startRes);
void showMkDirError(int mkdirRes, const char* err);
void showStopCryptoError(int stopRes);
public slots:
void lock();
void unlock();
void openCryptoFldr();
void requestCryptoKey();
void clearSetupUI();
private slots:
void autoResize();
void tryTrial();
void buyCrypto();
void getMoreCryptoInfo();
void setupCrypto();
void manageCryptoFldr();
void setUnlockedFldrUI();
void setLockedFldrUI();
void setProgressBar();
void checkPasswordsMatch();
};
#endif // CRYPTOPAGE_H