Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ExtensionsHandler.h

Go to the documentation of this file.
00001 #ifndef _EXTENSIONS_HANDLER_H_
00002 #define _EXTENSIONS_HANDLER_H_
00003 
00004 #include <qstring.h>
00005 #include <qstringlist.h>
00006 #include <qvaluelist.h>
00007 #include <qxml.h>
00008 #include "KeyModifiers.h"
00009 #include "KeyExtensions.h"
00010 #include "KeyNames.h"
00011 #include "KHUtil.h"
00012 
00013 class ExtensionsHandler : public QXmlDefaultHandler
00014 {
00015 public:
00016         void dispose(QXmlReader* parser, QXmlContentHandler* parent);
00017 
00018         void setKeyModifiers(KeyModifiers* mod)
00019         {
00020                 m_pModifiers = mod;
00021         }
00022         void setKeyExtensions(KeyExtensions* ext)
00023         {
00024                 m_pExtensions = ext;
00025         }
00026 
00027         bool startElement(const QString& namespaceURI,
00028                 const QString& localName,
00029                 const QString& qName,
00030                 const QXmlAttributes& atts);
00031         bool endElement(const QString& namespaceURI,
00032                 const QString& localName,
00033                 const QString& qName);
00034 private:
00035         QXmlContentHandler* m_parent;
00036         QXmlReader* m_parser;
00037 
00038         KeyModifiers* m_pModifiers;
00039         KeyExtensions* m_pExtensions;
00040 
00041         QString m_kind;
00042         int m_code;
00043         QStringList m_modlist;
00044         //int m_mask;
00045 
00046 };
00047 
00048 #endif /* _EXTENSIONS_HANDLER_H_ */

Generated on Sat Nov 5 16:16:42 2005 for OPIE by  doxygen 1.4.2