1 | /* |
2 | This file is part of KDE. |
3 | |
4 | SPDX-FileCopyrightText: 2010 Dan Leinir Turthra Jensen <admin@leinir.dk> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | #ifndef ATTICA_BUILDSERVICEJOBOUTPUT_H |
9 | #define ATTICA_BUILDSERVICEJOBOUTPUT_H |
10 | |
11 | #include <QList> |
12 | #include <QSharedDataPointer> |
13 | #include <QString> |
14 | |
15 | #include "attica_export.h" |
16 | |
17 | namespace Attica |
18 | { |
19 | |
20 | /** |
21 | * @class BuildServiceJobOutput buildservicejoboutput.h <Attica/BuildServiceJobOutput> |
22 | * |
23 | * Represents the ouput of a build service job. |
24 | */ |
25 | class ATTICA_EXPORT BuildServiceJobOutput |
26 | { |
27 | public: |
28 | typedef QList<BuildServiceJobOutput> List; |
29 | class Parser; |
30 | |
31 | BuildServiceJobOutput(); |
32 | BuildServiceJobOutput(const BuildServiceJobOutput &other); |
33 | BuildServiceJobOutput &operator=(const BuildServiceJobOutput &other); |
34 | ~BuildServiceJobOutput(); |
35 | |
36 | void setOutput(const QString &output); |
37 | QString output() const; |
38 | |
39 | bool isRunning() const; |
40 | bool isCompleted() const; |
41 | bool isFailed() const; |
42 | |
43 | bool isValid() const; |
44 | |
45 | private: |
46 | class Private; |
47 | QSharedDataPointer<Private> d; |
48 | }; |
49 | |
50 | } // namespace Attica |
51 | |
52 | #endif // ATTICA_BUILDSERVICEJOBOUTPUT_H |
53 | |