QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
History provider for operations database queries. More...
#include <qgsdbqueryhistoryprovider.h>
Signals | |
void | openSqlDialog (const QString &connectionUri, const QString &provider, const QString &sql) |
Emitted when the provider wants to trigger a SQL execution dialog. | |
Public Member Functions | |
QgsDatabaseQueryHistoryProvider () | |
QgsHistoryEntryNode * | createNodeForEntry (const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context) override |
Creates a new history node for the given entry. | |
void | emitOpenSqlDialog (const QString &connectionUri, const QString &provider, const QString &sql) |
Causes the provider to emit the openSqlDialog() signal. | |
QString | id () const override |
Returns the provider's unique id, which is used to associate existing history entries with the provider. | |
void | updateNodeForEntry (QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context) override |
Updates an existing history node for the given entry. | |
Public Member Functions inherited from QgsAbstractHistoryProvider | |
virtual | ~QgsAbstractHistoryProvider () |
History provider for operations database queries.
Definition at line 35 of file qgsdbqueryhistoryprovider.h.
QgsDatabaseQueryHistoryProvider::QgsDatabaseQueryHistoryProvider | ( | ) |
Definition at line 204 of file qgsdbqueryhistoryprovider.cpp.
|
overridevirtual |
Creates a new history node for the given entry.
Reimplemented from QgsAbstractHistoryProvider.
Definition at line 213 of file qgsdbqueryhistoryprovider.cpp.
void QgsDatabaseQueryHistoryProvider::emitOpenSqlDialog | ( | const QString & | connectionUri, |
const QString & | provider, | ||
const QString & | sql | ||
) |
Causes the provider to emit the openSqlDialog() signal.
Definition at line 226 of file qgsdbqueryhistoryprovider.cpp.
|
overridevirtual |
Returns the provider's unique id, which is used to associate existing history entries with the provider.
Implements QgsAbstractHistoryProvider.
Definition at line 208 of file qgsdbqueryhistoryprovider.cpp.
|
signal |
Emitted when the provider wants to trigger a SQL execution dialog.
|
overridevirtual |
Updates an existing history node for the given entry.
Reimplemented from QgsAbstractHistoryProvider.
Definition at line 218 of file qgsdbqueryhistoryprovider.cpp.