mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
#ifndef ENCRYPTIONMANAGER_H
|
|
#define ENCRYPTIONMANAGER_H
|
|
|
|
#include <QWidget>
|
|
#include "generaldialog.h"
|
|
#include "toast.h"
|
|
#include "hourglassanimationwidget.h"
|
|
#include "alert.h"
|
|
|
|
namespace Ui {
|
|
class encryptionManager;
|
|
}
|
|
|
|
class encryptionManager : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit encryptionManager(QWidget *parent = nullptr);
|
|
~encryptionManager();
|
|
bool setupExitWidgetRan = false;
|
|
int setupPassphraseDialogMode;
|
|
bool setupMessageBoxRan = false;
|
|
int passphraseTries;
|
|
|
|
private slots:
|
|
void on_setupContinueBtn_clicked();
|
|
void on_setupAbortBtn_clicked();
|
|
void quit_restart();
|
|
void refreshScreen();
|
|
void showToast(QString messageToDisplay);
|
|
void setupEncryptedStorage();
|
|
void mkEncfsDirs();
|
|
void on_exitSuccessBtn_clicked();
|
|
void setupExitWidget(bool exitStatus);
|
|
void on_failureContinueBtn_clicked();
|
|
void setupPassphraseDialog();
|
|
void unlockEncryptedStorage();
|
|
void setupFailedAuthenticationMessageBox();
|
|
void on_acceptBtn_clicked();
|
|
void on_usbmsBtn_clicked();
|
|
|
|
private:
|
|
Ui::encryptionManager *ui;
|
|
generalDialog * generalDialogWindow;
|
|
toast * toastWindow;
|
|
hourglassAnimationWidget * hourglassAnimationWidgetWindow;
|
|
alert * alertWindow;
|
|
usbms_splash *usbmsWindow;
|
|
};
|
|
|
|
#endif // ENCRYPTIONMANAGER_H
|