mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-21 21:19:15 +01:00
52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
#ifndef NGDIALOG_H
|
|
#define NGDIALOG_H
|
|
|
|
#include "../WiiQt/includes.h"
|
|
#include "../WiiQt/tools.h"
|
|
|
|
namespace Ui {
|
|
class NgDialog;
|
|
}
|
|
|
|
class NgDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit NgDialog( QWidget *parent = 0 );
|
|
~NgDialog();
|
|
|
|
quint32 ngID;
|
|
quint32 ngKeyID;
|
|
QByteArray ngSig;
|
|
QByteArray ngMac;
|
|
QByteArray ngPriv;
|
|
|
|
private:
|
|
Ui::NgDialog *ui;
|
|
|
|
QRegularExpression hex;
|
|
|
|
bool ValidNGID();
|
|
bool ValidNGKeyID();
|
|
bool ValidNGSig();
|
|
bool ValidNGMac();
|
|
bool ValidNGPriv();
|
|
|
|
private slots:
|
|
void on_pushButton_cancel_clicked();
|
|
void on_pushButton_ok_clicked();
|
|
void on_pushButton_existingSave_clicked();
|
|
void on_pushButton_keys_clicked();
|
|
void on_lineEdit_ngPriv_textChanged(QString );
|
|
void on_lineEdit_ngMac_textChanged(QString );
|
|
void on_lineEdit_ngKeyId_textChanged(QString );
|
|
void on_lineEdit_ngSig_textChanged(QString );
|
|
void on_lineEdit_ngID_textChanged(QString );
|
|
|
|
public slots:
|
|
int exec();
|
|
};
|
|
|
|
#endif // NGDIALOG_H
|