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;
60 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
62 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
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);
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr