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 BuildServiceJob buildservicejob.h <Attica/BuildServiceJob>
25 *
26 * Represents a build service job.
27 */
28class ATTICA_EXPORT BuildServiceJob
29{
30public:
31 typedef QList<BuildServiceJob> List;
32 class Parser;
33
34 BuildServiceJob();
35 BuildServiceJob(const BuildServiceJob &other);
36 BuildServiceJob &operator=(const BuildServiceJob &other);
37 ~BuildServiceJob();
38
39 void setId(const QString &);
40 QString id() const;
41
42 void setName(const QString &);
43 QString name() const;
44
45 void setUrl(const QString &);
46 QString url() const;
47
48 void setProjectId(const QString &);
49 QString projectId() const;
50
51 void setBuildServiceId(const QString &);
52 QString buildServiceId() const;
53
54 void setMessage(const QString &);
55 QString message() const;
56
57 void setTarget(const QString &);
58 QString target() const;
59
60 void setProgress(const qreal);
61 qreal progress() const;
62
63 void setStatus(const int);
64 bool isRunning() const;
65 bool isCompleted() const;
66 bool isFailed() const;
67
68 bool isValid() const;
69
70private:
71 class Private;
72 QSharedDataPointer<Private> d;
73};
74
75}
76
77#endif
78

source code of attica/src/buildservicejob.h