~ubuntu-branches/ubuntu/edgy/psi/edgy

« back to all changes in this revision

Viewing changes to cutestuff/openpgp/gpgproc/gpgproc.h

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-03-28 11:11:02 UTC
  • mfrom: (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20060328111102-v1diqpbwqr4yijoy
Tags: 0.10-2build1
Manual sync from Debian. No Ubuntu-specific changes.

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