Attica

homepagetype.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 "homepagetype.h"
11 
12 using namespace Attica;
13 
14 class HomePageType::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 HomePageType::id() const
44 {
45  return d->id;
46 }
47 
48 void HomePageType::setId(uint id)
49 {
50  d->id = id;
51 }
52 
53 QString HomePageType::name() const
54 {
55  return d->name;
56 }
57 
58 void HomePageType::setName(const QString &name)
59 {
60  d->name = name;
61 }
62 
The HomePageType class contains information about one home page type.
Definition: homepagetype.h:24
QString name(const QVariant &location)
~HomePageType()
Destructor.
HomePageType()
Creates an empty HomePageType.
HomePageType & operator=(const HomePageType &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.