16#ifndef QGSHISTORYPROVIDERREGISTRY_H
17#define QGSHISTORYPROVIDERREGISTRY_H
47 QgsHistoryEntry(
const QString &providerId,
const QDateTime ×tamp,
const QVariantMap &entry );
71 SIP_PYOBJECT __repr__();
73 const QString
str = QStringLiteral(
"<QgsHistoryEntry: %1 %2>" ).arg( sipCpp->providerId, sipCpp->timestamp.toString( Qt::ISODate ) );
74 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
109 void addDefaultProviders()
SIP_SKIP;
132 bool removeProvider(
const QString &
id );
137 QStringList providerIds()
const;
215 QList< QgsHistoryEntry > queryEntries(
const QDateTime &start = QDateTime(),
const QDateTime &end = QDateTime(),
221 static QString userHistoryDbPath();
233 bool createDatabase(
const QString &filename, QString &error );
236 bool openDatabase(
const QString &filename, QString &error );
249 bool runEmptyQuery(
const QString &query );
251 QMap< QString, QgsAbstractHistoryProvider * > mProviders;
HistoryProviderBackend
History provider backends.
@ LocalProfile
Local profile.
Abstract base class for objects which track user history (i.e.
Encapsulates a history entry.
QDateTime timestamp
Entry timestamp.
QString providerId
Associated history provider ID.
QVariantMap entry
Entry details.
Contains options for storing history entries.
HistoryEntryOptions()
Constructor for HistoryEntryOptions.
The QgsHistoryProviderRegistry is a registry for objects which track user history (i....
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...