QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Encapsulates a history entry. More...
#include <qgshistoryentry.h>
Public Member Functions | |
QgsHistoryEntry ()=default | |
Constructor for an invalid entry. | |
QgsHistoryEntry (const QString &providerId, const QDateTime ×tamp, const QVariantMap &entry) | |
Constructor for QgsHistoryEntry entry, with the specified providerId and timestamp. | |
QgsHistoryEntry (const QVariantMap &entry) | |
Constructor for QgsHistoryEntry entry. | |
bool | isValid () const |
Returns true if the entry is valid. | |
Public Attributes | |
QVariantMap | entry |
Entry details. | |
long long | id = 0 |
Entry ID. | |
QString | providerId |
Associated history provider ID. | |
QDateTime | timestamp |
Entry timestamp. | |
|
default |
Constructor for an invalid entry.
|
explicit |
Constructor for QgsHistoryEntry entry, with the specified providerId and timestamp.
Definition at line 19 of file qgshistoryentry.cpp.
|
explicit |
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.