Represents an immutable list of portal items. More...
Header | #include <Immutable |
Since | Esri |
Inherits | Q |
Public Functions
virtual | ~ |
bool | contains( |
Esri | first() const |
int | index |
bool | is |
Esri | last() const |
Reimplemented Public Functions
virtual Esri | at(int index) const override |
virtual Q | data(const Q |
virtual int | size() const override |
Signals
void | error |
Detailed Description
A PortalItem is a unit of content in the Portal.
The model returns data for the following roles:
Role | Type | Description | PortalItemListModel::PortalItemRoles |
---|---|---|---|
url | Q | The UR | Portal |
item | Q | The I | Portal |
access | Portal | The level of access to the item. | Portal |
average | int | The average rating of the item. | Portal |
comment | int | The number of comments for the item. | Portal |
comments | bool | Whether comments are allowed on the item. | Portal |
culture | Q | The item locale information (language and country). | Portal |
folder | Q | The I | Portal |
name | Q | The name of this item. | Portal |
owner | Q | The username of the user who owns the item. | Portal |
rating | int | The number of ratings received by the item. | Portal |
service | int | The service UR | Portal |
size | qint64 | The size of the item in bytes. | Portal |
type | Portal | The type of the item. | Portal |
type | Q | A set of keywords that further describes the type of the item. | Portal |
type | Q | The name of the type of this item. | Portal |
view | int | The number of times this item has been viewed. | Portal |
description | Q | The item description. | Portal |
extent | Envelope | The bounding rectangle of the item. | Portal |
snippet | Q | The short summary description of the item. | Portal |
title | Q | The title of the item. | Portal |
access | Q | The access information on the source of the item. | Portal |
tags | Q | The user-defined tags that describe the item. | Portal |
created | Q | The creation date of the item. | Portal |
modified | Q | The date the item was last modified. | Portal |
spatial | Spatial | The spatial reference of the item. | Portal |
thumbnail | Q | The thumbnail of the item as a local file UR | Portal |
See also Portal, PortalUser, and PortalItem.
Member Function Documentation
[override virtual noexcept]
ImmutablePortalItemListModel::~ImmutablePortalItemListModel ()
Destructor.
[override virtual]
Esri::ArcGISRuntime::PortalItem *ImmutablePortalItemListModel::at(int index) const
Returns the PortalItem at the specified index.
bool ImmutablePortalItemListModel::contains(Esri::ArcGISRuntime::PortalItem *portalItem ) const
Returns whether the list model contains the specified portalItem.
[override virtual]
QVariant ImmutablePortalItemListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const
Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.
Returns the data stored under the given role for the portal item referred to by the index.
- index. The index in the model for which to return data.
- role. The role for which to return data.
[signal]
void ImmutablePortalItemListModel::errorOccurred (const Esri::ArcGISRuntime::Error &error)
Signal emitted when an error occurs.
- error - Details about the error.
Esri::ArcGISRuntime::PortalItem *ImmutablePortalItemListModel::first() const
Returns the first PortalItem in the list model.
int ImmutablePortalItemListModel::indexOf (Esri::ArcGISRuntime::PortalItem *portalItem ) const
Returns the index of the PortalItem portalItem.
bool ImmutablePortalItemListModel::isEmpty () const
Returns whether the list model contains no items.
Esri::ArcGISRuntime::PortalItem *ImmutablePortalItemListModel::last() const
Returns the last PortalItem in the list model.
[override virtual]
int ImmutablePortalItemListModel::size() const
Returns the number of items contained in the list model.