summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-09-20 15:38:58 -0500
committerTimothy Pearson <[email protected]>2014-09-20 15:38:58 -0500
commitd860b315a77c9aa9aa8072de69fbde04285373a2 (patch)
tree8b0c8e45a03cc1a8741f8ac16a6bc15d3073835f
parentd58276f0fe1d797fe2a111cc7e7c39ba2fa0dd32 (diff)
downloadkrecipes-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.cpp11
-rw-r--r--krecipes/src/backends/SQLite/qsql_sqlite.h1
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();