diff --git a/src/sql/kernel/qsqldriver.cpp b/src/sql/kernel/qsqldriver.cpp index 75264381b5..130eec0239 100644 --- a/src/sql/kernel/qsqldriver.cpp +++ b/src/sql/kernel/qsqldriver.cpp @@ -237,6 +237,16 @@ bool QSqlDriver::isOpenError() const \value TableName A SQL table name */ +/*! + \enum QSqlDriver::NotificationSource + + 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 +*/ + /*! \fn bool QSqlDriver::hasFeature(DriverFeature feature) const diff --git a/src/sql/kernel/qsqldriver.h b/src/sql/kernel/qsqldriver.h index 936e29dc04..cd5048243d 100644 --- a/src/sql/kernel/qsqldriver.h +++ b/src/sql/kernel/qsqldriver.h @@ -78,6 +78,8 @@ public: enum IdentifierType { FieldName, TableName }; + enum NotificationSource { Unknown, Self, Other }; + explicit QSqlDriver(QObject *parent=0); ~QSqlDriver(); virtual bool isOpen() const; @@ -120,6 +122,7 @@ public: Q_SIGNALS: void notification(const QString &name); + void notification(const QString &name, NotificationSource source); protected: virtual void setOpen(bool o);