1/*
2 SPDX-FileCopyrightText: 2007-2008 Aaron Seigo <aseigo@kde.org>
3 SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KCONFIGLOADERHANDLER_P_H
9#define KCONFIGLOADERHANDLER_P_H
10
11#include <QXmlStreamAttributes>
12
13class ConfigLoaderHandler
14{
15public:
16 ConfigLoaderHandler(KConfigLoader *config, ConfigLoaderPrivate *d);
17
18 bool parse(QIODevice *input);
19
20 void startElement(const QStringView localName, const QXmlStreamAttributes &attrs);
21 void endElement(const QStringView localName);
22
23private:
24 void addItem();
25 void resetState();
26
27 KConfigLoader *m_config;
28 ConfigLoaderPrivate *d;
29 int m_min;
30 int m_max;
31 QString m_name;
32 QString m_key;
33 QString m_type;
34 QString m_label;
35 QString m_default;
36 QString m_cdata;
37 QString m_whatsThis;
38 KConfigSkeleton::ItemEnum::Choice m_choice;
39 QList<KConfigSkeleton::ItemEnum::Choice> m_enumChoices;
40 bool m_haveMin;
41 bool m_haveMax;
42 bool m_inChoice;
43};
44
45#endif
46

source code of kconfig/src/gui/kconfigloaderhandler_p.h