Debian Codegraph @

cvsservice/cvsjob.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2002-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 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: // dbus function
49 bool execute();
50 void cancel();
51 bool isRunning() const;
52
53 /**
54 * Current cvs command.
55 *
56 * @return The current cvs command. Can be null if not set.
57 */
58 QString cvsCommand() const;
59
60 QStringList output() const;
61
62 Q_SIGNALS: // dbus signal
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