|
Last change
on this file since 104 was 2, checked in by dmik, 19 years ago |
|
Imported original Psi 0.10 sources from Affinix
|
|
File size:
710 bytes
|
| Line | |
|---|
| 1 | #ifndef PGPTEST_H
|
|---|
| 2 | #define PGPTEST_H
|
|---|
| 3 |
|
|---|
| 4 | #include<qdialog.h>
|
|---|
| 5 | #include<qlabel.h>
|
|---|
| 6 | #include<qlistview.h>
|
|---|
| 7 | #include<qtextedit.h>
|
|---|
| 8 | #include<qpushbutton.h>
|
|---|
| 9 | #include"openpgp.h"
|
|---|
| 10 |
|
|---|
| 11 | class View : public QDialog
|
|---|
| 12 | {
|
|---|
| 13 | Q_OBJECT
|
|---|
| 14 | public:
|
|---|
| 15 | View(OpenPGP::Engine *, QWidget *parent=0);
|
|---|
| 16 | ~View();
|
|---|
| 17 |
|
|---|
| 18 | private slots:
|
|---|
| 19 | void pgp_initFinished(bool ok, const QString &str);
|
|---|
| 20 |
|
|---|
| 21 | void encrypt();
|
|---|
| 22 | void decrypt();
|
|---|
| 23 | void sign();
|
|---|
| 24 | void verify();
|
|---|
| 25 | void pgp_finished(bool);
|
|---|
| 26 | void pgp_needPassphrase();
|
|---|
| 27 | void pgp_keysUpdated();
|
|---|
| 28 |
|
|---|
| 29 | private:
|
|---|
| 30 | QTextEdit *te, *te2;
|
|---|
| 31 | QListView *lv;
|
|---|
| 32 | OpenPGP::Engine *pgp;
|
|---|
| 33 | QPixmap *pix_key;
|
|---|
| 34 | QPushButton *pb_encrypt, *pb_decrypt, *pb_sign, *pb_verify;
|
|---|
| 35 |
|
|---|
| 36 | void enableButtons();
|
|---|
| 37 | void disableButtons();
|
|---|
| 38 |
|
|---|
| 39 | void loadKeys();
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.