##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QSqlDatabase.h
85 lines | 4.1 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSQLDATABASE_H
#define PYTHONQTWRAPPER_QSQLDATABASE_H
#include <qsqldatabase.h>
#include <QObject>
#include <PythonQt.h>
#include <QSize>
#include <QSqlError>
#include <QSqlIndex>
#include <QSqlQuery>
#include <QSqlRecord>
#include <QStringList>
#include <QVariant>
#include <qsqldatabase.h>
#include <qsqldriver.h>
#include <qsqlerror.h>
#include <qsqlindex.h>
#include <qsqlquery.h>
#include <qsqlrecord.h>
#include <qstringlist.h>
class PythonQtShell_QSqlDatabase : public QSqlDatabase
{
public:
PythonQtShell_QSqlDatabase():QSqlDatabase(),_wrapper(NULL) {};
PythonQtShell_QSqlDatabase(QSqlDriver* driver):QSqlDatabase(driver),_wrapper(NULL) {};
PythonQtShell_QSqlDatabase(const QSqlDatabase& other):QSqlDatabase(other),_wrapper(NULL) {};
PythonQtShell_QSqlDatabase(const QString& type):QSqlDatabase(type),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QSqlDatabase : public QObject
{ Q_OBJECT
public:
public slots:
QSqlDatabase* new_QSqlDatabase();
QSqlDatabase* new_QSqlDatabase(const QSqlDatabase& other);
void delete_QSqlDatabase(QSqlDatabase* obj) { delete obj; }
bool static_QSqlDatabase_contains(const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection));
bool isOpenError(QSqlDatabase* theWrappedObject) const;
bool isValid(QSqlDatabase* theWrappedObject) const;
QSqlError lastError(QSqlDatabase* theWrappedObject) const;
void setConnectOptions(QSqlDatabase* theWrappedObject, const QString& options = QString());
void setUserName(QSqlDatabase* theWrappedObject, const QString& name);
void setHostName(QSqlDatabase* theWrappedObject, const QString& host);
QStringList tables(QSqlDatabase* theWrappedObject, QSql::TableType type = QSql::Tables) const;
void setPort(QSqlDatabase* theWrappedObject, int p);
QString connectionName(QSqlDatabase* theWrappedObject) const;
void static_QSqlDatabase_removeDatabase(const QString& connectionName);
QSqlDatabase static_QSqlDatabase_cloneDatabase(const QSqlDatabase& other, const QString& connectionName);
QString connectOptions(QSqlDatabase* theWrappedObject) const;
QStringList static_QSqlDatabase_connectionNames();
QSqlDatabase static_QSqlDatabase_addDatabase(QSqlDriver* driver, const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection));
bool rollback(QSqlDatabase* theWrappedObject);
bool isOpen(QSqlDatabase* theWrappedObject) const;
int port(QSqlDatabase* theWrappedObject) const;
QString driverName(QSqlDatabase* theWrappedObject) const;
QSqlQuery exec(QSqlDatabase* theWrappedObject, const QString& query = QString()) const;
void setDatabaseName(QSqlDatabase* theWrappedObject, const QString& name);
void close(QSqlDatabase* theWrappedObject);
QSqlRecord record(QSqlDatabase* theWrappedObject, const QString& tablename) const;
QString userName(QSqlDatabase* theWrappedObject) const;
QString password(QSqlDatabase* theWrappedObject) const;
QString databaseName(QSqlDatabase* theWrappedObject) const;
QSqlDatabase static_QSqlDatabase_database(const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection), bool open = true);
QStringList static_QSqlDatabase_drivers();
void static_QSqlDatabase_registerSqlDriver(const QString& name, QSqlDriverCreatorBase* creator);
void setPassword(QSqlDatabase* theWrappedObject, const QString& password);
bool commit(QSqlDatabase* theWrappedObject);
QSqlDatabase static_QSqlDatabase_addDatabase(const QString& type, const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection));
QSqlDriver* driver(QSqlDatabase* theWrappedObject) const;
bool transaction(QSqlDatabase* theWrappedObject);
bool open(QSqlDatabase* theWrappedObject, const QString& user, const QString& password);
QSqlIndex primaryIndex(QSqlDatabase* theWrappedObject, const QString& tablename) const;
QString hostName(QSqlDatabase* theWrappedObject) const;
bool static_QSqlDatabase_isDriverAvailable(const QString& name);
bool open(QSqlDatabase* theWrappedObject);
QString toString(QSqlDatabase*);
};
#endif // PYTHONQTWRAPPER_QSQLDATABASE_H