Attica

distribution.cpp
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2010 Intel Corporation
5  SPDX-FileContributor: Mateu Batle Sastre <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
8 */
9 
10 #include "distribution.h"
11 
12 using namespace Attica;
13 
14 class Distribution::Private : public QSharedData
15 {
16 public:
17  int id;
18  QString name;
19 
20  Private() : id(-1)
21  {}
22 };
23 
25  : d(new Private)
26 {
27 }
28 
30  : d(other.d)
31 {
32 }
33 
35 {
36  d = other.d;
37  return *this;
38 }
39 
41 {}
42 
43 uint Distribution::id() const
44 {
45  return d->id;
46 }
47 
48 void Distribution::setId(uint id)
49 {
50  d->id = id;
51 }
52 
53 QString Distribution::name() const
54 {
55  return d->name;
56 }
57 
58 void Distribution::setName(const QString &name)
59 {
60  d->name = name;
61 }
62 
The Distribution class contains information about one distribution that the server offers...
Definition: distribution.h:24
~Distribution()
Destructor.
QString name(const QVariant &location)
Distribution()
Creates an empty Distribution.
Distribution & operator=(const Distribution &other)
Assignment operator.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 23:03:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.