A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-portalprivilegelistmodel.html below:

PortalPrivilegeListModel Class | ArcGIS Maps SDK for Qt

Detailed Description

This type is returned by calling privileges on a PortalUser object. Each privilege permits the user to peform specific operations on the portal.

The model returns data for the following roles:

Example:

Accessing various roles of the model from within a QML delegate:

Text{
    anchors.fill: parent
    // acccess the portalPrivilegeRealm, portalPrivilegeRole, portalPrivilegeType
    // and portalPrivilegeSubtype roles of the model
    text: "realm:" + portalPrivilegeRealm + "; role:" + portalPrivilegeRole + "; type:" + portalPrivilegeType +
          "; subtype:" + portalPrivilegeSubtype
    wrapMode: Text.WrapAnywhere
}
Member Function Documentation [override virtual noexcept] PortalPrivilegeListModel::~PortalPrivilegeListModel()

Destructor.

[override virtual] Esri::ArcGISRuntime::PortalPrivilege PortalPrivilegeListModel::at(int index) const

Returns the PortalPrivilege at the specified index.

bool PortalPrivilegeListModel::contains(const Esri::ArcGISRuntime::PortalPrivilege &portalPrivilege) const

Returns whether the list model contains the specified portalPrivilege.

[override virtual] QVariant PortalPrivilegeListModel::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 privilege referred to by the index.

[signal] void PortalPrivilegeListModel::errorOccurred(const Esri::ArcGISRuntime::Error &error)

Signal emitted when an error occurs.

Esri::ArcGISRuntime::PortalPrivilege PortalPrivilegeListModel::first() const

Returns the first PortalPrivilege in the list model.

int PortalPrivilegeListModel::indexOf(const Esri::ArcGISRuntime::PortalPrivilege &portalPrivilege) const

Returns the index of the PortalPrivilege portalPrivilege.

bool PortalPrivilegeListModel::isEmpty() const

Returns whether the list model is empty (contains no privileges).

[signal] void PortalPrivilegeListModel::itemAdded(int index)

Signal emitted when a PortalPrivilege is added to the list model.

index is the index of the added privilege.

[signal] void PortalPrivilegeListModel::itemRemoved(int index)

Signal emitted when a PortalPrivilege is removed from the list model.

index is the index of the removed privilege.

Esri::ArcGISRuntime::PortalPrivilege PortalPrivilegeListModel::last() const

Returns the last PortalPrivilege in the list model.

[override virtual] int PortalPrivilegeListModel::size() const

Returns the number of privileges contained in the list model.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4