Attica

homepageentry.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 "homepageentry.h"
11 
12 using namespace Attica;
13 
14 class HomePageEntry::Private : public QSharedData
15 {
16 public:
17  QString type;
18  QUrl url;
19 
20  Private()
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 QString HomePageEntry::type() const
44 {
45  return d->type;
46 }
47 
48 void HomePageEntry::setType(const QString &type)
49 {
50  d->type = type;
51 }
52 
53 QUrl HomePageEntry::url() const
54 {
55  return d->url;
56 }
57 
58 void HomePageEntry::setUrl(const QUrl &url)
59 {
60  d->url = url;
61 }
62 
The HomePageEntry class contains information about one home page entry.
Definition: homepageentry.h:24
Type type(const QSqlDatabase &db)
~HomePageEntry()
Destructor.
HomePageEntry()
Creates an empty HomePageEntry.
HomePageEntry & operator=(const HomePageEntry &other)
Assignment operator.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:59:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.