diff options
Diffstat (limited to 'kexi/migration/mysql/mysqlmigrate.h')
-rw-r--r-- | kexi/migration/mysql/mysqlmigrate.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/kexi/migration/mysql/mysqlmigrate.h b/kexi/migration/mysql/mysqlmigrate.h index 9f32bd2f..e7627e76 100644 --- a/kexi/migration/mysql/mysqlmigrate.h +++ b/kexi/migration/mysql/mysqlmigrate.h @@ -30,6 +30,7 @@ namespace KexiMigration class MySQLMigrate : public KexiMigrate { Q_OBJECT + TQ_OBJECT KEXIMIGRATION_DRIVER private: @@ -38,44 +39,44 @@ namespace KexiMigration protected: //Driver specific function to return table names - virtual bool drv_tableNames(QStringList& tablenames); + virtual bool drv_tableNames(TQStringList& tablenames); //Driver specific implementation to read a table schema virtual bool drv_readTableSchema( - const QString& originalName, KexiDB::TableSchema& tableSchema); + const TQString& originalName, KexiDB::TableSchema& tableSchema); //Driver specific connection implementation virtual bool drv_connect(); virtual bool drv_disconnect(); virtual tristate drv_queryStringListFromSQL( - const QString& sqlStatement, uint columnNumber, - QStringList& stringList, int numRecords = -1); + const TQString& sqlStatement, uint columnNumber, + TQStringList& stringList, int numRecords = -1); - virtual tristate drv_fetchRecordFromSQL(const QString& sqlStatement, + virtual tristate drv_fetchRecordFromSQL(const TQString& sqlStatement, KexiDB::RowData& data, bool &firstRecord); - virtual bool drv_copyTable(const QString& srcTable, + virtual bool drv_copyTable(const TQString& srcTable, KexiDB::Connection *destConn, KexiDB::TableSchema* dstTable); virtual bool drv_progressSupported() { return true; } - virtual bool drv_getTableSize(const QString& table, Q_ULLONG& size); + virtual bool drv_getTableSize(const TQString& table, TQ_ULLONG& size); //TODO: move this somewhere to low level class (MIGRATION?) -// virtual bool drv_getTablesList( QStringList &list ); +// virtual bool drv_getTablesList( TQStringList &list ); //TODO: move this somewhere to low level class (MIGRATION?) -// virtual bool drv_containsTable( const QString &tableName ); +// virtual bool drv_containsTable( const TQString &tableName ); public: // MySQLMigrate(); - MySQLMigrate(QObject *parent, const char *name, const QStringList& args = QStringList()); + MySQLMigrate(TQObject *tqparent, const char *name, const TQStringList& args = TQStringList()); ~MySQLMigrate(); - KexiDB::Field::Type type(const QString& table, const MYSQL_FIELD* t); + KexiDB::Field::Type type(const TQString& table, const MYSQL_FIELD* t); - KexiDB::Field::Type examineBlobField(const QString& table, + KexiDB::Field::Type examineBlobField(const TQString& table, const MYSQL_FIELD* fld); - QStringList examineEnumField(const QString& table, + TQStringList examineEnumField(const TQString& table, const MYSQL_FIELD* fld); void getConstraints(int mysqlConstraints, KexiDB::Field* fld); void getOptions(int flags, KexiDB::Field* fld); |