summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/drivers/sqlite/sqliteconnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/kexidb/drivers/sqlite/sqliteconnection.h')
-rw-r--r--kexi/kexidb/drivers/sqlite/sqliteconnection.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/kexi/kexidb/drivers/sqlite/sqliteconnection.h b/kexi/kexidb/drivers/sqlite/sqliteconnection.h
index ba0d3b5a..922e8447 100644
--- a/kexi/kexidb/drivers/sqlite/sqliteconnection.h
+++ b/kexi/kexidb/drivers/sqlite/sqliteconnection.h
@@ -20,7 +20,7 @@
#ifndef KEXIDB_CONN_SQLITE_H
#define KEXIDB_CONN_SQLITE_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kexidb/connection.h>
@@ -37,11 +37,12 @@ class Driver;
class SQLiteConnection : public Connection
{
Q_OBJECT
+ TQ_OBJECT
public:
virtual ~SQLiteConnection();
- virtual Cursor* prepareQuery( const QString& statement, uint cursor_options = 0 );
+ virtual Cursor* prepareQuery( const TQString& statement, uint cursor_options = 0 );
virtual Cursor* prepareQuery( QuerySchema& query, uint cursor_options = 0 );
//#ifndef SQLITE2 //TEMP IFDEF!
@@ -57,24 +58,24 @@ class SQLiteConnection : public Connection
virtual bool drv_connect(KexiDB::ServerVersionInfo& version);
virtual bool drv_disconnect();
- virtual bool drv_getDatabasesList( QStringList &list );
+ virtual bool drv_getDatabasesList( TQStringList &list );
//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 );
/*! Creates new database using connection. Note: Do not pass \a dbName
arg because for file-based engine (that has one database per connection)
it is defined during connection. */
- virtual bool drv_createDatabase( const QString &dbName = QString::null );
+ virtual bool drv_createDatabase( const TQString &dbName = TQString() );
/*! Opens existing database using connection. Do not pass \a dbName
arg because for file-based engine (that has one database per connection)
it is defined during connection. If you pass it,
database file name will be changed. */
- virtual bool drv_useDatabase( const QString &dbName = QString::null, bool *cancelled = 0,
+ virtual bool drv_useDatabase( const TQString &dbName = TQString(), bool *cancelled = 0,
MessageHandler* msgHandler = 0 );
virtual bool drv_closeDatabase();
@@ -82,21 +83,21 @@ class SQLiteConnection : public Connection
/*! Drops database from the server using connection.
After drop, database shouldn't be accessible
anymore, so database file is just removed. See note from drv_useDatabase(). */
- virtual bool drv_dropDatabase( const QString &dbName = QString::null );
+ virtual bool drv_dropDatabase( const TQString &dbName = TQString() );
//virtual bool drv_createTable( const KexiDB::Table& table );
- virtual bool drv_executeSQL( const QString& statement );
-// virtual bool drv_executeQuery( const QString& statement );
+ virtual bool drv_executeSQL( const TQString& statement );
+// virtual bool drv_executeQuery( const TQString& statement );
- virtual Q_ULLONG drv_lastInsertRowID();
+ virtual TQ_ULLONG drv_lastInsertRowID();
virtual int serverResult();
- virtual QString serverResultName();
- virtual QString serverErrorMsg();
+ virtual TQString serverResultName();
+ virtual TQString serverErrorMsg();
virtual void drv_clearServerResult();
virtual tristate drv_changeFieldProperty(TableSchema &table, Field& field,
- const QString& propertyName, const QVariant& value);
+ const TQString& propertyName, const TQVariant& value);
#ifdef SQLITE2
/*! Alters table's described \a tableSchema name to \a newName.
@@ -108,7 +109,7 @@ class SQLiteConnection : public Connection
\return true on success.
More advanced server backends implement this using "ALTER TABLE .. RENAME TO".
*/
- virtual bool drv_alterTableName(TableSchema& tableSchema, const QString& newName, bool replace = false);
+ virtual bool drv_alterTableName(TableSchema& tableSchema, const TQString& newName, bool tqreplace = false);
#endif
//! for drv_changeFieldProperty()