File indexing completed on 2024-10-06 12:15:10

0001 /*
0002     This file is part of KDE.
0003 
0004     SPDX-FileCopyrightText: 2010 Dan Leinir Turthra Jensen <admin@leinir.dk>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 #ifndef ATTICA_BUILDSERVICEJOBOUTPUT_H
0009 #define ATTICA_BUILDSERVICEJOBOUTPUT_H
0010 
0011 #include <QtCore/QList>
0012 #include <QtCore/QSharedDataPointer>
0013 #include <QtCore/QString>
0014 
0015 #include "attica_export.h"
0016 
0017 namespace Attica
0018 {
0019 
0020 /**
0021  * @class BuildServiceJobOutput buildservicejoboutput.h <Attica/BuildServiceJobOutput>
0022  *
0023  * Represents the ouput of a build service job.
0024  */
0025 class ATTICA_EXPORT BuildServiceJobOutput
0026 {
0027 public:
0028     typedef QList<BuildServiceJobOutput> List;
0029     class Parser;
0030 
0031     BuildServiceJobOutput();
0032     BuildServiceJobOutput(const BuildServiceJobOutput &other);
0033     BuildServiceJobOutput &operator=(const BuildServiceJobOutput &other);
0034     ~BuildServiceJobOutput();
0035 
0036     void setOutput(const QString &output);
0037     QString output() const;
0038 
0039     bool isRunning() const;
0040     bool isCompleted() const;
0041     bool isFailed() const;
0042 
0043     bool isValid() const;
0044 
0045 private:
0046     class Private;
0047     QSharedDataPointer<Private> d;
0048 };
0049 
0050 } // namespace Attica
0051 
0052 #endif // ATTICA_BUILDSERVICEJOBOUTPUT_H