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 | |
12 | using namespace Attica; |
13 | |
14 | class Q_DECL_HIDDEN HomePageEntry::Private : public QSharedData |
15 | { |
16 | public: |
17 | QString type; |
18 | QUrl url; |
19 | |
20 | Private() |
21 | { |
22 | } |
23 | }; |
24 | |
25 | HomePageEntry::HomePageEntry() |
26 | : d(new Private) |
27 | { |
28 | } |
29 | |
30 | HomePageEntry::HomePageEntry(const Attica::HomePageEntry &other) |
31 | : d(other.d) |
32 | { |
33 | } |
34 | |
35 | HomePageEntry &HomePageEntry::operator=(const Attica::HomePageEntry &other) |
36 | { |
37 | d = other.d; |
38 | return *this; |
39 | } |
40 | |
41 | HomePageEntry::~HomePageEntry() |
42 | { |
43 | } |
44 | |
45 | QString HomePageEntry::type() const |
46 | { |
47 | return d->type; |
48 | } |
49 | |
50 | void HomePageEntry::setType(const QString &type) |
51 | { |
52 | d->type = type; |
53 | } |
54 | |
55 | QUrl HomePageEntry::url() const |
56 | { |
57 | return d->url; |
58 | } |
59 | |
60 | void HomePageEntry::setUrl(const QUrl &url) |
61 | { |
62 | d->url = url; |
63 | } |
64 |