#include "PythonQtWrapper_QXmlReader.h" #include #include #include #include #include QXmlDTDHandler* PythonQtShell_QXmlReader::DTDHandler() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "DTDHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "DTDHandler(QXmlReader*)"); QXmlDTDHandler* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QXmlDTDHandler* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QXmlDTDHandler* result; return result; } QXmlContentHandler* PythonQtShell_QXmlReader::contentHandler() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contentHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "contentHandler(QXmlReader*)"); QXmlContentHandler* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QXmlContentHandler* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QXmlContentHandler* result; return result; } QXmlDeclHandler* PythonQtShell_QXmlReader::declHandler() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "declHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "declHandler(QXmlReader*)"); QXmlDeclHandler* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QXmlDeclHandler* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QXmlDeclHandler* result; return result; } QXmlEntityResolver* PythonQtShell_QXmlReader::entityResolver() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "entityResolver"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "entityResolver(QXmlReader*)"); QXmlEntityResolver* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QXmlEntityResolver* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QXmlEntityResolver* result; return result; } QXmlErrorHandler* PythonQtShell_QXmlReader::errorHandler() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "errorHandler(QXmlReader*)"); QXmlErrorHandler* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QXmlErrorHandler* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QXmlErrorHandler* result; return result; } bool PythonQtShell_QXmlReader::feature(const QString& name, bool* ok) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "feature"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "feature(QXmlReader*,const QString& ,bool* )"); bool returnValue; void* args[3] = {NULL, (void*)&name, (void*)&ok}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } bool PythonQtShell_QXmlReader::hasFeature(const QString& name) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasFeature"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "hasFeature(QXmlReader*,const QString& )"); bool returnValue; void* args[2] = {NULL, (void*)&name}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } bool PythonQtShell_QXmlReader::hasProperty(const QString& name) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasProperty"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "hasProperty(QXmlReader*,const QString& )"); bool returnValue; void* args[2] = {NULL, (void*)&name}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } QXmlLexicalHandler* PythonQtShell_QXmlReader::lexicalHandler() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "lexicalHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "lexicalHandler(QXmlReader*)"); QXmlLexicalHandler* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QXmlLexicalHandler* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QXmlLexicalHandler* result; return result; } bool PythonQtShell_QXmlReader::parse(const QXmlInputSource& input) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "parse(QXmlReader*,const QXmlInputSource& )"); bool returnValue; void* args[2] = {NULL, (void*)&input}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } bool PythonQtShell_QXmlReader::parse(const QXmlInputSource* input) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "parse(QXmlReader*,const QXmlInputSource* )"); bool returnValue; void* args[2] = {NULL, (void*)&input}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } void* PythonQtShell_QXmlReader::property(const QString& name, bool* ok) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "property"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "property(QXmlReader*,const QString& ,bool* )"); void* returnValue; void* args[3] = {NULL, (void*)&name, (void*)&ok}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((void* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } void* result; return result; } void PythonQtShell_QXmlReader::setContentHandler(QXmlContentHandler* handler) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setContentHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setContentHandler(QXmlReader*,QXmlContentHandler* )"); void* args[2] = {NULL, (void*)&handler}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setDTDHandler(QXmlDTDHandler* handler) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDTDHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setDTDHandler(QXmlReader*,QXmlDTDHandler* )"); void* args[2] = {NULL, (void*)&handler}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setDeclHandler(QXmlDeclHandler* handler) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDeclHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setDeclHandler(QXmlReader*,QXmlDeclHandler* )"); void* args[2] = {NULL, (void*)&handler}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setEntityResolver(QXmlEntityResolver* handler) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEntityResolver"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setEntityResolver(QXmlReader*,QXmlEntityResolver* )"); void* args[2] = {NULL, (void*)&handler}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setErrorHandler(QXmlErrorHandler* handler) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setErrorHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setErrorHandler(QXmlReader*,QXmlErrorHandler* )"); void* args[2] = {NULL, (void*)&handler}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setFeature(const QString& name, bool value) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFeature"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setFeature(QXmlReader*,const QString& ,bool )"); void* args[3] = {NULL, (void*)&name, (void*)&value}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setLexicalHandler(QXmlLexicalHandler* handler) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLexicalHandler"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setLexicalHandler(QXmlReader*,QXmlLexicalHandler* )"); void* args[2] = {NULL, (void*)&handler}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } void PythonQtShell_QXmlReader::setProperty(const QString& name, void* value) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setProperty"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlReader::staticMetaObject, "setProperty(QXmlReader*,const QString& ,void* )"); void* args[3] = {NULL, (void*)&name, (void*)&value}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } QXmlReader* PythonQtWrapper_QXmlReader::new_QXmlReader() { return new PythonQtShell_QXmlReader(); }