11 #ifndef INTERFACE_SORT_FILTER_MODEL_H 12 #define INTERFACE_SORT_FILTER_MODEL_H 16 #include <ui/qt/models/interface_tree_model.h> 20 #include <QSortFilterProxyModel> 28 void setStoreOnChange(
bool storeOnChange);
29 void resetAllFilter();
31 void setFilterHidden(
bool filter);
32 bool filterHidden()
const;
33 int interfacesHidden();
34 void toggleFilterHidden();
36 #ifdef HAVE_PCAP_REMOTE 37 void setRemoteDisplay(
bool remoteDisplay);
39 void toggleRemoteDisplay();
40 bool remoteInterfacesExist();
43 void setInterfaceTypeVisible(
int ifType,
bool visible);
44 bool isInterfaceTypeShown(
int ifType)
const;
45 void setFilterByType(
bool filter,
bool invert =
false);
46 bool filterByType()
const;
47 void toggleTypeVisibility(
int ifType);
49 QList<int> typesDisplayed();
51 void setColumns(QList<InterfaceTreeColumns> columns);
52 int mapSourceToColumn(InterfaceTreeColumns mdlIndex);
54 QModelIndex mapToSource(
const QModelIndex &proxyIndex)
const;
55 QModelIndex mapFromSource(
const QModelIndex &sourceIndex)
const;
57 QString interfaceError();
60 bool filterAcceptsRow(
int source_row,
const QModelIndex & source_parent)
const;
61 bool filterAcceptsColumn(
int source_column,
const QModelIndex & source_parent)
const;
66 bool _invertTypeFilter;
69 #ifdef HAVE_PCAP_REMOTE 73 QList<int> displayHiddenTypes;
75 QList<InterfaceTreeColumns> _columns;
78 void resetPreferenceData();
81 #endif // INTERFACE_SORT_FILTER_MODEL_H Definition: interface_sort_filter_model.h:22