Obsolete Members for PortalItemListModel

  • PortalItemListModel
  • The following members of class PortalItemListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

    Public Functions

    (obsolete) void append(Esri::ArcGISRuntime::PortalItem *portalItem)
    (obsolete) void clear()
    (obsolete) void insert(int index, Esri::ArcGISRuntime::PortalItem *portalItem)
    (obsolete) void move(int from, int to)
    (obsolete) void removeAt(int index)
    (obsolete) void removeOne(Esri::ArcGISRuntime::PortalItem *portalItem)

    Signals

    (obsolete) void portalItemAdded(int index)
    (obsolete) void portalItemRemoved(int index)

    Member Function Documentation

    [signal] void PortalItemListModel::portalItemAdded(int index)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

    index is the index of the added portalItem. Use itemAdded(int index) instead

    [signal] void PortalItemListModel::portalItemRemoved(int index)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

    index is the index of the removed portalItem. Use itemRemoved(int index) instead

    void PortalItemListModel::append(Esri::ArcGISRuntime::PortalItem *portalItem)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Appends PortalItem portalItem to the list model.

    This method only affects the local instance of this list model class. To add an item to the online portal, use PortalUser::addPortalItemWithJson or PortalUser::addPortalItemWithUrl instead.

    void PortalItemListModel::clear()

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Removes all items from the list model.

    This method only affects the local instance of this list model class. To remove an item from the online portal, use PortalUser::deletePortalItem instead.

    List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.

    void PortalItemListModel::insert(int index, Esri::ArcGISRuntime::PortalItem *portalItem)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Inserts PortalItem portalItem at the specified index in the list model.

    This method will append to the list model if the index is greater than the current size of the list.

    This method only affects the local instance of this list model class. To add an item to the online portal, use PortalUser::addPortalItemWithJson or PortalUser::addPortalItemWithUrl instead.

    void PortalItemListModel::move(int from, int to)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Moves one PortalItem from an index in the list model to a different index.

    This method only affects the local instance of this list model class. To move items between folders, use PortalUser::movePortalItem instead.

    void PortalItemListModel::removeAt(int index)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Removes a PortalItem at the specified index.

    This method only affects the local instance of this list model class. To remove an item from the online portal, use PortalUser::deletePortalItem instead.

    List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.

    void PortalItemListModel::removeOne(Esri::ArcGISRuntime::PortalItem *portalItem)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Removes the PortalItem portalItem from the list model.

    This method only affects the local instance of this list model class. To remove an item from the online portal, use PortalUser::deletePortalItem instead.

    List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.