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;
39 enum InterfaceTreeColumns
42 IFTREE_COL_EXTCAP_PATH,
44 IFTREE_COL_DISPLAY_NAME,
45 IFTREE_COL_DESCRIPTION,
50 IFTREE_COL_PROMISCUOUSMODE,
54 #ifdef CAN_SET_CAPTURE_BUFFER_SIZE
57 #ifdef HAVE_PCAP_CREATE
58 IFTREE_COL_MONITOR_MODE,
60 IFTREE_COL_CAPTURE_FILTER,
73 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
74 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
75 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
76 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
78 void updateStatistic(
unsigned int row);
80 void setCache(if_stat_cache_t *stat_cache);
84 QString interfaceError();
85 QItemSelection selectedDevices();
86 bool updateSelectedDevices(QItemSelection sourceSelection);
88 QVariant getColumnContent(
int idx,
int col,
int role = Qt::DisplayRole);
90 #ifdef HAVE_PCAP_REMOTE
91 bool isRemote(
int idx);
94 static const QString DefaultNumericValue;
100 QVariant toolTipForInterface(
int idx)
const;
101 QMap<QString, PointList> points;
102 QMap<QString, bool> active;
105 if_stat_cache_t *stat_cache_;
Definition: interface_tree_model.h:66
InterfaceTreeModel(QObject *parent)
Definition: interface_tree_model.cpp:42
void interfaceListChanged()
Definition: interface_tree_model.cpp:357