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;
59 bool canFetchMore(
const QModelIndex& parent)
const;
61 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
63 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
65 void fetchMore(
const QModelIndex& parent);
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);
79 void setCheckable(
const bool checkable);
81 bool isCheckable()
const;
83 void setForceCatalogCache(
const bool force);
85 bool forceCatalogCache()
const;
97 #endif // __TERRALIB_QT_WIDGETS_DATASET_EXPLORER_INTERNAL_DATASETCATEGORYMODEL_H
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr