summaryrefslogtreecommitdiffstats
path: root/pica-client/dialogs/registeraccountdialog.h
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2012-07-22 12:00:06 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2012-07-22 12:00:06 +0000
commitc7323aafac1769cb809da3f1d7ddd05383ace641 (patch)
treeddd736fbbe600d6eacc1f324d98a3c3064244b89 /pica-client/dialogs/registeraccountdialog.h
parentf190872a4ab94577d1d9db343c0ca7643f40eae6 (diff)
downloadpica-pica-c7323aafac1769cb809da3f1d7ddd05383ace641.tar.gz
pica-pica-c7323aafac1769cb809da3f1d7ddd05383ace641.zip
1) Automatic account registration implemented;
2) All openssl command line tools invocations moved to new class OpenSSLTool git-svn-id: svn://localhost/project_picapica/trunk@150 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/dialogs/registeraccountdialog.h')
-rw-r--r--pica-client/dialogs/registeraccountdialog.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/pica-client/dialogs/registeraccountdialog.h b/pica-client/dialogs/registeraccountdialog.h
index e1a8fd5..696f1ee 100644
--- a/pica-client/dialogs/registeraccountdialog.h
+++ b/pica-client/dialogs/registeraccountdialog.h
@@ -5,6 +5,10 @@
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
+#include <QRegExpValidator>
+#include <QtNetwork>
+#include <QTcpSocket>
+#include "openssltool.h"
class RegisterAccountDialog : public QDialog
{
@@ -20,11 +24,23 @@ private:
QLineEdit *nickname;
QLabel *lbStatus;
+ QRegExpValidator *vld;
+ OpenSSLTool ost;
+ QTcpSocket sock;
+ QByteArray cert_buf;
+
+ QString CertFilename_;
+ QString PkeyFilename_;
signals:
public slots:
void OK();
void Register();
+
+ void stageGenCSR(int,QProcess::ExitStatus);
+ void stageConnect(int,QProcess::ExitStatus);
+ void stageGetCert();
+ void stageReadCert();
};
#endif // REGISTERACCOUNTDIALOG_H