diff options
author | Timothy Pearson <[email protected]> | 2014-09-20 15:38:58 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-09-20 15:38:58 -0500 |
commit | d860b315a77c9aa9aa8072de69fbde04285373a2 (patch) | |
tree | 8b0c8e45a03cc1a8741f8ac16a6bc15d3073835f | |
parent | d58276f0fe1d797fe2a111cc7e7c39ba2fa0dd32 (diff) | |
download | krecipes-d860b315a77c9aa9aa8072de69fbde04285373a2.tar.gz krecipes-d860b315a77c9aa9aa8072de69fbde04285373a2.zip |
Update SQLite driver for new Qt3/TQt3 API
This relates to Bug 2115
-rw-r--r-- | krecipes/src/backends/SQLite/qsql_sqlite.cpp | 11 | ||||
-rw-r--r-- | krecipes/src/backends/SQLite/qsql_sqlite.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/krecipes/src/backends/SQLite/qsql_sqlite.cpp b/krecipes/src/backends/SQLite/qsql_sqlite.cpp index 8c228ef..9d65eac 100644 --- a/krecipes/src/backends/SQLite/qsql_sqlite.cpp +++ b/krecipes/src/backends/SQLite/qsql_sqlite.cpp @@ -252,6 +252,17 @@ void KreSQLiteDriver::close() } } +bool KreSQLiteDriver::ping() +{ + if ( !isOpen() ) { + return FALSE; + } + + // FIXME + // Implement ping if available + return TRUE; +} + TQSqlQuery KreSQLiteDriver::createQuery() const { return TQSqlQuery(new KreSQLiteResult(this)); diff --git a/krecipes/src/backends/SQLite/qsql_sqlite.h b/krecipes/src/backends/SQLite/qsql_sqlite.h index d173f32..526caa0 100644 --- a/krecipes/src/backends/SQLite/qsql_sqlite.h +++ b/krecipes/src/backends/SQLite/qsql_sqlite.h @@ -34,6 +34,7 @@ public: const TQString&, int ); void close(); + bool ping(); TQSqlQuery createQuery() const; bool beginTransaction(); |