12 #ifndef INTERFACE_TREE_MODEL_H
13 #define INTERFACE_TREE_MODEL_H
16 #include <wireshark.h>
23 #include <QAbstractTableModel>
26 #include <QItemSelection>
28 typedef QList<int> PointList;
30 enum InterfaceTreeColumns
33 IFTREE_COL_EXTCAP_PATH,
35 IFTREE_COL_DESCRIPTION,
36 IFTREE_COL_DISPLAY_NAME,
40 IFTREE_COL_PROMISCUOUSMODE,
45 #ifdef CAN_SET_CAPTURE_BUFFER_SIZE
48 #ifdef HAVE_PCAP_CREATE
49 IFTREE_COL_MONITOR_MODE,
51 IFTREE_COL_CAPTURE_FILTER,
64 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
65 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
66 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
67 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
69 void updateStatistic(
unsigned int row);
74 QString interfaceError();
75 QItemSelection selectedDevices();
76 bool updateSelectedDevices(QItemSelection sourceSelection);
78 QVariant getColumnContent(
int idx,
int col,
int role = Qt::DisplayRole);
80 #ifdef HAVE_PCAP_REMOTE
81 bool isRemote(
int idx);
84 static const QString DefaultNumericValue;
90 QVariant toolTipForInterface(
int idx)
const;
91 QMap<QString, PointList> points;
92 QMap<QString, bool> active;
95 if_stat_cache_t *stat_cache_;
Definition: interface_tree_model.h:57
InterfaceTreeModel(QObject *parent)
Definition: interface_tree_model.cpp:42
void interfaceListChanged()
Definition: interface_tree_model.cpp:357