29 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
30 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
32 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
33 Qt::ItemFlags flags(
const QModelIndex &index)
const;
35 QVariant getColumnContent(
int idx,
int col,
int role = Qt::DisplayRole);
38 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
44 void deleteDevice(
const QModelIndex &index);
47#ifdef HAVE_PCAP_REMOTE
48 bool isRemote(
const QModelIndex &index)
const;
55 QList<interface_t> newDevices;
57 void saveNewDevices();
59 QMap<int, QSharedPointer<QMap<InterfaceTreeColumns, QVariant> > > * storage;
60 QList<InterfaceTreeColumns> editableColumns;
61 QList<InterfaceTreeColumns> checkableColumns;
64 const interface_t * lookup(
const QModelIndex &index)
const;
67 bool changeIsAllowed(InterfaceTreeColumns col)
const;
68 bool isAvailableField(
const QModelIndex &index)
const;
69 bool isAllowedToBeEdited(
const QModelIndex &index)
const;