A list model that stores a list of feature tables. More...
|  Header |  #include <Feature | 
|  Since |  Esri | 
|  Inherits |  QAbstract | 
This class was introduced in Esri::ArcGISRuntime 100.1.
Public Types
| enum | Feature | 
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
Modifying this model (adding, removing, or moving) will update the feature tables available in the Map.
The model returns data for the following roles:
| Role | Type | Description | FeatureTableRoles | 
|---|---|---|---|
| name | string | The table's name. | Name | 
| geometry | Geometry | The tables's geometry type. | Geometry | 
| has | bool | Whether the table contains features with geometry. | Has | 
| editable | bool | Whether the table is editable. | Editable | 
| number | qint64 | The number of features within the table. | Number | 
| load | int | The table's load error code. | Load | 
| load | Load | The table's load status. | Load | 
Member Type Documentation
enum FeatureTableListModel::FeatureTableRoles      
This enum specifies the custom roles which can be used with FeatureTableListModel::data.
| Constant | Value | Description | 
|---|---|---|
Esri | Qt | The table's name. | 
Esri | Qt | The tables's geometry type. | 
Esri | Qt | Whether the table contains features with geometry. | 
Esri | Qt | Whether the table is editable. | 
Esri | Qt | The number of features within the table. | 
Esri | Qt | The table's load error code. Deprecated. | 
Esri | Qt | The table's load status. | 
Member Function Documentation
[signal] void FeatureTableListModel::errorOccurred (Esri::ArcGISRuntime::Error    error)    
Signal emitted when an error occurs.
- error - Details about the error.
 
[signal] void FeatureTableListModel::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 FeatureTableListModel::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] FeatureTableListModel::~FeatureTableListModel    ()    
Destructor.
void FeatureTableListModel::append(Esri::ArcGISRuntime::FeatureTable     *featureTable )    
Appends a feature table (featureTable) to the feature table list model.
[override virtual] Esri::ArcGISRuntime::FeatureTable     *FeatureTableListModel::at(int index) const     
Returns the feature table at the specified index.
void FeatureTableListModel::clear()    
Removes all feature tables 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 FeatureTableListModel::contains(Esri::ArcGISRuntime::FeatureTable     *featureTable ) const    
Returns true if the list model contains the specific feature table featureTable.
[override virtual] QVariant FeatureTableListModel::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 feature table 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::FeatureTable     *FeatureTableListModel::first() const     
Returns the first feature table in the list model.
int FeatureTableListModel::indexOf (Esri::ArcGISRuntime::FeatureTable     *featureTable ) const    
Returns the index of the specific feature table featureTable.
void FeatureTableListModel::insert(int index, Esri::ArcGISRuntime::FeatureTable     *featureTable )    
Inserts a feature table (featureTable) at a specified index in the list model.
This method will append to the list if the index is greater than the current size of the list model.
bool FeatureTableListModel::isEmpty () const    
Returns true if the list model contains no feature tables.
Esri::ArcGISRuntime::FeatureTable     *FeatureTableListModel::last() const     
Returns the last feature table in the list model.
void FeatureTableListModel::move(int from, int to)    
Moves one feature table from an index in the list model to a different index.
void FeatureTableListModel::removeAt (int index)    
Removes a feature table at the specified 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 FeatureTableListModel::removeOne (Esri::ArcGISRuntime::FeatureTable     *featureTable )    
Removes a specific feature table (featureTable) 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 FeatureTableListModel::size() const    
Returns the number of feature tables contained in the list model.