26 #ifndef __TERRALIB_QT_WIDGETS_DATASOURCE_EXPLORER_INTERNAL_DATASOURCETREEMODEL_H
27 #define __TERRALIB_QT_WIDGETS_DATASOURCE_EXPLORER_INTERNAL_DATASOURCETREEMODEL_H
30 #include "../../Config.h"
31 #include "../../../../dataaccess/datasource/DataSourceInfo.h"
37 #include <QtCore/QAbstractItemModel>
48 class AbstractDataSourceTreeItem;
70 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
72 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
76 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
78 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const;
80 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
82 QModelIndex
parent(
const QModelIndex & index)
const;
84 int rowCount(
const QModelIndex & parent = QModelIndex())
const;
86 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
94 std::vector<AbstractDataSourceTreeItem*>
m_items;
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr