1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Sebastian Kügler <sebas@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8#ifndef ATTICA_BUILDSERVICEJOB_H
9#define ATTICA_BUILDSERVICEJOB_H
10
11#include <QDate>
12#include <QList>
13#include <QMap>
14#include <QSharedDataPointer>
15#include <QStringList>
16#include <QUrl>
17
18#include "attica_export.h"
19
20namespace Attica
21{
22
23/*!
24 * \class Attica::BuildServiceJob
25 * \inheaderfile Attica/BuildServiceJob
26 * \inmodule Attica
27 *
28 * \brief Represents a build service job.
29 */
30class ATTICA_EXPORT BuildServiceJob
31{
32public:
33 /*!
34 *
35 */
36 typedef QList<BuildServiceJob> List;
37 class Parser;
38
39 /*!
40 *
41 */
42 BuildServiceJob();
43 BuildServiceJob(const BuildServiceJob &other);
44 BuildServiceJob &operator=(const BuildServiceJob &other);
45 ~BuildServiceJob();
46
47 /*!
48 *
49 */
50 void setId(const QString &);
51
52 /*!
53 *
54 */
55 QString id() const;
56
57 /*!
58 *
59 */
60 void setName(const QString &);
61
62 /*!
63 *
64 */
65 QString name() const;
66
67 /*!
68 *
69 */
70 void setUrl(const QString &);
71
72 /*!
73 *
74 */
75 QString url() const;
76
77 /*!
78 *
79 */
80 void setProjectId(const QString &);
81
82 /*!
83 *
84 */
85 QString projectId() const;
86
87 /*!
88 *
89 */
90 void setBuildServiceId(const QString &);
91
92 /*!
93 *
94 */
95 QString buildServiceId() const;
96
97 /*!
98 *
99 */
100 void setMessage(const QString &);
101
102 /*!
103 *
104 */
105 QString message() const;
106
107 /*!
108 *
109 */
110 void setTarget(const QString &);
111
112 /*!
113 *
114 */
115 QString target() const;
116
117 /*!
118 *
119 */
120 void setProgress(const qreal);
121
122 /*!
123 *
124 */
125 qreal progress() const;
126
127 /*!
128 *
129 */
130 void setStatus(const int);
131
132 /*!
133 *
134 */
135 bool isRunning() const;
136
137 /*!
138 *
139 */
140 bool isCompleted() const;
141
142 /*!
143 *
144 */
145 bool isFailed() const;
146
147 /*!
148 *
149 */
150 bool isValid() const;
151
152private:
153 class Private;
154 QSharedDataPointer<Private> d;
155};
156
157}
158
159#endif
160

source code of attica/src/buildservicejob.h