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 #ifndef KDEVCLAZY_CHECKSETSELECTION_H
0008 #define KDEVCLAZY_CHECKSETSELECTION_H
0009 
0010 // Qt
0011 #include <QSharedDataPointer>
0012 
0013 class QString;
0014 
0015 namespace Clazy
0016 {
0017 
0018 class CheckSetSelectionPrivate;
0019 
0020 class CheckSetSelection
0021 {
0022 public:
0023     CheckSetSelection();
0024     CheckSetSelection(const CheckSetSelection& other);
0025     ~CheckSetSelection();
0026 
0027 public:
0028     CheckSetSelection& operator=(const CheckSetSelection& other);
0029 
0030 public:
0031     void setId(const QString& id);
0032     QString id() const;
0033 
0034 public:
0035     void setName(const QString& name);
0036     QString name() const;
0037 
0038 public:
0039     QString selectionAsString() const;
0040 
0041     void setSelection(const QString& selection);
0042 
0043 private:
0044     QSharedDataPointer<CheckSetSelectionPrivate> d;
0045 };
0046 
0047 }
0048 
0049 #endif