diff options
author | Torben Dannhauer <torben@dannhauer.info> | 2012-01-24 21:27:36 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 16:25:15 +0100 |
commit | 5caa75f6654d1475dcd2d118e240b683a617d735 (patch) | |
tree | 5350ab826c5e361395cc0536dcc0b50f21d76e66 /src/sql/kernel/qsqldriver.cpp | |
parent | 84f4b8149974fbc9f7c43c3a83f3ac76d7dfab15 (diff) |
SQL driver implementation to signal notification sources
Implements the new notification signal in all QSql drivers which use notifcation.
In qt5 only ibase and psql have a notification implementation.
PSQL differentiates correctly between 'SelfSource' and 'OtherSource' whereas
ibase only signals 'UnknownSource' as a default implementation.
Change-Id: Ifcaa139b7a980ed852cf817b3f93284609360ca7
Reviewed-by: Torben Dannhauer <torben@dannhauer.info>
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/sql/kernel/qsqldriver.cpp')
-rw-r--r-- | src/sql/kernel/qsqldriver.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/sql/kernel/qsqldriver.cpp b/src/sql/kernel/qsqldriver.cpp index 130eec0239..861cd4ad0f 100644 --- a/src/sql/kernel/qsqldriver.cpp +++ b/src/sql/kernel/qsqldriver.cpp @@ -131,6 +131,17 @@ QSqlDriver::~QSqlDriver() */ /*! + \since 5.0 + + \fn QSqlDriver::notification(const QString &name, NotificationSource source) + + This signal is emitted when the database posts an event notification + that the driver subscribes to. \a name identifies the event notification, \a source indicates the signal source. + + \sa subscribeToNotification() +*/ + +/*! \fn bool QSqlDriver::open(const QString &db, const QString &user, const QString& password, const QString &host, int port, const QString &options) @@ -242,9 +253,9 @@ bool QSqlDriver::isOpenError() const This enum contains a list of SQL notification sources. - \value Unknown The notification source is unknown - \value Self The notification source is the own connection - \value Other The notification source is another connection + \value UnknownSource The notification source is unknown + \value SelfSource The notification source is this connection + \value OtherSource The notification source is another connection */ /*! |