Represents an immutable list of portal items. More...
| Header | #include <Immutable |
| Since | Esri |
| Inherits | QAbstract |
This class was introduced in Esri::ArcGISRuntime 100.3.
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 QVariant | data(const QModel |
| 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 | QUrl | The UR | Portal |
| item | QString | The I | Portal |
| access | Portal | The level of access to the item. | Portal |
| access | QString | The access and use constraints HTM | 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 | QString | The item locale information (language and country). | Portal |
| folder | QString | The I | Portal |
| name | QString | The name of this item. | Portal |
| owner | QString | 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 | QString | A set of keywords that further describes the type of the item. | Portal |
| type | QString | The name of the type of this item. | Portal |
| view | int | The number of times this item has been viewed. | Portal |
| description | QString | The item description. | Portal |
| extent | Envelope | The bounding rectangle of the item. | Portal |
| snippet | QString | The short summary description of the item. | Portal |
| title | QString | The title of the item. | Portal |
| access | QString | The access information on the source of the item. | Portal |
| tags | QString | The user-defined tags that describe the item. | Portal |
| created | QDate | The creation date of the item. | Portal |
| modified | QDate | The date the item was last modified. | Portal |
| spatial | Spatial | The spatial reference of the item. | Portal |
| thumbnail | QUrl | The thumbnail of the item as a local file UR | Portal |
See also Portal, PortalUser, and PortalItem.
Member Function Documentation
[signal] void ImmutablePortalItemListModel::errorOccurred (Esri::ArcGISRuntime::Error error)
Signal emitted when an error occurs.
- error - Details about the error.
[override virtual] 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.
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.