Attica

buildservice.cpp
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 
9 #include "buildservice.h"
10 
11 using namespace Attica;
12 
13 class BuildService::Private : public QSharedData
14 {
15 public:
16  QString id;
17  QString name;
18  QString url;
19  //QStringList targets;
20  QList<Target> targets;
21 
22  Private()
23  {
24  }
25 };
26 
27 BuildService::BuildService()
28  : d(new Private)
29 {
30 }
31 
32 BuildService::BuildService(const BuildService &other)
33  : d(other.d)
34 {
35 }
36 
37 BuildService &BuildService::operator=(const Attica::BuildService &other)
38 {
39  d = other.d;
40  return *this;
41 }
42 
43 BuildService::~BuildService()
44 {
45 }
46 
47 void BuildService::setId(const QString &u)
48 {
49  d->id = u;
50 }
51 
52 QString BuildService::id() const
53 {
54  return d->id;
55 }
56 
57 void BuildService::setName(const QString &u)
58 {
59  d->name = u;
60 }
61 
62 QString BuildService::name() const
63 {
64  return d->name;
65 }
66 
67 void BuildService::addTarget(const Target &t)
68 {
69  d->targets << t;
70 }
71 
72 QList<Target> BuildService::targets() const
73 {
74  return d->targets;
75 }
76 
77 void BuildService::setUrl(const QString &u)
78 {
79  d->url = u;
80 }
81 
82 QString BuildService::url() const
83 {
84  return d->url;
85 }
86 
87 bool BuildService::isValid() const
88 {
89  return !(d->id.isEmpty());
90 }
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.