PythonQtWrapper_QUrlInfo.cpp
363 lines
| 12.3 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QUrlInfo.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qdatetime.h> | ||||
#include <qurl.h> | ||||
#include <qurlinfo.h> | ||||
|
r24 | void PythonQtShell_QUrlInfo::setDir(bool b) | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDir"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "bool"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&b}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setDir(b); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setFile(bool b) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "bool"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&b}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setFile(b); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setGroup(const QString& s) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGroup"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "const QString&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&s}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setGroup(s); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setLastModified(const QDateTime& dt) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLastModified"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "const QDateTime&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&dt}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setLastModified(dt); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setName(const QString& name) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setName"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "const QString&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&name}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setName(name); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setOwner(const QString& s) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOwner"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "const QString&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&s}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setOwner(s); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setPermissions(int p) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setPermissions"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&p}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setPermissions(p); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setReadable(bool b) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadable"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "bool"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&b}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setReadable(b); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setSize(qint64 size) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSize"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "qint64"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&size}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setSize(size); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setSymLink(bool b) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSymLink"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "bool"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&b}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setSymLink(b); | ||||
} | ||||
void PythonQtShell_QUrlInfo::setWritable(bool b) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setWritable"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "bool"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&b}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QUrlInfo::setWritable(b); | ||||
} | ||||
|
r13 | QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo() | ||
{ | ||||
|
r24 | return new PythonQtShell_QUrlInfo(); } | ||
|
r13 | |||
QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable); } | ||
|
r13 | |||
QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable); } | ||
|
r13 | |||
QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QUrlInfo& ui) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QUrlInfo(ui); } | ||
|
r13 | |||
|
r73 | bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_greaterThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) | ||
|
r13 | { | ||
|
r73 | return (QUrlInfo::greaterThan(i1, i2, sortBy)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_lessThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) | ||
|
r13 | { | ||
|
r73 | return (QUrlInfo::lessThan(i1, i2, sortBy)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isSymLink(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isSymLink()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isValid(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isValid()); | ||
|
r13 | } | ||
|
r73 | QString PythonQtWrapper_QUrlInfo::group(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->group()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isReadable(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isReadable()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setSize(QUrlInfo* theWrappedObject, qint64 size) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setSize(size)); | ||
|
r13 | } | ||
|
r73 | QDateTime PythonQtWrapper_QUrlInfo::lastModified(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->lastModified()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setSymLink(QUrlInfo* theWrappedObject, bool b) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setSymLink(b)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isDir(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isDir()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isFile(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isFile()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_equal(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) | ||
|
r13 | { | ||
|
r73 | return (QUrlInfo::equal(i1, i2, sortBy)); | ||
|
r13 | } | ||
|
r73 | QDateTime PythonQtWrapper_QUrlInfo::lastRead(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->lastRead()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setDir(QUrlInfo* theWrappedObject, bool b) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setDir(b)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setLastModified(QUrlInfo* theWrappedObject, const QDateTime& dt) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setLastModified(dt)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setName(QUrlInfo* theWrappedObject, const QString& name) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setName(name)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setReadable(QUrlInfo* theWrappedObject, bool b) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setReadable(b)); | ||
|
r13 | } | ||
|
r73 | QString PythonQtWrapper_QUrlInfo::name(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->name()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setWritable(QUrlInfo* theWrappedObject, bool b) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setWritable(b)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isWritable(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isWritable()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setLastRead(QUrlInfo* theWrappedObject, const QDateTime& dt) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setLastRead(dt)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setPermissions(QUrlInfo* theWrappedObject, int p) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setPermissions(p)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::isExecutable(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isExecutable()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setFile(QUrlInfo* theWrappedObject, bool b) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setFile(b)); | ||
|
r13 | } | ||
|
r73 | qint64 PythonQtWrapper_QUrlInfo::size(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->size()); | ||
|
r13 | } | ||
|
r73 | QString PythonQtWrapper_QUrlInfo::owner(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->owner()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QUrlInfo::permissions(QUrlInfo* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->permissions()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setGroup(QUrlInfo* theWrappedObject, const QString& s) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setGroup(s)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QUrlInfo::operator_equal(QUrlInfo* theWrappedObject, const QUrlInfo& i) const | ||
|
r13 | { | ||
|
r73 | return ( (*theWrappedObject)== i); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QUrlInfo::setOwner(QUrlInfo* theWrappedObject, const QString& s) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setOwner(s)); | ||
|
r13 | } | ||