~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2005-01-10 17:41:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110174143-ltocv5zapl6blf5d
Tags: 0.9.3-1
* New upstream release
* Cleaned up debian/rules (some things are done by upstream Makefiles now)
* Fixed some lintian warnings:
  - removed executable bit from some .png files
  - moved psi.desktop to /usr/share/applications
* Updated menu files

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