QGIS API Documentation 3.43.0-Master (ea98b95b755)
qgsdbqueryhistoryprovider.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsdbqueryhistoryprovider.h
3 --------------------------
4 begin : April 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSDBQUERYHISTORYPROVIDER_H
17#define QGSDBQUERYHISTORYPROVIDER_H
18
19#include "qgis_gui.h"
20#include "qgis_sip.h"
21
22#include "qgshistoryprovider.h"
23#include "qgshistoryentrynode.h"
24#include "qgshistorywidget.h"
25
26#define SIP_NO_FILE
27
37{
38 Q_OBJECT
39
40 public:
50
54 void emitSqlTriggered( const QString &connectionUri, const QString &provider, const QString &sql );
55
56 signals:
57
61 void sqlTriggered( const QString &connectionUri, const QString &provider, const QString &sql );
62};
63
64
74{
75 Q_OBJECT
76
77 public:
79
80 QString id() const override;
81
82 QgsHistoryEntryNode *createNodeForEntry( const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context ) override SIP_FACTORY;
83 void updateNodeForEntry( QgsHistoryEntryNode *node, const QgsHistoryEntry &entry, const QgsHistoryWidgetContext &context ) override;
84};
85
86#endif //QGSDBQUERYHISTORYPROVIDER_H
@ LocalProfile
Local profile.
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition qgis.h:3376
Abstract base class for objects which track user history (i.e.
History provider for operations database queries.
Custom QgsHistoryWidget for use with the database query provider.
void sqlTriggered(const QString &connectionUri, const QString &provider, const QString &sql)
Emitted when the user has triggered a previously executed SQL statement in the widget.
Base class for nodes representing a QgsHistoryEntry.
Encapsulates a history entry.
A registry for objects which track user history (i.e.
Contains settings which reflect the context in which a history widget is shown, e....
A widget showing entries from a QgsHistoryProviderRegistry.
#define SIP_FACTORY
Definition qgis_sip.h:76