A list of Geotrigger conditions. More...
|  Header |  #include <Geotrigger | 
|  Since |  Esri | 
|  Inherits |  QAbstract | 
This class was introduced in Esri::ArcGISRuntime 100.14.
Public Types
| enum | Geotrigger | 
Public Functions
| virtual | ~ | 
| void | append( | 
| void | clear() | 
| bool | contains( | 
|  Esri | first() const | 
| int | index | 
| void | insert(int index, Esri | 
| bool | is | 
|  Esri | last() const | 
| void | move(int from, int to) | 
| void | remove | 
| void | remove | 
Reimplemented Public Functions
|  virtual Esri | at(int index) const override | 
| virtual QVariant | data(const QModel | 
| virtual int | size() const override | 
Signals
| void | error | 
| void | item | 
| void | item | 
Detailed Description
The model returns data for the following roles:
| Role | Type | Description | GeotriggerRoles | 
|---|---|---|---|
| geotrigger | string | The geotrigger's name. | Geotrigger | 
| geotrigger | string | The geotrigger's I | Geotrigger | 
| geotrigger | Geotrigger | The type of geotrigger. | Geotrigger | 
| geotrigger | list | The list of requested actions for the geotrigger. | Geotrigger | 
Member Type Documentation
enum GeotriggerListModel::GeotriggerRoles    
This enum specifies the custom roles which can be used with GeotriggerListModel::data.
| Constant | Value | Description | 
|---|---|---|
Esri | Qt | The geotriggers's name. | 
Esri | Qt | The geotriggers's I | 
Esri | Qt | The type of the geotrigger. | 
Esri | Qt | The list of requested actions for the geotrigger. | 
Member Function Documentation
[signal] void GeotriggerListModel::errorOccurred (Esri::ArcGISRuntime::Error    error)   
Signal emitted when an error occurs.
- error - Details about the error.
 
[signal] void GeotriggerListModel::itemAdded (int index)   
Signal emitted when an item is added to the list model.
- index - The index of the added item.
 
This function was introduced in Esri::ArcGISRuntime 100.15.
[signal] void GeotriggerListModel::itemRemoved (int index)   
Signal emitted when an item is removed from the list model.
- index - The index of the removed item.
 
This function was introduced in Esri::ArcGISRuntime 100.15.
[override virtual] GeotriggerListModel::~GeotriggerListModel   ()   
Destructor.
void GeotriggerListModel::append(Esri::ArcGISRuntime::Geotrigger    *geotrigger)   
Appends a geotrigger to the geotrigger list model.
[override virtual] Esri::ArcGISRuntime::Geotrigger    *GeotriggerListModel::at(int index) const    
Returns the geotrigger at the specified index.
void GeotriggerListModel::clear()   
Removes all geotriggers 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 GeotriggerListModel::contains(Esri::ArcGISRuntime::Geotrigger    *geotrigger) const   
Returns true if the list model contains the specified geotrigger.
[override virtual] QVariant GeotriggerListModel::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 geotrigger referenced by the index.
- index. The index in the model for which to return data.
 - role. The role for which to return data.
 
Returns an empty value if the specified index is out-of-range.
Esri::ArcGISRuntime::Geotrigger    *GeotriggerListModel::first() const    
Returns the first geotrigger in the list model.
int GeotriggerListModel::indexOf (Esri::ArcGISRuntime::Geotrigger    *geotrigger) const   
Returns the index of the geotrigger specified.
void GeotriggerListModel::insert(int index, Esri::ArcGISRuntime::Geotrigger    *geotrigger)   
Inserts a geotrigger at a specified index in the list model.
This method appends the geotrigger to the list if the index is greater than the current list model size.
bool GeotriggerListModel::isEmpty () const   
Returns true if the list model contains no geotriggers.
Esri::ArcGISRuntime::Geotrigger    *GeotriggerListModel::last() const    
Returns the last geotrigger in the list model.
void GeotriggerListModel::move(int from, int to)   
Moves one geotrigger from an index in the list model to a different index.
void GeotriggerListModel::removeAt (int index)   
Removes a geotrigger at the specified index.
No geotriggers are removed if the specified index is out-of-range.
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 GeotriggerListModel::removeOne (Esri::ArcGISRuntime::Geotrigger    *geotrigger)   
Removes the specified geotrigger 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 GeotriggerListModel::size() const   
Returns the number of geotriggers contained in the list model.