PythonQtWrapper_QSqlRecord.cpp
155 lines
| 4.1 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QSqlRecord.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QSqlField> | ||
#include <QVariant> | ||||
#include <qsqlfield.h> | ||||
#include <qsqlrecord.h> | ||||
QSqlRecord* PythonQtWrapper_QSqlRecord::new_QSqlRecord() | ||||
{ | ||||
return new QSqlRecord(); } | ||||
QSqlRecord* PythonQtWrapper_QSqlRecord::new_QSqlRecord(const QSqlRecord& other) | ||||
{ | ||||
return new QSqlRecord(other); } | ||||
florianlink
|
r28 | bool PythonQtWrapper_QSqlRecord::isGenerated(QSqlRecord* theWrappedObject, const QString& name) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isGenerated(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::setNull(QSqlRecord* theWrappedObject, const QString& name) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setNull(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::append(QSqlRecord* theWrappedObject, const QSqlField& field) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->append(field)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::setValue(QSqlRecord* theWrappedObject, int i, const QVariant& val) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setValue(i, val)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QSqlRecord::isNull(QSqlRecord* theWrappedObject, int i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isNull(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QSqlRecord::contains(QSqlRecord* theWrappedObject, const QString& name) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->contains(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::setGenerated(QSqlRecord* theWrappedObject, const QString& name, bool generated) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setGenerated(name, generated)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QVariant PythonQtWrapper_QSqlRecord::value(QSqlRecord* theWrappedObject, int i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->value(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QSqlRecord::isGenerated(QSqlRecord* theWrappedObject, int i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isGenerated(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QSqlRecord::remove(QSqlRecord* theWrappedObject, int pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->remove(pos)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::setGenerated(QSqlRecord* theWrappedObject, int i, bool generated) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setGenerated(i, generated)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::replace(QSqlRecord* theWrappedObject, int pos, const QSqlField& field) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->replace(pos, field)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSqlField PythonQtWrapper_QSqlRecord::field(QSqlRecord* theWrappedObject, int i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->field(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::insert(QSqlRecord* theWrappedObject, int pos, const QSqlField& field) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insert(pos, field)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QSqlRecord::isNull(QSqlRecord* theWrappedObject, const QString& name) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isNull(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QSqlRecord::operator_equal(QSqlRecord* theWrappedObject, const QSqlRecord& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== other); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QSqlRecord::fieldName(QSqlRecord* theWrappedObject, int i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->fieldName(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QSqlRecord::clearValues(QSqlRecord* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clearValues()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSqlField PythonQtWrapper_QSqlRecord::field(QSqlRecord* theWrappedObject, const QString& name) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->field(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QSqlRecord::indexOf(QSqlRecord* theWrappedObject, const QString& name) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->indexOf(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::clear(QSqlRecord* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clear()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QSqlRecord::count(QSqlRecord* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->count()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QSqlRecord::isEmpty(QSqlRecord* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isEmpty()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::setNull(QSqlRecord* theWrappedObject, int i) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setNull(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlRecord::setValue(QSqlRecord* theWrappedObject, const QString& name, const QVariant& val) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setValue(name, val)); | ||
} | ||||
QVariant PythonQtWrapper_QSqlRecord::value(QSqlRecord* theWrappedObject, const QString& name) const | ||||
{ | ||||
return ( theWrappedObject->value(name)); | ||||
} | ||||
QString PythonQtWrapper_QSqlRecord::toString(QSqlRecord* obj) { | ||||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
florianlink
|
r13 | } | ||