diff options
Diffstat (limited to 'krecipes/src/backends/PostgreSQL/psqlrecipedb.h')
-rw-r--r-- | krecipes/src/backends/PostgreSQL/psqlrecipedb.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krecipes/src/backends/PostgreSQL/psqlrecipedb.h b/krecipes/src/backends/PostgreSQL/psqlrecipedb.h index 9727909..3593a34 100644 --- a/krecipes/src/backends/PostgreSQL/psqlrecipedb.h +++ b/krecipes/src/backends/PostgreSQL/psqlrecipedb.h @@ -14,14 +14,14 @@ #ifndef PSQLRECIPEDB_H #define PSQLRECIPEDB_H -#define PSQL_DRIVER "QPSQL7" +#define PSQL_DRIVER "TQPSQL7" #include "qsqlrecipedb.h" /** @author Jason Kivlighn */ -class PSqlRecipeDB : public QSqlRecipeDB +class PSqlRecipeDB : public TQSqlRecipeDB { Q_OBJECT @@ -30,30 +30,30 @@ private: void createDB( void ); public: - PSqlRecipeDB( const QString& host, const QString& user = QString::null, const QString& pass = QString::null, const QString& DBName = DEFAULT_DB_NAME, int port = 0 ); + PSqlRecipeDB( const TQString& host, const TQString& user = TQString::null, const TQString& pass = TQString::null, const TQString& DBName = DEFAULT_DB_NAME, int port = 0 ); ~PSqlRecipeDB( void ); int lastInsertID(); void initializeData(); - void createTable( const QString &tableName ); - void givePermissions( const QString &dbName, const QString &username, const QString &password, const QString &clientHost ); + void createTable( const TQString &tableName ); + void givePermissions( const TQString &dbName, const TQString &username, const TQString &password, const TQString &clientHost ); protected: - virtual QString qsqlDriverPlugin() const + virtual TQString qsqlDriverPlugin() const { return PSQL_DRIVER; } - virtual int getNextInsertID( const QString &table, const QString &column ); + virtual int getNextInsertID( const TQString &table, const TQString &column ); virtual void empty( void ); private: void portOldDatabases( float version ); - QStringList backupCommand() const; - QStringList restoreCommand() const; + TQStringList backupCommand() const; + TQStringList restoreCommand() const; - void addColumn( const QString &new_table_sql, const QString &new_col_info, const QString &default_value, const QString &table_name, int col_index ); + void addColumn( const TQString &new_table_sql, const TQString &new_col_info, const TQString &default_value, const TQString &table_name, int col_index ); int last_insert_id; }; |