Changeset View
Changeset View
Standalone View
Standalone View
src/gui/kconfigloaderhandler_p.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | class ConfigLoaderHandler | 26 | class ConfigLoaderHandler | ||
27 | { | 27 | { | ||
28 | public: | 28 | public: | ||
29 | ConfigLoaderHandler(KConfigLoader *config, ConfigLoaderPrivate *d); | 29 | ConfigLoaderHandler(KConfigLoader *config, ConfigLoaderPrivate *d); | ||
30 | 30 | | |||
31 | bool parse(QIODevice *input); | 31 | bool parse(QIODevice *input); | ||
32 | 32 | | |||
33 | bool startElement(const QStringRef &namespaceURI, const QStringRef &localName, | 33 | bool startElement(const QStringRef &localName, const QXmlStreamAttributes &attrs); | ||
34 | const QStringRef &qName, const QXmlStreamAttributes &atts); | 34 | bool endElement(const QStringRef &localName); | ||
35 | bool endElement(const QStringRef &namespaceURI, const QStringRef &localName, | | |||
36 | const QStringRef &qName); | | |||
37 | bool characters(const QStringRef &ch); | 35 | bool characters(const QStringRef &ch); | ||
38 | 36 | | |||
39 | QString name() const; | | |||
40 | void setName(const QString &name); | | |||
41 | QString key() const; | | |||
42 | void setKey(const QString &name); | | |||
43 | QString type() const; | | |||
44 | QString defaultValue() const; | | |||
45 | | ||||
46 | private: | 37 | private: | ||
47 | void addItem(); | 38 | void addItem(); | ||
48 | void resetState(); | 39 | void resetState(); | ||
49 | 40 | | |||
50 | KConfigLoader *m_config; | 41 | KConfigLoader *m_config; | ||
51 | ConfigLoaderPrivate *d; | 42 | ConfigLoaderPrivate *d; | ||
52 | int m_min; | 43 | int m_min; | ||
53 | int m_max; | 44 | int m_max; | ||
Show All 16 Lines |