~ubuntu-branches/ubuntu/oneiric/psi/oneiric

« back to all changes in this revision

Viewing changes to cutestuff/pgptest.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2006-01-20 00:20:36 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060120002036-7nw6yo6totip0ee5
Tags: 0.10-2
* Added upstream changelog (Closes: Bug#327748)
* Mention --no-gpg and --no-gpg-agent in manpage (Closes: Bug#204416)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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