14 QThread * modelThread =
new QThread();
15 model->moveToThread(modelThread);
22 connect(view, SIGNAL(encrypt(QByteArray, QImage*,
int, QString,
int)), model, SLOT(encrypt(QByteArray, QImage*,
int, QString,
int)));
23 connect(view, SIGNAL(decrypt(QImage*,QString,
int)), model, SLOT(decrypt(QImage*, QString,
int)));
24 connect(view, SIGNAL(abortModel()),
this, SLOT(
abortCircuit()));
27 connect(model, SIGNAL(alertView(QString,
bool)), view, SLOT(alert(QString,
bool)));
28 connect(model, SIGNAL(saveData(QByteArray)), view, SLOT(saveData(QByteArray)));
29 connect(model, SIGNAL(saveImage(QImage*)), view, SLOT(saveImage(QImage*)));
30 connect(model, SIGNAL(setProgress(
int)), view, SLOT(setProgress(
int)));
QString versionString
versionString Version as string
void setJPHSDir(QString dir)
ControllerPC::setJPHSDir Sets JPHS default dir.
The ModelPC class Model Layer of the app. Main class that does the work of PictureCrypt logic Control...
void abortCircuit()
ControllerPC::abortCircuit Slot to be called when ProgressDialog in ViewPC is closed. It flags ModelPC to stop.
QString defaultJPHSDir
defaultJPHSDir Default JPHS directory
ControllerPC()
ControllerPC::ControllerPC Constructor of controller Constructor runs auto-test for ModelPC...
The ViewPC class View layer of the app. Controls EncryptDialog and ProgressDialog.
bool success
success Flag that true by default, but in case of error or cancelling of ProgressDialog it turns to f...
void setVersion(QString version)
ViewPC::setVersion Set the version of the app from ControllerPC.