18 #include <ui/qt/widgets/detachable_tabwidget.h>
25 #include <QAbstractItemDelegate>
26 #include <QSortFilterProxyModel>
36 typedef ATapDataModel * (*ATapModelCallback)(
int protoId, QString filter);
45 typedef QAbstractItemDelegate * (*ATapCreateDelegate)(QWidget * parent);
54 TabData(QString name,
int proto);
120 void setFilter(QString filter = QString());
127 void setNameResolution(
bool checked);
147 QMenu * createCopyMenu(QWidget * parent =
nullptr);
156 bool hasNameResolution(
int tabIdx = -1);
158 #ifdef HAVE_MAXMINDDB
166 bool hasGeoIPData(
int tabIdx = -1);
175 QUrl createGeoIPMap(
bool onlyJSON,
int tabIdx = -1);
185 QVariant currentItemData(
int role = Qt::DisplayRole);
192 void useNanosecondTimestamps(
bool useNSTime);
201 void useAbsoluteTime(
bool absolute);
203 void setOpenTabs(QList<int> protocols);
206 void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
207 void tabDataChanged(
int idx);
208 void retapRequired();
209 void disablingTaps();
210 void tabsChanged(QList<int> protocols);
211 void columnsHaveChanged(QList<int> columns);
215 virtual void detachTab(
int idx, QPoint pos)
override;
216 virtual void attachTab(QWidget * content, QString name)
override;
219 QList<int> _allProtocols;
220 QMap<int, int> _tabs;
223 GList ** _recentList;
224 GList ** _recentColumnList;
227 bool _nameResolution;
229 QTreeView * createTree(
int protoId);
235 void insertProtoTab(
int protoId,
bool emitSignals =
true);
236 void removeProtoTab(
int protoId,
bool emitSignals =
true);
238 #ifdef HAVE_MAXMINDDB
245 void doCurrentIndexChange(
const QModelIndex & cur,
const QModelIndex & prev);
DataModel for tap user data.
Definition: atap_data_model.h:33
Definition: traffic_tab.h:48
Definition: traffic_tree.h:76
A QTabWidget class, providing tap information.
Definition: traffic_tab.h:75
Definition: traffic_types_list.h:100
QAbstractItemDelegate *(* ATapCreateDelegate)(QWidget *parent)
Callback for creating an item delegate.
Definition: traffic_tab.h:45
ATapDataModel *(* ATapModelCallback)(int protoId, QString filter)
Callback for creating an ATapDataModel.
Definition: traffic_tab.h:36