13 #include <QDesktopServices> 14 #include <QInputDialog> 18 #include <QProgressDialog> 40 explicit ViewPC(QWidget *parent =
nullptr);
43 void on_encryptMode_clicked();
45 void on_decryptMode_clicked();
47 void on_actionJPHS_path_triggered();
49 void on_comboBox_currentIndexChanged(
int index);
51 void on_text_textChanged();
54 void on_fileButton_clicked();
56 void on_startButton_clicked();
58 void on_actionAbout_triggered();
60 void on_actionHelp_triggered();
62 void setupErrorsDict();
64 void alert(QString message,
bool isWarning =
false);
65 void saveData(QByteArray Edata);
66 void saveImage(QImage *image);
67 void setProgress(
int val);
69 void setEncryptMode(
bool encr);
70 void setVersion(QString version);
80 void encrypt(QByteArray data, QImage *image,
int mode, QString key,
int bitsUsed);
88 void inject(QByteArray data, QImage * image,
int mode,
int bitsUsed);
96 void decrypt(QImage * _image, QString key,
int mode);
105 void setJPHSDir(QString dir);
122 QString requestKey();
126 QString inputFileName;
127 QByteArray bytes(
long long n);
128 QString versionString;
129 int selectedMode = 2;
bool progressDialogClosed
progressDialogClosed Flag, if dialog is closed.
The ViewPC class View layer of the app. Controls EncryptDialog and ProgressDialog.
QProgressDialog * dialog
dialog ProgressDialog used.
QMap< QString, QString > errorsDict
errorsDict QMap - Errors dictionary