1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Intel Corporation
5 SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk>
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
12using namespace Attica;
13
14class Q_DECL_HIDDEN HomePageEntry::Private : public QSharedData
15{
16public:
17 QString type;
18 QUrl url;
19
20 Private()
21 {
22 }
23};
24
25HomePageEntry::HomePageEntry()
26 : d(new Private)
27{
28}
29
30HomePageEntry::HomePageEntry(const Attica::HomePageEntry &other)
31 : d(other.d)
32{
33}
34
35HomePageEntry &HomePageEntry::operator=(const Attica::HomePageEntry &other)
36{
37 d = other.d;
38 return *this;
39}
40
41HomePageEntry::~HomePageEntry()
42{
43}
44
45QString HomePageEntry::type() const
46{
47 return d->type;
48}
49
50void HomePageEntry::setType(const QString &type)
51{
52 d->type = type;
53}
54
55QUrl HomePageEntry::url() const
56{
57 return d->url;
58}
59
60void HomePageEntry::setUrl(const QUrl &url)
61{
62 d->url = url;
63}
64

source code of attica/src/homepageentry.cpp