File indexing completed on 2024-04-21 04:38:09
0001 /* 0002 SPDX-FileCopyrightText: 2020 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "checksetselection.h" 0008 0009 // Qt 0010 #include <QString> 0011 0012 namespace Clazy 0013 { 0014 0015 class CheckSetSelectionPrivate : public QSharedData 0016 { 0017 public: 0018 QString id; 0019 QString name; 0020 0021 QString selection; 0022 }; 0023 0024 0025 CheckSetSelection::CheckSetSelection() 0026 : d(new CheckSetSelectionPrivate) 0027 { 0028 } 0029 CheckSetSelection::CheckSetSelection(const CheckSetSelection& other) = default; 0030 0031 CheckSetSelection::~CheckSetSelection() = default; 0032 0033 CheckSetSelection& CheckSetSelection::operator=(const CheckSetSelection& other) = default; 0034 0035 QString CheckSetSelection::selectionAsString() const 0036 { 0037 return d->selection; 0038 } 0039 0040 QString CheckSetSelection::id() const 0041 { 0042 return d->id; 0043 } 0044 0045 QString CheckSetSelection::name() const 0046 { 0047 return d->name; 0048 } 0049 0050 void CheckSetSelection::setId(const QString& id) 0051 { 0052 d->id = id; 0053 } 0054 0055 void CheckSetSelection::setSelection(const QString& selection) 0056 { 0057 d->selection = selection; 0058 } 0059 0060 void CheckSetSelection::setName(const QString& name) 0061 { 0062 d->name = name; 0063 } 0064 0065 }