Debian Codegraph @

cvsservice/cvsloginjob.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2003 Christian Loose <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
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