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

ModifiersHandler.h

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

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