| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef CVSLOGINJOB_H |
| 22 |
#define CVSLOGINJOB_H |
| 23 |
|
| 24 |
#include <QObject> |
| 25 |
#include <qbytearray.h> |
| 26 |
#include <qstring.h> |
| 27 |
#include <qstringlist.h> |
| 28 |
|
| 29 |
#include <KDESu/PtyProcess> |
| 30 |
|
| 31 |
class CvsLoginJob : public QObject |
| 32 |
{ |
| 33 |
Q_OBJECT |
| 34 |
|
| 35 |
public: |
| 36 |
explicit CvsLoginJob(unsigned jobNum); |
| 37 |
~CvsLoginJob() override; |
| 38 |
|
| 39 |
void setServer(const QString &server); |
| 40 |
|
| 41 |
void setCvsClient(const QByteArray &cvsClient); |
| 42 |
void setRepository(const QByteArray &repository); |
| 43 |
|
| 44 |
QString dbusObjectPath() const; |
| 45 |
public Q_SLOTS: |
| 46 |
bool execute(); |
| 47 |
QStringList output(); |
| 48 |
|
| 49 |
private: |
| 50 |
KDESu::PtyProcess *m_Proc; |
| 51 |
QString m_Server; |
| 52 |
QString m_Rsh; |
| 53 |
QByteArray m_CvsClient; |
| 54 |
QList<QByteArray> m_Arguments; |
| 55 |
QStringList m_output; |
| 56 |
QString m_dbusObjectPath; |
| 57 |
}; |
| 58 |
|
| 59 |
#endif |