#include "PythonQtWrapper_QFtp.h" #include #include #include #include #include #include #include #include #include #include #include void PythonQtShell_QFtp::childEvent(QChildEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QFtp::childEvent(arg__1); } void PythonQtShell_QFtp::customEvent(QEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QFtp::customEvent(arg__1); } bool PythonQtShell_QFtp::event(QEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); 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) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); } else { returnValue = *((bool*)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QFtp::event(arg__1); } bool PythonQtShell_QFtp::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 char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); 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) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); } else { returnValue = *((bool*)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QFtp::eventFilter(arg__1, arg__2); } void PythonQtShell_QFtp::timerEvent(QTimerEvent* arg__1) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QFtp::timerEvent(arg__1); } QFtp* PythonQtWrapper_QFtp::new_QFtp(QObject* parent) { return new PythonQtShell_QFtp(parent); } QFtp::Error PythonQtWrapper_QFtp::error(QFtp* theWrappedObject) const { return ( theWrappedObject->error()); } int PythonQtWrapper_QFtp::rename(QFtp* theWrappedObject, const QString& oldname, const QString& newname) { return ( theWrappedObject->rename(oldname, newname)); } int PythonQtWrapper_QFtp::put(QFtp* theWrappedObject, QIODevice* dev, const QString& file, QFtp::TransferType type) { return ( theWrappedObject->put(dev, file, type)); } QFtp::Command PythonQtWrapper_QFtp::currentCommand(QFtp* theWrappedObject) const { return ( theWrappedObject->currentCommand()); } int PythonQtWrapper_QFtp::rmdir(QFtp* theWrappedObject, const QString& dir) { return ( theWrappedObject->rmdir(dir)); } QByteArray PythonQtWrapper_QFtp::readAll(QFtp* theWrappedObject) { return ( theWrappedObject->readAll()); } int PythonQtWrapper_QFtp::close(QFtp* theWrappedObject) { return ( theWrappedObject->close()); } QIODevice* PythonQtWrapper_QFtp::currentDevice(QFtp* theWrappedObject) const { return ( theWrappedObject->currentDevice()); } int PythonQtWrapper_QFtp::login(QFtp* theWrappedObject, const QString& user, const QString& password) { return ( theWrappedObject->login(user, password)); } int PythonQtWrapper_QFtp::mkdir(QFtp* theWrappedObject, const QString& dir) { return ( theWrappedObject->mkdir(dir)); } void PythonQtWrapper_QFtp::clearPendingCommands(QFtp* theWrappedObject) { ( theWrappedObject->clearPendingCommands()); } QString PythonQtWrapper_QFtp::errorString(QFtp* theWrappedObject) const { return ( theWrappedObject->errorString()); } int PythonQtWrapper_QFtp::remove(QFtp* theWrappedObject, const QString& file) { return ( theWrappedObject->remove(file)); } int PythonQtWrapper_QFtp::cd(QFtp* theWrappedObject, const QString& dir) { return ( theWrappedObject->cd(dir)); } int PythonQtWrapper_QFtp::list(QFtp* theWrappedObject, const QString& dir) { return ( theWrappedObject->list(dir)); } bool PythonQtWrapper_QFtp::hasPendingCommands(QFtp* theWrappedObject) const { return ( theWrappedObject->hasPendingCommands()); } int PythonQtWrapper_QFtp::setTransferMode(QFtp* theWrappedObject, QFtp::TransferMode mode) { return ( theWrappedObject->setTransferMode(mode)); } qint64 PythonQtWrapper_QFtp::read(QFtp* theWrappedObject, char* data, qint64 maxlen) { return ( theWrappedObject->read(data, maxlen)); } int PythonQtWrapper_QFtp::connectToHost(QFtp* theWrappedObject, const QString& host, unsigned short port) { return ( theWrappedObject->connectToHost(host, port)); } qint64 PythonQtWrapper_QFtp::bytesAvailable(QFtp* theWrappedObject) const { return ( theWrappedObject->bytesAvailable()); } int PythonQtWrapper_QFtp::put(QFtp* theWrappedObject, const QByteArray& data, const QString& file, QFtp::TransferType type) { return ( theWrappedObject->put(data, file, type)); } int PythonQtWrapper_QFtp::setProxy(QFtp* theWrappedObject, const QString& host, unsigned short port) { return ( theWrappedObject->setProxy(host, port)); } int PythonQtWrapper_QFtp::get(QFtp* theWrappedObject, const QString& file, QIODevice* dev, QFtp::TransferType type) { return ( theWrappedObject->get(file, dev, type)); } int PythonQtWrapper_QFtp::rawCommand(QFtp* theWrappedObject, const QString& command) { return ( theWrappedObject->rawCommand(command)); } QFtp::State PythonQtWrapper_QFtp::state(QFtp* theWrappedObject) const { return ( theWrappedObject->state()); } int PythonQtWrapper_QFtp::currentId(QFtp* theWrappedObject) const { return ( theWrappedObject->currentId()); }