Class QfDeltaListModel
Inherits the following classes: QAbstractListModel
Public Types
| Type | Name |
|---|---|
| enum | ColumnRole |
Public Properties
| Type | Name |
|---|---|
| property QfCloudConnection * | cloudConnection |
| property QString | cloudProjectId |
| property QString | errorString |
| property bool | hasNextPage |
| property bool | isRefreshing |
| property bool | isValid |
Public Signals
| Type | Name |
|---|---|
| signal void | cloudConnectionChanged |
| signal void | cloudProjectIdChanged |
| signal void | errorStringChanged |
| signal void | hasNextPageChanged |
| signal void | isRefreshingChanged |
| signal void | isValidChanged |
Public Functions
| Type | Name |
|---|---|
| QfDeltaListModel () |
|
| QfCloudConnection * | 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. |
| Q_INVOKABLE void | fetchNextPage () ! Retrieves the next available delta list page |
| bool | hasNextPage () const Whether the delta list has a next page available to retrieve. |
| bool | isRefreshing () const Whether the model is refreshing. |
| bool | isValid () const Whether the model is valid and can be used. |
| QJsonDocument | lastJson () const Returns the last json document used to populate 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 (QfCloudConnection * cloudConnection) |
| void | setCloudProjectId (const QString & cloudProjectId) |
Public Types Documentation
enum ColumnRole
enum QfDeltaListModel::ColumnRole {
IdRole,
DeltafileIdRole,
CreatedByRole,
CreatedAtRole,
UpdatedAtRole,
StatusRole,
SummaryRole,
OutputRole
};
Public Properties Documentation
property cloudConnection [1/2]
QfCloudConnection * QfDeltaListModel::cloudConnection;
property cloudProjectId [1/2]
QString QfDeltaListModel::cloudProjectId;
property errorString [1/2]
QString QfDeltaListModel::errorString;
property hasNextPage [1/2]
bool QfDeltaListModel::hasNextPage;
property isRefreshing [1/2]
bool QfDeltaListModel::isRefreshing;
property isValid [1/2]
bool QfDeltaListModel::isValid;
Public Signals Documentation
signal cloudConnectionChanged
void QfDeltaListModel::cloudConnectionChanged;
signal cloudProjectIdChanged
void QfDeltaListModel::cloudProjectIdChanged;
signal errorStringChanged
void QfDeltaListModel::errorStringChanged;
signal hasNextPageChanged
void QfDeltaListModel::hasNextPageChanged;
signal isRefreshingChanged
void QfDeltaListModel::isRefreshingChanged;
signal isValidChanged
void QfDeltaListModel::isValidChanged;
Public Functions Documentation
function QfDeltaListModel
explicit QfDeltaListModel::QfDeltaListModel ()
function cloudConnection [2/2]
inline QfCloudConnection * QfDeltaListModel::cloudConnection () const
function cloudProjectId [2/2]
inline QString QfDeltaListModel::cloudProjectId () const
function data
Returns the data at given index with given__role .
QVariant QfDeltaListModel::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 QfDeltaListModel::errorString () const
function fetchNextPage
! Retrieves the next available delta list page
Q_INVOKABLE void QfDeltaListModel::fetchNextPage ()
function hasNextPage [2/2]
Whether the delta list has a next page available to retrieve.
bool QfDeltaListModel::hasNextPage () const
function isRefreshing [2/2]
Whether the model is refreshing.
bool QfDeltaListModel::isRefreshing () const
function isValid [2/2]
Whether the model is valid and can be used.
bool QfDeltaListModel::isValid () const
function lastJson
Returns the last json document used to populate the model.
QJsonDocument QfDeltaListModel::lastJson () const
function refresh
Refreshes the delta list model.
Q_INVOKABLE void QfDeltaListModel::refresh ()
function roleNames
Returns the model role names.
QHash< int, QByteArray > QfDeltaListModel::roleNames () override const
function rowCount
Returns number of rows.
int QfDeltaListModel::rowCount (
const QModelIndex & parent=QModelIndex()
) override const
function setCloudConnection
void QfDeltaListModel::setCloudConnection (
QfCloudConnection * cloudConnection
)
function setCloudProjectId
void QfDeltaListModel::setCloudProjectId (
const QString & cloudProjectId
)
The documentation for this class was generated from the following file src/core/qfieldcloud/qfdeltalistmodel.h