File indexing completed on 2024-12-08 12:15:07

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 
0009 #include "buildservicejoboutput.h"
0010 
0011 using namespace Attica;
0012 
0013 class Q_DECL_HIDDEN BuildServiceJobOutput::Private : public QSharedData
0014 {
0015 public:
0016     QString output;
0017 
0018     Private()
0019     {
0020     }
0021 };
0022 
0023 BuildServiceJobOutput::BuildServiceJobOutput()
0024     : d(new Private)
0025 {
0026 }
0027 
0028 BuildServiceJobOutput::BuildServiceJobOutput(const BuildServiceJobOutput &other)
0029     : d(other.d)
0030 {
0031 }
0032 
0033 BuildServiceJobOutput &BuildServiceJobOutput::operator=(const Attica::BuildServiceJobOutput &other)
0034 {
0035     d = other.d;
0036     return *this;
0037 }
0038 
0039 BuildServiceJobOutput::~BuildServiceJobOutput()
0040 {
0041 }
0042 
0043 void BuildServiceJobOutput::setOutput(const QString &output)
0044 {
0045     d->output = output;
0046 }
0047 
0048 QString BuildServiceJobOutput::output() const
0049 {
0050     return d->output;
0051 }
0052 
0053 bool BuildServiceJobOutput::isValid() const
0054 {
0055     return !(d->output.isNull());
0056 }