diff options
| author | Karim Pinter <karim.pinter@theqtcompany.com> | 2016-04-04 11:48:09 +0300 |
|---|---|---|
| committer | Karim Pinter <karim.pinter@theqtcompany.com> | 2016-04-21 10:56:24 +0000 |
| commit | b7ef2510d1f7b115937b39a1eb010a41add2c0b4 (patch) | |
| tree | b466ca0dc3b2fc73c9385af016968ee549db3a59 /src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h | |
| parent | 2be25273e1fc81c5a9e5124f1444100bdb3d458a (diff) | |
Adding notification feature to SQLite driver
This modification enables to use notification feature of SQLite with Qt
SQL driver, enables to subscribe for notifications and also to remove
notifications. close() is added to destructor to unregister
notifications in case it is used in multiple threads.
[ChangeLog][QtSql][SQLite] Adding notification feature to SQLite driver
Change-Id: I8b98787f5214a406357646a98711a8ff6045a0dd
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
Diffstat (limited to 'src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h')
| -rw-r--r-- | src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h b/src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h index c9b77086989..ca969a4b539 100644 --- a/src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h +++ b/src/plugins/sqldrivers/sqlite/qsql_sqlite_p.h @@ -93,6 +93,12 @@ public: QSqlIndex primaryIndex(const QString &table) const Q_DECL_OVERRIDE; QVariant handle() const Q_DECL_OVERRIDE; QString escapeIdentifier(const QString &identifier, IdentifierType) const Q_DECL_OVERRIDE; + + bool subscribeToNotification(const QString &name) Q_DECL_OVERRIDE; + bool unsubscribeFromNotification(const QString &name) Q_DECL_OVERRIDE; + QStringList subscribedToNotifications() const Q_DECL_OVERRIDE; +private Q_SLOTS: + void handleNotification(const QString &tableName, qint64 rowid); }; QT_END_NAMESPACE |
