LibKEduVocDocument

keduvocmultiplechoice.h
1/*
2 * manage multiple choice suggestions for queries
3 * SPDX-FileCopyrightText: 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
4 * SPDX-FileCopyrightText: 2005 Peter Hedlund <peter.hedlund@kdemail.net>
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KEDUVOCMULTIPLECHOICE_H
9#define KEDUVOCMULTIPLECHOICE_H
10
11#include "keduvocdocument_export.h"
12
13#include <QStringList>
14
15class KEDUVOCDOCUMENT_EXPORT KEduVocMultipleChoice
16{
17public:
18 KEduVocMultipleChoice();
19 KEduVocMultipleChoice(const KEduVocMultipleChoice &other);
20 explicit KEduVocMultipleChoice(const QStringList &choices);
21
22 ~KEduVocMultipleChoice();
23
24 QStringList choices() const;
25 void appendChoice(const QString &s);
26
27 QString choice(int index) const;
28
29 bool isEmpty() const;
30 void clear();
31 unsigned size() const;
32
33 bool operator==(const KEduVocMultipleChoice &choice) const;
34
35 KEduVocMultipleChoice &operator=(const KEduVocMultipleChoice &other);
36
37private:
38 class KEduVocMultipleChoicePrivate;
39 KEduVocMultipleChoicePrivate *const d;
40};
41
42#endif // MultipleChoice_included
KGuiItem clear()
bool operator==(const StyleDelim &l, const StyleDelim &r)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.