mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/history/qgshistoryentry.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsHistoryEntry
|
|
{
|
|
%Docstring(signature="appended")
|
|
Encapsulates a history entry.
|
|
|
|
.. versionadded:: 3.24
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgshistoryentry.h"
|
|
%End
|
|
public:
|
|
QgsHistoryEntry();
|
|
%Docstring
|
|
Constructor for an invalid entry.
|
|
%End
|
|
|
|
explicit QgsHistoryEntry( const QString &providerId, const QDateTime ×tamp, const QVariantMap &entry );
|
|
%Docstring
|
|
Constructor for QgsHistoryEntry ``entry``, with the specified
|
|
``providerId`` and ``timestamp``.
|
|
%End
|
|
|
|
explicit QgsHistoryEntry( const QVariantMap &entry );
|
|
%Docstring
|
|
Constructor for QgsHistoryEntry ``entry``.
|
|
|
|
The entry timestamp will be automatically set to the current date/time.
|
|
%End
|
|
|
|
bool isValid() const;
|
|
%Docstring
|
|
Returns ``True`` if the entry is valid.
|
|
|
|
.. versionadded:: 3.32
|
|
%End
|
|
|
|
long long id;
|
|
|
|
QDateTime timestamp;
|
|
|
|
QString providerId;
|
|
|
|
QVariantMap entry;
|
|
|
|
SIP_PYOBJECT __repr__();
|
|
%MethodCode
|
|
const QString str = QStringLiteral( "<QgsHistoryEntry: %1 %2>" ).arg( sipCpp->providerId, sipCpp->timestamp.toString( Qt::ISODate ) );
|
|
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
|
|
%End
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/history/qgshistoryentry.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|