File indexing completed on 2024-05-12 03:54:28
0001 /* 0002 SPDX-FileCopyrightText: 2007-2008 Aaron Seigo <aseigo@kde.org> 0003 SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KCONFIGLOADERHANDLER_P_H 0009 #define KCONFIGLOADERHANDLER_P_H 0010 0011 #include <QXmlStreamAttributes> 0012 0013 class ConfigLoaderHandler 0014 { 0015 public: 0016 ConfigLoaderHandler(KConfigLoader *config, ConfigLoaderPrivate *d); 0017 0018 bool parse(QIODevice *input); 0019 0020 void startElement(const QStringView localName, const QXmlStreamAttributes &attrs); 0021 void endElement(const QStringView localName); 0022 0023 private: 0024 void addItem(); 0025 void resetState(); 0026 0027 KConfigLoader *m_config; 0028 ConfigLoaderPrivate *d; 0029 int m_min; 0030 int m_max; 0031 QString m_name; 0032 QString m_key; 0033 QString m_type; 0034 QString m_label; 0035 QString m_default; 0036 QString m_cdata; 0037 QString m_whatsThis; 0038 KConfigSkeleton::ItemEnum::Choice m_choice; 0039 QList<KConfigSkeleton::ItemEnum::Choice> m_enumChoices; 0040 bool m_haveMin; 0041 bool m_haveMax; 0042 bool m_inChoice; 0043 }; 0044 0045 #endif