26 #ifndef __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETTREEMODEL_H 27 #define __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETTREEMODEL_H 31 #include "../../../../dataaccess/datasource/DataSourceInfo.h" 33 #include "../../Config.h" 36 #include <QtCore/QAbstractItemModel> 46 class DataSetGroupItem;
58 bool canFetchMore(
const QModelIndex& parent)
const;
60 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
62 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
64 void fetchMore(
const QModelIndex& parent);
66 Qt::ItemFlags flags(
const QModelIndex& index)
const;
68 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const;
70 QModelIndex index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
72 QModelIndex parent(
const QModelIndex & index)
const;
74 int rowCount(
const QModelIndex & parent = QModelIndex())
const;
76 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
78 void setCheckable(
const bool checkable);
80 bool isCheckable()
const;
82 void setForceCatalogCache(
const bool force);
84 bool forceCatalogCache()
const;
93 void emitDataChangedForDescendants(
const QModelIndex& parent);
100 void emitDataChangedForAncestors(
const QModelIndex& index);
114 #endif // __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETTREEMODEL_H
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr