2021-10-08 20:37:32 -07:00
|
|
|
#ifndef ENCRYPTIONMANAGER_H
|
|
|
|
#define ENCRYPTIONMANAGER_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "generaldialog.h"
|
|
|
|
#include "toast.h"
|
2021-10-09 08:07:10 -07:00
|
|
|
#include "hourglassanimationwidget.h"
|
2021-10-10 12:02:20 -07:00
|
|
|
#include "alert.h"
|
2021-10-08 20:37:32 -07:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class encryptionManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
class encryptionManager : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit encryptionManager(QWidget *parent = nullptr);
|
|
|
|
~encryptionManager();
|
2021-10-09 08:07:10 -07:00
|
|
|
bool setupExitWidgetRan = false;
|
2021-10-10 09:53:24 -07:00
|
|
|
int setupPassphraseDialogMode;
|
2021-10-10 12:02:20 -07:00
|
|
|
bool setupMessageBoxRan = false;
|
|
|
|
int passphraseTries;
|
2021-10-08 20:37:32 -07:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_setupContinueBtn_clicked();
|
|
|
|
void on_setupAbortBtn_clicked();
|
|
|
|
void quit_restart();
|
|
|
|
void refreshScreen();
|
|
|
|
void showToast(QString messageToDisplay);
|
|
|
|
void setupEncryptedStorage();
|
|
|
|
void mkEncfsDirs();
|
2021-10-09 08:07:10 -07:00
|
|
|
void on_exitSuccessBtn_clicked();
|
|
|
|
void setupExitWidget(bool exitStatus);
|
2021-10-10 06:54:59 -07:00
|
|
|
void on_failureContinueBtn_clicked();
|
2021-10-10 09:53:24 -07:00
|
|
|
void setupPassphraseDialog();
|
2021-10-10 06:54:59 -07:00
|
|
|
void unlockEncryptedStorage();
|
2021-10-10 12:02:20 -07:00
|
|
|
void setupFailedAuthenticationMessageBox();
|
2021-10-08 20:37:32 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::encryptionManager *ui;
|
|
|
|
generalDialog * generalDialogWindow;
|
|
|
|
toast * toastWindow;
|
2021-10-09 08:07:10 -07:00
|
|
|
hourglassAnimationWidget * hourglassAnimationWidgetWindow;
|
2021-10-10 12:02:20 -07:00
|
|
|
alert * alertWindow;
|
2021-10-08 20:37:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ENCRYPTIONMANAGER_H
|