mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
54 lines
1.4 KiB
C++
54 lines
1.4 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:
|
|
QString className = this->metaObject()->className();
|
|
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();
|
|
void repackEncryptedStorage();
|
|
|
|
private:
|
|
Ui::encryptionManager *ui;
|
|
generalDialog * generalDialogWindow;
|
|
toast * toastWindow;
|
|
hourglassAnimationWidget * hourglassAnimationWidgetWindow;
|
|
alert * alertWindow;
|
|
usbms_splash *usbmsWindow;
|
|
};
|
|
|
|
#endif // ENCRYPTIONMANAGER_H
|