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;
    59           DataSourceTreeModel(
const std::vector<te::da::DataSourceInfoPtr>& datasources, QWidget* parent);
    68           bool canFetchMore(
const QModelIndex& parent) 
const;
    70           int columnCount(
const QModelIndex& parent = QModelIndex()) 
const;
    72           QVariant data(
const QModelIndex& index, 
int role = Qt::DisplayRole) 
const;
    74           void fetchMore(
const QModelIndex& parent);
    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);
    88           void setCheckable(
const bool checkable);
    90           bool isCheckable() 
const;
    94           std::vector<AbstractDataSourceTreeItem*> 
m_items;
   104 #endif // __TERRALIB_QT_WIDGETS_DATASOURCE_EXPLORER_INTERNAL_DATASOURCETREEMODEL_H 
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr