File indexing completed on 2024-11-10 06:36:07
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 "homepagetype.h" 0011 0012 using namespace Attica; 0013 0014 class Q_DECL_HIDDEN HomePageType::Private : public QSharedData 0015 { 0016 public: 0017 int id; 0018 QString name; 0019 0020 Private() 0021 : id(-1) 0022 { 0023 } 0024 }; 0025 0026 HomePageType::HomePageType() 0027 : d(new Private) 0028 { 0029 } 0030 0031 HomePageType::HomePageType(const Attica::HomePageType &other) 0032 : d(other.d) 0033 { 0034 } 0035 0036 HomePageType &HomePageType::operator=(const Attica::HomePageType &other) 0037 { 0038 d = other.d; 0039 return *this; 0040 } 0041 0042 HomePageType::~HomePageType() 0043 { 0044 } 0045 0046 uint HomePageType::id() const 0047 { 0048 return d->id; 0049 } 0050 0051 void HomePageType::setId(uint id) 0052 { 0053 d->id = id; 0054 } 0055 0056 QString HomePageType::name() const 0057 { 0058 return d->name; 0059 } 0060 0061 void HomePageType::setName(const QString &name) 0062 { 0063 d->name = name; 0064 }