#include "PythonQtWrapper_QBuffer.h" #include #include #include #include #include #include #include #include #include bool PythonQtShell_QBuffer::atEnd() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "atEnd(QBuffer*)"); 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; } } return QBuffer::atEnd(); } qint64 PythonQtShell_QBuffer::bytesAvailable() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "bytesAvailable(QBuffer*)"); qint64 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::bytesAvailable(); } qint64 PythonQtShell_QBuffer::bytesToWrite() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "bytesToWrite(QBuffer*)"); qint64 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::bytesToWrite(); } bool PythonQtShell_QBuffer::canReadLine() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "canReadLine(QBuffer*)"); 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; } } return QBuffer::canReadLine(); } void PythonQtShell_QBuffer::childEvent(QChildEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "childEvent(QBuffer*,QChildEvent* )"); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QBuffer::childEvent(arg__1); } void PythonQtShell_QBuffer::close() { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "close(QBuffer*)"); void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QBuffer::close(); } void PythonQtShell_QBuffer::customEvent(QEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "customEvent(QBuffer*,QEvent* )"); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QBuffer::customEvent(arg__1); } bool PythonQtShell_QBuffer::event(QEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "event(QBuffer*,QEvent* )"); bool returnValue; void* args[2] = {NULL, (void*)&arg__1}; 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; } } return QBuffer::event(arg__1); } bool PythonQtShell_QBuffer::eventFilter(QObject* arg__1, QEvent* arg__2) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "eventFilter(QBuffer*,QObject* ,QEvent* )"); bool returnValue; void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; 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; } } return QBuffer::eventFilter(arg__1, arg__2); } bool PythonQtShell_QBuffer::isSequential() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "isSequential(QBuffer*)"); 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; } } return QBuffer::isSequential(); } bool PythonQtShell_QBuffer::open(QIODevice::OpenMode openMode) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "open(QBuffer*,QIODevice::OpenMode )"); bool returnValue; void* args[2] = {NULL, (void*)&openMode}; 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; } } return QBuffer::open(openMode); } qint64 PythonQtShell_QBuffer::pos() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "pos(QBuffer*)"); qint64 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::pos(); } qint64 PythonQtShell_QBuffer::readData(char* data, qint64 maxlen) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "readData(QBuffer*,char* ,qint64 )"); qint64 returnValue; void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::readData(data, maxlen); } qint64 PythonQtShell_QBuffer::readLineData(char* data, qint64 maxlen) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "readLineData(QBuffer*,char* ,qint64 )"); qint64 returnValue; void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::readLineData(data, maxlen); } bool PythonQtShell_QBuffer::reset() { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "reset(QBuffer*)"); 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; } } return QBuffer::reset(); } bool PythonQtShell_QBuffer::seek(qint64 off) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "seek(QBuffer*,qint64 )"); bool returnValue; void* args[2] = {NULL, (void*)&off}; 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; } } return QBuffer::seek(off); } qint64 PythonQtShell_QBuffer::size() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "size(QBuffer*)"); qint64 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::size(); } void PythonQtShell_QBuffer::timerEvent(QTimerEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "timerEvent(QBuffer*,QTimerEvent* )"); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QBuffer::timerEvent(arg__1); } bool PythonQtShell_QBuffer::waitForBytesWritten(int msecs) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "waitForBytesWritten(QBuffer*,int )"); bool returnValue; void* args[2] = {NULL, (void*)&msecs}; 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; } } return QBuffer::waitForBytesWritten(msecs); } bool PythonQtShell_QBuffer::waitForReadyRead(int msecs) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "waitForReadyRead(QBuffer*,int )"); bool returnValue; void* args[2] = {NULL, (void*)&msecs}; 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; } } return QBuffer::waitForReadyRead(msecs); } qint64 PythonQtShell_QBuffer::writeData(const char* data, qint64 len) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QBuffer::staticMetaObject, "writeData(QBuffer*,const char* ,qint64 )"); qint64 returnValue; void* args[3] = {NULL, (void*)&data, (void*)&len}; 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 = *((qint64 *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QBuffer::writeData(data, len); } QBuffer* PythonQtWrapper_QBuffer::new_QBuffer(QByteArray* buf, QObject* parent) { return new PythonQtShell_QBuffer(buf, parent); } QBuffer* PythonQtWrapper_QBuffer::new_QBuffer(QObject* parent) { return new PythonQtShell_QBuffer(parent); } void PythonQtWrapper_QBuffer::close(QBuffer* theWrappedObject) { ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_close(); } qint64 PythonQtWrapper_QBuffer::pos(QBuffer* theWrappedObject) const { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_pos(); } bool PythonQtWrapper_QBuffer::seek(QBuffer* theWrappedObject, qint64 off) { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_seek(off); } bool PythonQtWrapper_QBuffer::canReadLine(QBuffer* theWrappedObject) const { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_canReadLine(); } qint64 PythonQtWrapper_QBuffer::readData(QBuffer* theWrappedObject, char* data, qint64 maxlen) { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_readData(data, maxlen); } bool PythonQtWrapper_QBuffer::atEnd(QBuffer* theWrappedObject) const { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_atEnd(); } bool PythonQtWrapper_QBuffer::open(QBuffer* theWrappedObject, QIODevice::OpenMode openMode) { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_open(openMode); } void PythonQtWrapper_QBuffer::setBuffer(QBuffer* theWrappedObject, QByteArray* a) { theWrappedObject->setBuffer(a); } void PythonQtWrapper_QBuffer::setData(QBuffer* theWrappedObject, const QByteArray& data) { theWrappedObject->setData(data); } qint64 PythonQtWrapper_QBuffer::writeData(QBuffer* theWrappedObject, const char* data, qint64 len) { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_writeData(data, len); } qint64 PythonQtWrapper_QBuffer::size(QBuffer* theWrappedObject) const { return ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_size(); }