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
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr