Attica

buildservice.cpp
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
9#include "buildservice.h"
10
11using namespace Attica;
12
13class Q_DECL_HIDDEN BuildService::Private : public QSharedData
14{
15public:
16 QString id;
18 QString url;
19 // QStringList targets;
20 QList<Target> targets;
21
22 Private()
23 {
24 }
25};
26
27BuildService::BuildService()
28 : d(new Private)
29{
30}
31
32BuildService::BuildService(const BuildService &other)
33 : d(other.d)
34{
35}
36
37BuildService &BuildService::operator=(const Attica::BuildService &other)
38{
39 d = other.d;
40 return *this;
41}
42
43BuildService::~BuildService()
44{
45}
46
47void BuildService::setId(const QString &u)
48{
49 d->id = u;
50}
51
52QString BuildService::id() const
53{
54 return d->id;
55}
56
57void BuildService::setName(const QString &u)
58{
59 d->name = u;
60}
61
62QString BuildService::name() const
63{
64 return d->name;
65}
66
67void BuildService::addTarget(const Target &t)
68{
69 d->targets << t;
70}
71
72QList<Target> BuildService::targets() const
73{
74 return d->targets;
75}
76
77void BuildService::setUrl(const QString &u)
78{
79 d->url = u;
80}
81
82QString BuildService::url() const
83{
84 return d->url;
85}
86
87bool BuildService::isValid() const
88{
89 return !(d->id.isEmpty());
90}
Represents a build service.
The Attica namespace,.
QString name(StandardAction id)
The target in a build service.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.