QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
Encapsulates a history entry. More...
#include <qgshistoryentry.h>
Public Member Functions | |
QgsHistoryEntry ()=default | |
Constructor for an invalid entry. More... | |
QgsHistoryEntry (const QString &providerId, const QDateTime ×tamp, const QVariantMap &entry) | |
Constructor for QgsHistoryEntry entry, with the specified providerId and timestamp. More... | |
QgsHistoryEntry (const QVariantMap &entry) | |
Constructor for QgsHistoryEntry entry. More... | |
bool | isValid () const |
Returns true if the entry is valid. More... | |
Public Attributes | |
QVariantMap | entry |
Entry details. More... | |
long long | id = 0 |
Entry ID. More... | |
QString | providerId |
Associated history provider ID. More... | |
QDateTime | timestamp |
Entry timestamp. More... | |
|
default |
Constructor for an invalid entry.
QgsHistoryEntry::QgsHistoryEntry | ( | const QString & | providerId, |
const QDateTime & | timestamp, | ||
const QVariantMap & | entry | ||
) |
Constructor for QgsHistoryEntry entry, with the specified providerId and timestamp.
Definition at line 19 of file qgshistoryentry.cpp.
QgsHistoryEntry::QgsHistoryEntry | ( | const QVariantMap & | entry | ) |
Constructor for QgsHistoryEntry entry.
The entry timestamp will be automatically set to the current date/time.
Definition at line 27 of file qgshistoryentry.cpp.
bool QgsHistoryEntry::isValid | ( | ) | const |
Returns true
if the entry is valid.
Definition at line 34 of file qgshistoryentry.cpp.
QVariantMap QgsHistoryEntry::entry |
Entry details.
Entries details are stored as a free-form map. Interpretation of this map is the responsibility of the associated history provider.
Definition at line 81 of file qgshistoryentry.h.
long long QgsHistoryEntry::id = 0 |
QString QgsHistoryEntry::providerId |
Associated history provider ID.
Definition at line 73 of file qgshistoryentry.h.
QDateTime QgsHistoryEntry::timestamp |
Entry timestamp.
Definition at line 70 of file qgshistoryentry.h.