~ubuntu-branches/ubuntu/feisty/psi/feisty

« back to all changes in this revision

Viewing changes to cutestuff/pgptest.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-09-14 16:33:49 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050914163349-3zacov4afysz5cw5
Tags: 0.9.3-2ubuntu1
* Sync with debian
* Applied patch to psi.desktop to start psi without gpg-agent use (known
  issue)
* Updated README.Debian

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