Attica

buildservicejob.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2010 Sebastian K├╝gler <[email protected]>
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 <QtCore/QDate>
12 #include <QtCore/QList>
13 #include <QtCore/QMap>
14 #include <QtCore/QSharedDataPointer>
15 #include <QtCore/QStringList>
16 #include <QtCore/QUrl>
17 
18 #include "attica_export.h"
19 
20 namespace Attica
21 {
22 
23 class ATTICA_EXPORT BuildServiceJob
24 {
25 public:
26  typedef QList<BuildServiceJob> List;
27  class Parser;
28 
29  BuildServiceJob();
30  BuildServiceJob(const BuildServiceJob &other);
31  BuildServiceJob &operator=(const BuildServiceJob &other);
32  ~BuildServiceJob();
33 
34  void setId(const QString &);
35  QString id() const;
36 
37  void setName(const QString &);
38  QString name() const;
39 
40  void setUrl(const QString &);
41  QString url() const;
42 
43  void setProjectId(const QString &);
44  QString projectId() const;
45 
46  void setBuildServiceId(const QString &);
47  QString buildServiceId() const;
48 
49  void setMessage(const QString &);
50  QString message() const;
51 
52  void setTarget(const QString &);
53  QString target() const;
54 
55  void setProgress(const qreal);
56  qreal progress() const;
57 
58  void setStatus(const int);
59  bool isRunning() const;
60  bool isCompleted() const;
61  bool isFailed() const;
62 
63  bool isValid() const;
64 private:
65  class Private;
67 };
68 
69 }
70 
71 #endif
KCOREADDONS_EXPORT void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QString name(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.