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 Attica::BuildServiceJobOutput |
22 | * \inmodule Attica/BuildServiceJobOutput |
23 | * \inmodule Attica |
24 | * |
25 | * \brief Represents the ouput of a build service job. |
26 | */ |
27 | class ATTICA_EXPORT BuildServiceJobOutput |
28 | { |
29 | public: |
30 | /*! |
31 | * |
32 | */ |
33 | typedef QList<BuildServiceJobOutput> List; |
34 | class Parser; |
35 | |
36 | /*! |
37 | * |
38 | */ |
39 | BuildServiceJobOutput(); |
40 | BuildServiceJobOutput(const BuildServiceJobOutput &other); |
41 | BuildServiceJobOutput &operator=(const BuildServiceJobOutput &other); |
42 | ~BuildServiceJobOutput(); |
43 | |
44 | /*! |
45 | * |
46 | */ |
47 | void setOutput(const QString &output); |
48 | |
49 | /*! |
50 | * |
51 | */ |
52 | QString output() const; |
53 | |
54 | /*! |
55 | * |
56 | */ |
57 | bool isRunning() const; |
58 | |
59 | /*! |
60 | * |
61 | */ |
62 | bool isCompleted() const; |
63 | |
64 | /*! |
65 | * |
66 | */ |
67 | bool isFailed() const; |
68 | |
69 | /*! |
70 | * |
71 | */ |
72 | bool isValid() const; |
73 | |
74 | private: |
75 | class Private; |
76 | QSharedDataPointer<Private> d; |
77 | }; |
78 | |
79 | } // namespace Attica |
80 | |
81 | #endif // ATTICA_BUILDSERVICEJOBOUTPUT_H |
82 | |