Class DeltaListModel
Inherits the following classes: QAbstractListModel
Public Types
| Type | Name |
|---|---|
| enum | ColumnRole |
Public Properties
| Type | Name |
|---|---|
| property QFieldCloudConnection * | cloudConnection |
| property QString | cloudProjectId |
| property QString | errorString |
| property bool | isRefreshing |
| property bool | isValid |
Public Signals
| Type | Name |
|---|---|
| signal void | cloudConnectionChanged |
| signal void | cloudProjectIdChanged |
| signal void | errorStringChanged |
| signal void | isRefreshingChanged |
| signal void | isValidChanged |
Public Functions
| Type | Name |
|---|---|
| DeltaListModel () |
|
| QFieldCloudConnection * | cloudConnection () const |
| QString | cloudProjectId () const |
| QVariant | data (const QModelIndex & index, int role) override const Returns the data at given index with given__role . |
| QString | errorString () const Holds the reason why it is invalid. Null string if not invalid. |
| bool | isRefreshing () const Whether the model is refreshing. |
| bool | isValid () const Whether the model is valid and can be used. |
| QJsonDocument | json () const Returns the json document used to initialize the model. |
| Q_INVOKABLE void | refresh () Refreshes the delta list model. |
| QHash< int, QByteArray > | roleNames () override const Returns the model role names. |
| int | rowCount (const QModelIndex & parent=QModelIndex()) override const Returns number of rows. |
| void | setCloudConnection (QFieldCloudConnection * cloudConnection) |
| void | setCloudProjectId (const QString & cloudProjectId) |
Public Types Documentation
enum ColumnRole
enum DeltaListModel::ColumnRole {
IdRole,
DeltafileIdRole,
CreatedByRole,
CreatedAtRole,
UpdatedAtRole,
StatusRole,
SummaryRole,
OutputRole
};
Public Properties Documentation
property cloudConnection [1/2]
QFieldCloudConnection * DeltaListModel::cloudConnection;
property cloudProjectId [1/2]
QString DeltaListModel::cloudProjectId;
property errorString [1/2]
QString DeltaListModel::errorString;
property isRefreshing [1/2]
bool DeltaListModel::isRefreshing;
property isValid [1/2]
bool DeltaListModel::isValid;
Public Signals Documentation
signal cloudConnectionChanged
void DeltaListModel::cloudConnectionChanged;
signal cloudProjectIdChanged
void DeltaListModel::cloudProjectIdChanged;
signal errorStringChanged
void DeltaListModel::errorStringChanged;
signal isRefreshingChanged
void DeltaListModel::isRefreshingChanged;
signal isValidChanged
void DeltaListModel::isValidChanged;
Public Functions Documentation
function DeltaListModel
explicit DeltaListModel::DeltaListModel ()
function cloudConnection [2/2]
inline QFieldCloudConnection * DeltaListModel::cloudConnection () const
function cloudProjectId [2/2]
inline QString DeltaListModel::cloudProjectId () const
function data
Returns the data at given index with given__role .
QVariant DeltaListModel::data (
const QModelIndex & index,
int role
) override const
function errorString [2/2]
Holds the reason why it is invalid. Null string if not invalid.
QString DeltaListModel::errorString () const
function isRefreshing [2/2]
Whether the model is refreshing.
bool DeltaListModel::isRefreshing () const
function isValid [2/2]
Whether the model is valid and can be used.
bool DeltaListModel::isValid () const
function json
Returns the json document used to initialize the model.
QJsonDocument DeltaListModel::json () const
function refresh
Refreshes the delta list model.
Q_INVOKABLE void DeltaListModel::refresh ()
function roleNames
Returns the model role names.
QHash< int, QByteArray > DeltaListModel::roleNames () override const
function rowCount
Returns number of rows.
int DeltaListModel::rowCount (
const QModelIndex & parent=QModelIndex()
) override const
function setCloudConnection
void DeltaListModel::setCloudConnection (
QFieldCloudConnection * cloudConnection
)
function setCloudProjectId
void DeltaListModel::setCloudProjectId (
const QString & cloudProjectId
)
The documentation for this class was generated from the following file src/core/qfieldcloud/deltalistmodel.h