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