PythonQtWrapper_QSqlError.cpp
66 lines
| 1.8 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QSqlError.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qsqlerror.h> | ||||
QSqlError* PythonQtWrapper_QSqlError::new_QSqlError(const QSqlError& other) | ||||
{ | ||||
return new QSqlError(other); } | ||||
QSqlError* PythonQtWrapper_QSqlError::new_QSqlError(const QString& driverText, const QString& databaseText, QSqlError::ErrorType type, int number) | ||||
{ | ||||
return new QSqlError(driverText, databaseText, type, number); } | ||||
|
r28 | int PythonQtWrapper_QSqlError::number(QSqlError* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->number(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QSqlError::setDriverText(QSqlError* theWrappedObject, const QString& driverText) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setDriverText(driverText); | ||
|
r13 | } | ||
|
r28 | QString PythonQtWrapper_QSqlError::text(QSqlError* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->text(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QSqlError::isValid(QSqlError* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isValid(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QSqlError::setDatabaseText(QSqlError* theWrappedObject, const QString& databaseText) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setDatabaseText(databaseText); | ||
|
r13 | } | ||
|
r28 | QSqlError::ErrorType PythonQtWrapper_QSqlError::type(QSqlError* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->type(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QSqlError::setType(QSqlError* theWrappedObject, QSqlError::ErrorType type) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setType(type); | ||
|
r13 | } | ||
|
r28 | QString PythonQtWrapper_QSqlError::databaseText(QSqlError* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->databaseText(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QSqlError::setNumber(QSqlError* theWrappedObject, int number) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setNumber(number); | ||
|
r13 | } | ||
|
r28 | QString PythonQtWrapper_QSqlError::driverText(QSqlError* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->driverText(); | ||
|
r13 | } | ||