##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QSqlError.h
32 lines | 1.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSQLERROR_H
#define PYTHONQTWRAPPER_QSQLERROR_H
#include <qsqlerror.h>
#include <QObject>
#include <QVariant>
#include <qsqlerror.h>
class PythonQtWrapper_QSqlError : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ErrorType )
enum ErrorType{
NoError = QSqlError::NoError, ConnectionError = QSqlError::ConnectionError, StatementError = QSqlError::StatementError, TransactionError = QSqlError::TransactionError, UnknownError = QSqlError::UnknownError};
public slots:
QSqlError* new_QSqlError(const QSqlError& other);
QSqlError* new_QSqlError(const QString& driverText = QString(), const QString& databaseText = QString(), QSqlError::ErrorType type = QSqlError::NoError, int number = -1);
void delete_QSqlError(QSqlError* obj) { delete obj; }
QString databaseText(QSqlError* theWrappedObject) const;
QString driverText(QSqlError* theWrappedObject) const;
bool isValid(QSqlError* theWrappedObject) const;
int number(QSqlError* theWrappedObject) const;
void setDatabaseText(QSqlError* theWrappedObject, const QString& databaseText);
void setDriverText(QSqlError* theWrappedObject, const QString& driverText);
void setNumber(QSqlError* theWrappedObject, int number);
void setType(QSqlError* theWrappedObject, QSqlError::ErrorType type);
QString text(QSqlError* theWrappedObject) const;
QSqlError::ErrorType type(QSqlError* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QSQLERROR_H