diff options
Diffstat (limited to 'krecipes/src/backends/SQLite/literecipedb.h')
-rw-r--r-- | krecipes/src/backends/SQLite/literecipedb.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krecipes/src/backends/SQLite/literecipedb.h b/krecipes/src/backends/SQLite/literecipedb.h index c83672f..e0d8e76 100644 --- a/krecipes/src/backends/SQLite/literecipedb.h +++ b/krecipes/src/backends/SQLite/literecipedb.h @@ -15,13 +15,13 @@ #include "backends/qsqlrecipedb.h" -#include <qstring.h> +#include <ntqstring.h> #include "qsql_sqlite.h" #define SQLITE_DRIVER "KRESQLITE" -class LiteRecipeDB : public QSqlRecipeDB +class LiteRecipeDB : public TQSqlRecipeDB { Q_OBJECT @@ -30,28 +30,28 @@ private: void createDB( void ); public: - LiteRecipeDB( const QString &DBName = DEFAULT_DB_NAME ); + LiteRecipeDB( const TQString &DBName = DEFAULT_DB_NAME ); ~LiteRecipeDB( void ); virtual int lastInsertID(); - virtual void createTable( const QString &tableName ); - virtual void givePermissions(const QString&, const QString&, const QString&, const QString&){} //no permissions in this backend + virtual void createTable( const TQString &tableName ); + virtual void givePermissions(const TQString&, const TQString&, const TQString&, const TQString&){} //no permissions in this backend protected: - virtual QSqlDriver *qsqlDriver() const + virtual TQSqlDriver *qsqlDriver() const { return new KreSQLiteDriver(); } - virtual QString escapeAndEncode( const QString &s ) const; + virtual TQString escapeAndEncode( const TQString &s ) const; private: virtual void portOldDatabases( float version ); - virtual QStringList backupCommand() const; - virtual QStringList restoreCommand() const; + virtual TQStringList backupCommand() const; + virtual 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 ); }; |