26 #ifndef __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETCATEGORYMODEL_H
27 #define __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETCATEGORYMODEL_H
30 #include "../../../../dataaccess/datasource/DataSourceInfo.h"
31 #include "../../Config.h"
37 #include <QtCore/QAbstractItemModel>
47 class DataSetCategoryGroupItem;
61 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
63 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
67 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
69 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const;
71 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
73 QModelIndex
parent(
const QModelIndex & index)
const;
75 int rowCount(
const QModelIndex & parent = QModelIndex())
const;
77 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr