|
Last change
on this file since 5 was 2, checked in by dmik, 19 years ago |
|
Imported original Psi 0.10 sources from Affinix
|
|
File size:
998 bytes
|
| Line | |
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.