~ubuntu-branches/ubuntu/maverick/psi/maverick

« back to all changes in this revision

Viewing changes to cutestuff/openpgp/gpgproc/gpgproc.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 GPGPROC_H
2
 
#define GPGPROC_H
3
 
 
4
 
#include<qobject.h>
5
 
 
6
 
class GPGProc : public QObject
7
 
{
8
 
        Q_OBJECT
9
 
public:
10
 
        GPGProc();
11
 
        ~GPGProc();
12
 
 
13
 
        bool start(const QString &bin, const QStringList &args, bool useExtra=true);
14
 
 
15
 
        void writeToStdin(const QByteArray &);
16
 
        void writeToAux(const QByteArray &);
17
 
        void writeToCommand(const QByteArray &);
18
 
 
19
 
        void closeStdin();
20
 
        void closeAux();
21
 
        void closeCommand();
22
 
 
23
 
        QByteArray readStdout();
24
 
        QByteArray readStderr();
25
 
 
26
 
        bool isRunning() const;
27
 
        bool normalExit() const;
28
 
        int exitStatus() const;
29
 
 
30
 
signals:
31
 
        void readyReadStdout();
32
 
        void readyReadStderr();
33
 
        void processExited();
34
 
        void wroteToStdin();
35
 
        void wroteToAux();
36
 
        void wroteToCommand();
37
 
        void statusLine(const QString &);
38
 
 
39
 
private slots:
40
 
        void proc_readyReadStdout();
41
 
        void proc_readyReadStderr();
42
 
        void proc_wroteToStdin();
43
 
        void proc_processExited();
44
 
        void timeout();
45
 
        void sn_activated(int);
46
 
 
47
 
private:
48
 
        class Private;
49
 
        Private *d;
50
 
 
51
 
        void closePipes();
52
 
        void processStatusData(const QByteArray &);
53
 
};
54
 
 
55
 
#endif