10 #ifndef TRAFFIC_TABLE_DIALOG_H 11 #define TRAFFIC_TABLE_DIALOG_H 19 #include "epan/follow.h" 21 #include "capture_file.h" 22 #include "filter_action.h" 23 #include "wireshark_dialog.h" 26 #include <QTreeWidgetItem> 29 class QDialogButtonBox;
43 : QTreeWidgetItem (parent, strings) {}
44 virtual QVariant colData(
int col,
bool resolve_names)
const = 0;
56 QList<QVariant> rowData(
int row)
const;
58 bool hasNameResolution()
const;
61 void setNameResolutionEnabled(
bool enable);
64 const QString &trafficTreeTitle() {
return title_; }
75 int resizeThreshold()
const {
return 200; }
76 void contextMenuEvent(QContextMenuEvent *event);
79 virtual void updateItems() {}
83 void updateItemsForSettingChange();
86 void titleChanged(QWidget *tree,
const QString &text);
87 void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
93 Q_PROPERTY(
bool absolute_start_time READ absoluteStartTime)
94 Q_PROPERTY(
bool nanosecond_timestamps READ nanosecondTimestamps)
110 bool absoluteStartTime();
120 void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
121 void openFollowStreamDialog(follow_type_t type);
122 void openTcpStreamGraph(
int graph_type);
130 QMenu traffic_type_menu_;
131 QPushButton *copy_bt_;
132 QMap<int, TrafficTableTreeWidget *> proto_id_to_tree_;
134 const QList<int> defaultProtos()
const;
135 static gboolean fillTypeMenuFunc(
const void *key,
void *value,
void *userdata);
136 void fillTypeMenu(QList<int> &enabled_protos);
138 virtual bool addTrafficTable(
register_ct_t*) {
return false; }
139 void addProgressFrame(QObject *parent);
142 QDialogButtonBox *buttonBox()
const;
143 QTabWidget *trafficTableTabWidget()
const;
144 QCheckBox *displayFilterCheckBox()
const;
145 QCheckBox *nameResolutionCheckBox()
const;
146 QCheckBox *absoluteTimeCheckBox()
const;
147 QPushButton *enabledTypesPushButton()
const;
150 virtual void currentTabChanged();
151 void updateWidgets();
154 QString window_name_;
155 bool nanosecond_timestamps_;
157 QList<QVariant> curTreeRowData(
int row)
const;
161 void on_nameResolutionCheckBox_toggled(
bool checked);
162 void on_displayFilterCheckBox_toggled(
bool checked);
163 void setTabText(QWidget *tree,
const QString &text);
169 virtual void on_buttonBox_helpRequested() = 0;
172 #endif // TRAFFIC_TABLE_DIALOG_H
Definition: conversation_table.h:53
Definition: ui_about_dialog.h:291
Definition: conversation_table.c:24
Definition: ui_traffic_table_dialog.h:131
Definition: capture_event.h:19
bool nanosecondTimestamps()
Definition: traffic_table_dialog.h:115
Definition: wireshark_dialog.h:32
Definition: traffic_table_dialog.h:90
Definition: capture_file.h:22