File indexing completed on 2023-10-03 07:01:56

0001 /*
0002     This file is part of KDE.
0003 
0004     SPDX-FileCopyrightText: 2010 Sebastian K├╝gler <sebas@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 #ifndef ATTICA_BUILDSERVICEJOB_H
0009 #define ATTICA_BUILDSERVICEJOB_H
0010 
0011 #include <QtCore/QDate>
0012 #include <QtCore/QList>
0013 #include <QtCore/QMap>
0014 #include <QtCore/QSharedDataPointer>
0015 #include <QtCore/QStringList>
0016 #include <QtCore/QUrl>
0017 
0018 #include "attica_export.h"
0019 
0020 namespace Attica
0021 {
0022 
0023 /**
0024  * @class BuildServiceJob buildservicejob.h <Attica/BuildServiceJob>
0025  *
0026  * Represents a build service job.
0027  */
0028 class ATTICA_EXPORT BuildServiceJob
0029 {
0030 public:
0031     typedef QList<BuildServiceJob> List;
0032     class Parser;
0033 
0034     BuildServiceJob();
0035     BuildServiceJob(const BuildServiceJob &other);
0036     BuildServiceJob &operator=(const BuildServiceJob &other);
0037     ~BuildServiceJob();
0038 
0039     void setId(const QString &);
0040     QString id() const;
0041 
0042     void setName(const QString &);
0043     QString name() const;
0044 
0045     void setUrl(const QString &);
0046     QString url() const;
0047 
0048     void setProjectId(const QString &);
0049     QString projectId() const;
0050 
0051     void setBuildServiceId(const QString &);
0052     QString buildServiceId() const;
0053 
0054     void setMessage(const QString &);
0055     QString message() const;
0056 
0057     void setTarget(const QString &);
0058     QString target() const;
0059 
0060     void setProgress(const qreal);
0061     qreal progress() const;
0062 
0063     void setStatus(const int);
0064     bool isRunning() const;
0065     bool isCompleted() const;
0066     bool isFailed() const;
0067 
0068     bool isValid() const;
0069 
0070 private:
0071     class Private;
0072     QSharedDataPointer<Private> d;
0073 };
0074 
0075 }
0076 
0077 #endif