aboutsummaryrefslogtreecommitdiffstats
path: root/keygenthread.h
blob: b9196f5489099e3b84e9f710167cdc25e208b6a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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();

};