QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Signals | Public Member Functions | List of all members
QgsDatabaseQueryHistoryProvider Class Reference

History provider for operations database queries. More...

#include <qgsdbqueryhistoryprovider.h>

Inheritance diagram for QgsDatabaseQueryHistoryProvider:
Inheritance graph
[legend]

Signals

void openSqlDialog (const QString &connectionUri, const QString &provider, const QString &sql)
 Emitted when the provider wants to trigger a SQL execution dialog. More...
 

Public Member Functions

 QgsDatabaseQueryHistoryProvider ()
 
QgsHistoryEntryNodecreateNodeForEntry (const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context) override
 Creates a new history node for the given entry. More...
 
void emitOpenSqlDialog (const QString &connectionUri, const QString &provider, const QString &sql)
 Causes the provider to emit the openSqlDialog() signal. More...
 
QString id () const override
 Returns the provider's unique id, which is used to associate existing history entries with the provider. More...
 
void updateNodeForEntry (QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context) override
 Updates an existing history node for the given entry. More...
 
- Public Member Functions inherited from QgsAbstractHistoryProvider
virtual ~QgsAbstractHistoryProvider ()
 
virtual QgsHistoryEntryNodecreateNodeForEntry (const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context)
 Creates a new history node for the given entry. More...
 
virtual QString id () const =0
 Returns the provider's unique id, which is used to associate existing history entries with the provider. More...
 
virtual void updateNodeForEntry (QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context)
 Updates an existing history node for the given entry. More...
 

Detailed Description

History provider for operations database queries.

Note
Not available in Python bindings
Since
QGIS 3.32

Definition at line 35 of file qgsdbqueryhistoryprovider.h.

Constructor & Destructor Documentation

◆ QgsDatabaseQueryHistoryProvider()

QgsDatabaseQueryHistoryProvider::QgsDatabaseQueryHistoryProvider ( )

Definition at line 204 of file qgsdbqueryhistoryprovider.cpp.

Member Function Documentation

◆ createNodeForEntry()

QgsHistoryEntryNode * QgsDatabaseQueryHistoryProvider::createNodeForEntry ( const QgsHistoryEntry entry,
const QgsHistoryWidgetContext context 
)
overridevirtual

Creates a new history node for the given entry.

Since
QGIS 3.32

Reimplemented from QgsAbstractHistoryProvider.

Definition at line 213 of file qgsdbqueryhistoryprovider.cpp.

◆ emitOpenSqlDialog()

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.

◆ id()

QString QgsDatabaseQueryHistoryProvider::id ( ) const
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.

◆ openSqlDialog

void QgsDatabaseQueryHistoryProvider::openSqlDialog ( const QString &  connectionUri,
const QString &  provider,
const QString &  sql 
)
signal

Emitted when the provider wants to trigger a SQL execution dialog.

◆ updateNodeForEntry()

void QgsDatabaseQueryHistoryProvider::updateNodeForEntry ( QgsHistoryEntryNode node,
const QgsHistoryEntry entry,
const QgsHistoryWidgetContext context 
)
overridevirtual

Updates an existing history node for the given entry.

Since
QGIS 3.32

Reimplemented from QgsAbstractHistoryProvider.

Definition at line 218 of file qgsdbqueryhistoryprovider.cpp.


The documentation for this class was generated from the following files: