PythonQtWrapper_QXmlErrorHandler.h
33 lines
| 850 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QXMLERRORHANDLER_H | ||
#define PYTHONQTWRAPPER_QXMLERRORHANDLER_H | ||||
#include <qxml.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qxml.h> | ||||
florianlink
|
r24 | class PythonQtShell_QXmlErrorHandler : public QXmlErrorHandler | ||
{ | ||||
public: | ||||
PythonQtShell_QXmlErrorHandler():QXmlErrorHandler(),_wrapper(NULL) {}; | ||||
virtual bool error(const QXmlParseException& exception); | ||||
virtual QString errorString() const; | ||||
virtual bool fatalError(const QXmlParseException& exception); | ||||
virtual bool warning(const QXmlParseException& exception); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QXmlErrorHandler : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
florianlink
|
r24 | QXmlErrorHandler* new_QXmlErrorHandler(); | ||
florianlink
|
r13 | void delete_QXmlErrorHandler(QXmlErrorHandler* obj) { delete obj; } | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QXMLERRORHANDLER_H | ||||