11 #ifndef INTERFACE_TREE_MODEL_H 12 #define INTERFACE_TREE_MODEL_H 18 #include "ui/capture_globals.h" 23 #include <QAbstractTableModel> 26 #include <QItemSelection> 28 typedef QList<int> PointList;
30 enum InterfaceTreeColumns
33 IFTREE_COL_EXTCAP_PATH,
35 IFTREE_COL_INTERFACE_NAME,
36 IFTREE_COL_INTERFACE_COMMENT,
39 IFTREE_COL_PROMISCUOUSMODE,
43 #ifdef CAN_SET_CAPTURE_BUFFER_SIZE 46 #ifdef HAVE_PCAP_CREATE 47 IFTREE_COL_MONITOR_MODE,
49 IFTREE_COL_CAPTURE_FILTER,
61 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
62 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
63 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
64 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
66 void updateStatistic(
unsigned int row);
71 QString interfaceError();
72 QItemSelection selectedDevices();
73 bool updateSelectedDevices(QItemSelection sourceSelection);
75 QVariant getColumnContent(
int idx,
int col,
int role = Qt::DisplayRole);
77 #ifdef HAVE_PCAP_REMOTE 78 bool isRemote(
int idx);
81 static const QString DefaultNumericValue;
84 void getPoints(
int idx, PointList *pts);
90 QVariant toolTipForInterface(
int idx)
const;
91 QMap<QString, PointList> points;
94 if_stat_cache_t *stat_cache_;
95 #endif // HAVE_LIBPCAP 98 #endif // INTERFACE_TREE_MODEL_H Definition: interface_tree_model.h:54
void interfaceListChanged()
Definition: interface_tree_model.cpp:319
InterfaceTreeModel(QObject *parent)
Definition: interface_tree_model.cpp:42