| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef CVSJOB_H |
| 22 |
#define CVSJOB_H |
| 23 |
|
| 24 |
#include <QStringList> |
| 25 |
#include <qobject.h> |
| 26 |
|
| 27 |
class QString; |
| 28 |
|
| 29 |
class Q_DECL_EXPORT CvsJob : public QObject |
| 30 |
{ |
| 31 |
Q_OBJECT |
| 32 |
public: |
| 33 |
explicit CvsJob(unsigned jobNum); |
| 34 |
explicit CvsJob(const QString &objId); |
| 35 |
~CvsJob() override; |
| 36 |
|
| 37 |
void clearCvsCommand(); |
| 38 |
|
| 39 |
void setRSH(const QString &rsh); |
| 40 |
void setServer(const QString &server); |
| 41 |
void setDirectory(const QString &directory); |
| 42 |
|
| 43 |
CvsJob &operator<<(const QString &arg); |
| 44 |
CvsJob &operator<<(const char *arg); |
| 45 |
CvsJob &operator<<(const QStringList &args); |
| 46 |
|
| 47 |
QString dbusObjectPath() const; |
| 48 |
public Q_SLOTS: |
| 49 |
bool execute(); |
| 50 |
void cancel(); |
| 51 |
bool isRunning() const; |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
QString cvsCommand() const; |
| 59 |
|
| 60 |
QStringList output() const; |
| 61 |
|
| 62 |
Q_SIGNALS: |
| 63 |
void jobExited(bool normalExit, int status); |
| 64 |
void receivedStdout(const QString &buffer); |
| 65 |
void receivedStderr(const QString &buffer); |
| 66 |
|
| 67 |
private Q_SLOTS: |
| 68 |
void slotProcessFinished(); |
| 69 |
void slotReceivedStdout(); |
| 70 |
void slotReceivedStderr(); |
| 71 |
|
| 72 |
private: |
| 73 |
struct Private; |
| 74 |
Private *d; |
| 75 |
}; |
| 76 |
|
| 77 |
#endif |