26 #ifndef __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETTREEMODEL_H 
   27 #define __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETTREEMODEL_H 
   30 #include "../../../../dataaccess/datasource/DataSourceInfo.h" 
   31 #include "../../Config.h" 
   34 #include <QtCore/QAbstractItemModel> 
   44       class DataSetGroupItem;
 
   56           bool canFetchMore(
const QModelIndex& parent) 
const;
 
   58           int columnCount(
const QModelIndex& parent = QModelIndex()) 
const;
 
   60           QVariant data(
const QModelIndex& index, 
int role = Qt::DisplayRole) 
const;
 
   62           void fetchMore(
const QModelIndex& parent);
 
   64           Qt::ItemFlags flags(
const QModelIndex& index) 
const;
 
   66           bool hasChildren(
const QModelIndex& parent = QModelIndex()) 
const;
 
   68           QModelIndex index(
int row, 
int column, 
const QModelIndex & parent = QModelIndex()) 
const;
 
   70           QModelIndex parent(
const QModelIndex & index) 
const;
 
   72           int rowCount(
const QModelIndex & parent = QModelIndex()) 
const;
 
   74           bool setData(
const QModelIndex& index, 
const QVariant& value, 
int role = Qt::EditRole);
 
   76           void setCheckable(
const bool checkable);
 
   78           bool isCheckable() 
const;
 
   80           void setForceCatalogCache(
const bool force);
 
   82           bool forceCatalogCache() 
const;
 
   91           void emitDataChangedForDescendants(
const QModelIndex& parent);
 
   98           void emitDataChangedForAncestors(
const QModelIndex& index);
 
  112 #endif // __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETTREEMODEL_H 
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
bool m_checkable
If true the model allows for checkable items. 
 
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
 
DataSetGroupItem * m_datasets
A container for the datasets of the input data source. 
 
bool m_forceCatalogCache
If true every information looked in the data source catalog is also cahed in the data source catalog...