/* * pvsNetworkInterfaceListModel.h * * Created on: 04.08.2010 * Author: brs */ #ifndef PVSNETWORKINTERFACELISTMODEL_H_ #define PVSNETWORKINTERFACELISTMODEL_H_ #include #include #include #include class PVSNetworkInterfaceListModel : public QAbstractListModel { Q_OBJECT public: PVSNetworkInterfaceListModel(QObject* parent = 0); virtual ~PVSNetworkInterfaceListModel(); QVariant data(QModelIndex const& index, int role = Qt::DisplayRole) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; int rowCount(QModelIndex const&) const; private: QList _interfaces; public slots: void reloadInterfaceList(); }; #endif /* PVSNETWORKINTERFACELISTMODEL_H_ */