File indexing completed on 2024-04-14 03:49:32

0001 /*
0002     This file is part of KDE.
0003 
0004     SPDX-FileCopyrightText: 2010 Intel Corporation
0005     SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk>
0006 
0007     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0008 */
0009 
0010 #include "homepageentry.h"
0011 
0012 using namespace Attica;
0013 
0014 class Q_DECL_HIDDEN HomePageEntry::Private : public QSharedData
0015 {
0016 public:
0017     QString type;
0018     QUrl url;
0019 
0020     Private()
0021     {
0022     }
0023 };
0024 
0025 HomePageEntry::HomePageEntry()
0026     : d(new Private)
0027 {
0028 }
0029 
0030 HomePageEntry::HomePageEntry(const Attica::HomePageEntry &other)
0031     : d(other.d)
0032 {
0033 }
0034 
0035 HomePageEntry &HomePageEntry::operator=(const Attica::HomePageEntry &other)
0036 {
0037     d = other.d;
0038     return *this;
0039 }
0040 
0041 HomePageEntry::~HomePageEntry()
0042 {
0043 }
0044 
0045 QString HomePageEntry::type() const
0046 {
0047     return d->type;
0048 }
0049 
0050 void HomePageEntry::setType(const QString &type)
0051 {
0052     d->type = type;
0053 }
0054 
0055 QUrl HomePageEntry::url() const
0056 {
0057     return d->url;
0058 }
0059 
0060 void HomePageEntry::setUrl(const QUrl &url)
0061 {
0062     d->url = url;
0063 }