diff options
Diffstat (limited to 'keygenthread.h')
-rw-r--r-- | keygenthread.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/keygenthread.h b/keygenthread.h new file mode 100644 index 0000000..b9196f5 --- /dev/null +++ b/keygenthread.h @@ -0,0 +1,29 @@ +#include <qthread.h> +#include <iostream> +#include <string> +#include <cmath> +#include <QtGui> + +class QMessageBox; + +#include "context.h" + +class KeyGenThread : public QThread { + Q_OBJECT + +public: + KeyGenThread(QString keyGenParams, GpgME::Context *ctx); + +signals: + void keyGenerated(); + +private: + QString keyGenParams; + GpgME::Context *ctx; + bool abort; + QMutex mutex; + +protected: + void run(); + +}; |