• PopupAttachmentOrderByListModel
  • class Esri::ArcGISRuntime::PopupAttachmentOrderByListModel

    A list model storing attachment sort criteria for a pop-up. More...

    Header: #include <PopupAttachmentOrderByListModel.h>
    Since: Esri::ArcGISRuntime 300.2
    Inherits: QAbstractListModel and Esri::ArcGISRuntime::Iterable

    Public Functions

    void append(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy)
    void clear()
    bool contains(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy) const
    Esri::ArcGISRuntime::PopupAttachmentOrderBy *first() const
    int indexOf(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy) const
    void insert(int index, Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy)
    bool isEmpty() const
    Esri::ArcGISRuntime::PopupAttachmentOrderBy *last() const
    void move(int from, int to)
    void removeAt(int index)
    void removeOne(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy)

    Reimplemented Public Functions

    virtual Esri::ArcGISRuntime::PopupAttachmentOrderBy *at(int index) const override
    virtual int size() const override

    Detailed Description

    Member Function Documentation

    void PopupAttachmentOrderByListModel::append(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy)

    Appends popupAttachmentOrderBy to the list model.

    [override virtual] Esri::ArcGISRuntime::PopupAttachmentOrderBy *PopupAttachmentOrderByListModel::at(int index) const

    Returns the attachment sort criterion at index.

    void PopupAttachmentOrderByListModel::clear()

    Removes all attachment sort criteria from the list model.

    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.

    bool PopupAttachmentOrderByListModel::contains(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy) const

    Returns true if the list model contains popupAttachmentOrderBy.

    Esri::ArcGISRuntime::PopupAttachmentOrderBy *PopupAttachmentOrderByListModel::first() const

    Returns the first attachment sort criterion in the list model.

    int PopupAttachmentOrderByListModel::indexOf(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy) const

    Returns the index of popupAttachmentOrderBy, or -1 if it is not present.

    void PopupAttachmentOrderByListModel::insert(int index, Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy)

    Inserts popupAttachmentOrderBy at index in the list model.

    Appends to the list if index is greater than the current size.

    bool PopupAttachmentOrderByListModel::isEmpty() const

    Returns true if the list model contains no attachment sort criteria.

    Esri::ArcGISRuntime::PopupAttachmentOrderBy *PopupAttachmentOrderByListModel::last() const

    Returns the last attachment sort criterion in the list model.

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

    Moves an attachment sort criterion from index from to index to.

    void PopupAttachmentOrderByListModel::removeAt(int index)

    Removes the attachment sort criterion at index.

    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 PopupAttachmentOrderByListModel::removeOne(Esri::ArcGISRuntime::PopupAttachmentOrderBy *popupAttachmentOrderBy)

    Removes popupAttachmentOrderBy from the list model.

    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.

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

    Returns the number of attachment sort criteria in the list model.