diff options
Diffstat (limited to 'src/sql/kernel')
-rw-r--r-- | src/sql/kernel/qsqldriver.cpp | 17 | ||||
-rw-r--r-- | src/sql/kernel/qsqldriver.h | 2 |
2 files changed, 15 insertions, 4 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 */ /*! diff --git a/src/sql/kernel/qsqldriver.h b/src/sql/kernel/qsqldriver.h index cd5048243d..5fd74411db 100644 --- a/src/sql/kernel/qsqldriver.h +++ b/src/sql/kernel/qsqldriver.h @@ -78,7 +78,7 @@ public: enum IdentifierType { FieldName, TableName }; - enum NotificationSource { Unknown, Self, Other }; + enum NotificationSource { UnknownSource, SelfSource, OtherSource }; explicit QSqlDriver(QObject *parent=0); ~QSqlDriver(); |