#include "PythonQtWrapper_QXmlContentHandler.h" #include #include #include #include #include bool PythonQtShell_QXmlContentHandler::characters(const QString& ch) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "characters"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "characters(QXmlContentHandler*,const QString& )"); bool returnValue; void* args[2] = {NULL, (void*)&ch}; 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_QXmlContentHandler::endDocument() { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDocument"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "endDocument(QXmlContentHandler*)"); bool 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 = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } bool PythonQtShell_QXmlContentHandler::endElement(const QString& namespaceURI, const QString& localName, const QString& qName) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endElement"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "endElement(QXmlContentHandler*,const QString& ,const QString& ,const QString& )"); bool returnValue; void* args[4] = {NULL, (void*)&namespaceURI, (void*)&localName, (void*)&qName}; 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_QXmlContentHandler::endPrefixMapping(const QString& prefix) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endPrefixMapping"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "endPrefixMapping(QXmlContentHandler*,const QString& )"); bool returnValue; void* args[2] = {NULL, (void*)&prefix}; 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; } QString PythonQtShell_QXmlContentHandler::errorString() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "errorString(QXmlContentHandler*)"); QString 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 = *((QString *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } QString result; return result; } bool PythonQtShell_QXmlContentHandler::ignorableWhitespace(const QString& ch) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ignorableWhitespace"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "ignorableWhitespace(QXmlContentHandler*,const QString& )"); bool returnValue; void* args[2] = {NULL, (void*)&ch}; 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_QXmlContentHandler::processingInstruction(const QString& target, const QString& data) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "processingInstruction"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "processingInstruction(QXmlContentHandler*,const QString& ,const QString& )"); bool returnValue; void* args[3] = {NULL, (void*)&target, (void*)&data}; 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_QXmlContentHandler::setDocumentLocator(QXmlLocator* locator) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDocumentLocator"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "setDocumentLocator(QXmlContentHandler*,QXmlLocator* )"); void* args[2] = {NULL, (void*)&locator}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } } bool PythonQtShell_QXmlContentHandler::skippedEntity(const QString& name) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "skippedEntity"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "skippedEntity(QXmlContentHandler*,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_QXmlContentHandler::startDocument() { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDocument"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "startDocument(QXmlContentHandler*)"); bool 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 = *((bool *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } bool result; return result; } bool PythonQtShell_QXmlContentHandler::startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startElement"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "startElement(QXmlContentHandler*,const QString& ,const QString& ,const QString& ,const QXmlAttributes& )"); bool returnValue; void* args[5] = {NULL, (void*)&namespaceURI, (void*)&localName, (void*)&qName, (void*)&atts}; 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_QXmlContentHandler::startPrefixMapping(const QString& prefix, const QString& uri) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startPrefixMapping"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QXmlContentHandler::staticMetaObject, "startPrefixMapping(QXmlContentHandler*,const QString& ,const QString& )"); bool returnValue; void* args[3] = {NULL, (void*)&prefix, (void*)&uri}; 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; } QXmlContentHandler* PythonQtWrapper_QXmlContentHandler::new_QXmlContentHandler() { return new PythonQtShell_QXmlContentHandler(); }