| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
wireshark_main_window.h
Go to the documentation of this file.
1
9
10#ifndef WIRESHARK_MAIN_WINDOW_H
11#define WIRESHARK_MAIN_WINDOW_H
12
32
38
39#include <stdio.h>
40
41#include <config.h>
42
43#include "ui/ws_ui_util.h"
44#include "ui/iface_toolbar.h"
45
46#ifdef HAVE_LIBPCAP
47#include "ui/capture_opts.h"
48#endif
49#include "ui/plugins/include/plugin_if.h"
50
51#include <epan/timestamp.h>
52
53#include <capture/capture_session.h>
54
55#include <QMainWindow>
56#include <QPointer>
57
58#ifdef _WIN32
59# include <QTimer>
60#else
61# include <QSocketNotifier>
62#endif
63
64#include "capture_file_dialog.h"
65#include "capture_file_properties_dialog.h"
66#include <ui/qt/utils/field_information.h>
67#include <ui/qt/widgets/display_filter_entry.h>
68#include "main_window.h"
69#include "rtp_stream_dialog.h"
70#include "rtp_analysis_dialog.h"
71#include "tlskeylog_launcher_dialog.h"
72
73 class AccordionFrame;
74 class DataSourceTab;
75 class CaptureOptionsDialog;
76 class DisStreamDialog;
77 class InPacketSearch;
78 class PrintDialog;
79 class FileSetDialog;
80 class FilterDialog;
81 class FunnelStatistics;
82 class WelcomePage;
83 class PacketCommentDialog;
84 class PacketDiagram;
85 class PacketList;
86 class ProtoTree;
87#if defined(HAVE_LIBNL) && defined(HAVE_NL80211)
88 class WirelessFrame;
89#endif
90 class FilterExpressionToolBar;
91 class WiresharkApplication;
92
93 class QAction;
94 class QActionGroup;
95
96 namespace Ui {
97 class WiresharkMainWindow;
98}
99
100Q_DECLARE_METATYPE(ts_type)
101Q_DECLARE_METATYPE(ts_precision)
102
103
108class WiresharkMainWindow : public MainWindow
109{
110 Q_OBJECT
111
112 public:
118 explicit WiresharkMainWindow(QWidget *parent = nullptr);
119
123 ~WiresharkMainWindow();
124
125#ifdef HAVE_LIBPCAP
130 capture_session *captureSession() { return &cap_session_; }
131
136 info_data_t *captureInfoData() { return &info_data_; }
137#endif
138
143 QMenu *createPopupMenu() override;
144
148 void setFunnelMenus(void);
149
154 void removeAdditionalToolbar(QString toolbarName);
155
160 void addInterfaceToolbar(const iface_toolbar *toolbar_entry);
161
166 void removeInterfaceToolbar(const char *menu_title);
167
172 QString getMwFileName();
173
178 void setMwFileName(QString fileName);
179
180 protected:
187 bool eventFilter(QObject *obj, QEvent *event) override;
188
194 bool event(QEvent *event) override;
195
200 void keyPressEvent(QKeyEvent *event) override;
201
206 void closeEvent(QCloseEvent *event) override;
207
212 void dragEnterEvent(QDragEnterEvent *event) override;
213
218 void dropEvent(QDropEvent *event) override;
219
224 void changeEvent(QEvent *event) override;
225
230 void openRecentCaptureFile(const QString &filename) override;
231
239 bool tryClosingCaptureFile(QString before_what, FileCloseContext context = Default) override;
240
241 private:
246 enum MatchSelected {
247 MatchSelectedReplace,
248 MatchSelectedAnd,
249 MatchSelectedOr,
250 MatchSelectedNot,
251 MatchSelectedAndNot,
252 MatchSelectedOrNot
253 };
254
255 Ui::WiresharkMainWindow *main_ui_;
256 QFont mono_font_;
257#if defined(HAVE_LIBNL) && defined(HAVE_NL80211)
258 WirelessFrame *wireless_frame_;
259#endif
260 QWidget *previous_focus_;
261 FileSetDialog *file_set_dialog_;
262 QActionGroup *show_hide_actions_;
263 QActionGroup *time_display_actions_;
264 QActionGroup *time_precision_actions_;
265 FunnelStatistics *funnel_statistics_;
266 QAction *action_telephony_dis_streams_;
267 QAction *action_telephony_imsi_list_;
268 QList<QPair<QAction *, bool>> freeze_actions_;
269 QPointer<QWidget> freeze_focus_;
270 QMap<QAction *, ts_type> td_actions;
271 QMap<QAction *, ts_precision> tp_actions;
272 bool was_maximized_;
273
274 /* the following values are maintained so that the capture file name and status
275 is available when there is no cf structure available */
276
277 QString mwFileName_;
278
279 bool capture_stopping_;
280 bool capture_filter_valid_;
281#ifdef HAVE_LIBPCAP
282 capture_session cap_session_;
283 CaptureOptionsDialog *capture_options_dialog_;
284 info_data_t info_data_;
285#endif
286 InPacketSearch *in_packet_search_;
287 QPoint dragStartPosition;
288
289 QPointer<TLSKeylogDialog> tlskeylog_dialog_;
290
294 void freeze();
295
299 void thaw();
300
305 void mergeCaptureFile();
306
311 void importCaptureFile();
312
319 bool saveCaptureFile(capture_file *cf, bool dont_reopen);
320
329 bool saveAsCaptureFile(capture_file *cf, bool must_support_comments = false, bool dont_reopen = false);
330
335 void exportSelectedPackets();
336
341 void exportDissections(export_type_e export_type);
342
347 void enableAggregationView(bool enable) const;
348
349#ifdef Q_OS_WIN
357 void fileAddExtension(QString &file_name, int file_type, ws_compression_type compression_type);
358#endif
359
364 void captureStop(bool discard = false);
365
367 void initMainToolbarIcons();
368
370 void initShowHideMainWidgets();
371
373 void initTimeDisplayFormatMenu();
374
376 void initTimePrecisionFormatMenu();
377
379 void initFreezeActions();
380
385 void setMenusForCaptureFile(bool force_disable = false) override;
386
391 void setMenusForCaptureInProgress(bool capture_in_progress = false);
392
394 void setMenusForCaptureStopping();
395
400 void setForCapturedPackets(bool have_captured_packets);
401
406 void setMenusForFileSet(bool enable_list_files);
407
411 void updateStyleSheet();
412
419 void externalMenuHelper(ext_menu_t *menu, QMenu *subMenu, int depth);
420
428 void setForCaptureInProgress(bool capture_in_progress = false, bool handle_toolbars = false, GArray *ifaces = NULL);
429
437 QMenu *findOrAddMenu(QMenu *parent_menu, const QStringList &menu_parts);
438
445 QMenu *findOrAddMenubar(const QString menu_text);
446
451 void captureFileReadStarted(const QString &action);
452
458 void addMenusandSubmenus(QAction *action, QMenu *cur_menu);
459
465 void removeMenusandSubmenus(QAction *action, QMenu *cur_menu);
466
472 void addMenuActions(QList<QAction *> &actions, int menu_group);
473
479 void removeMenuActions(QList<QAction *> &actions, int menu_group);
480
486 void goToConversationFrame(bool go_next, bool start_current = true);
487
493 void colorizeWithFilter(QByteArray filter, int color_number = -1);
494
495signals:
500 void setDissectedCaptureFile(capture_file *cf);
501
503 void closePacketDialogs();
504
506 void reloadFields();
507
512 void packetInfoChanged(struct _packet_info *pinfo);
513
518 void fieldFilterChanged(const QByteArray field_filter);
519
524 void selectRtpStream(rtpstream_id_t *id);
525
530 void deselectRtpStream(rtpstream_id_t *id);
531
532#ifdef HAVE_LIBPCAP
538 void showExtcapOptions(QString &device_name, bool startCaptureOnClose);
539#endif
540
541 public slots:
542 // Qt lets you connect signals and slots using functors (new, manual style)
543 // and strings (old style). Functors are preferred since they're connected at
544 // compile time and less error prone.
545 //
546 // If you're manually connecting a signal to a slot, don't prefix its name
547 // with "on_". Otherwise Qt will try to automatically connect it and you'll
548 // get runtime warnings.
549
550 // in main_window_slots.cpp
551
560 bool openCaptureFile(QString cf_path, QString display_filter, unsigned int type, bool is_tempfile = false);
561
568 bool openCaptureFile(QString cf_path = QString(), QString display_filter = QString()) { return openCaptureFile(cf_path, display_filter, WTAP_TYPE_AUTO); }
569
570
572 void layoutToolbars();
573
575 void updatePreferenceActions();
576
578 void updateRecentActions();
579
583 void updateAggregationView() const;
584
586 void setTitlebarForCaptureFile();
587
589 void showCaptureOptionsDialog();
590
591#ifdef HAVE_LIBPCAP
596 void captureCapturePrepared(capture_session *session);
597
602 void captureCaptureUpdateStarted(capture_session *session);
603
608 void captureCaptureUpdateFinished(capture_session *session);
609
614 void captureCaptureFixedFinished(capture_session *cap_session);
615
619 void captureCaptureFailed(capture_session *);
620#endif
621
623 void captureFileOpened();
624
626 void captureFileReadFinished();
627
629 void captureFileClosing();
630
632 void captureFileClosed();
633
644 void launchRLCGraph(bool channelKnown, uint8_t RAT, uint16_t ueid, uint8_t rlcMode,
645 uint16_t channelType, uint16_t channelId, uint8_t direction);
646
647#ifdef HAVE_LUA
649 void openLuaDebuggerDialog();
650#endif
651
656 void rtpPlayerDialogReplaceRtpStreams(QVector<rtpstream_id_t *> stream_ids);
657
662 void rtpPlayerDialogAddRtpStreams(QVector<rtpstream_id_t *> stream_ids);
663
668 void rtpPlayerDialogRemoveRtpStreams(QVector<rtpstream_id_t *> stream_ids);
669
674 void rtpAnalysisDialogReplaceRtpStreams(QVector<rtpstream_id_t *> stream_ids);
675
680 void rtpAnalysisDialogAddRtpStreams(QVector<rtpstream_id_t *> stream_ids);
681
686 void rtpAnalysisDialogRemoveRtpStreams(QVector<rtpstream_id_t *> stream_ids);
687
692 void rtpStreamsDialogSelectRtpStreams(QVector<rtpstream_id_t *> stream_ids);
693
698 void rtpStreamsDialogDeselectRtpStreams(QVector<rtpstream_id_t *> stream_ids);
699
700 protected slots:
706 void applyFilter(QString new_filter = QString(), bool force = false) override;
707
708 private slots:
716 void onAppInitialized();
717
722 void captureEventHandler(CaptureEvent ev);
723
725 void initViewColorizeMenu();
726
728 void initConversationMenus();
729
737 static bool addExportObjectsMenuItem(const void *key, void *value, void *userdata);
738
740 void initExportObjectsMenus();
741
749 static bool addFollowStreamMenuItem(const void *key, void *value, void *userdata);
750
752 void initFollowStreamMenus();
753
758 void startCapture(QStringList interfaces);
759
761 void startCapture();
762
764 void pushLiveCaptureInProgress();
765
767 void popLiveCaptureInProgress();
768
770 void stopCapture();
771
776 void aggregationViewChanged(bool enable) const;
777
779 void loadWindowGeometry();
780
782 void saveWindowGeometry();
783
787 void mainStackChanged(int);
788
790 void updateRecentCaptures();
791
793 void addPacketComment();
794
796 void editPacketComment();
797
799 void deletePacketComment();
800
802 void deleteCommentsFromPackets();
803
810 QString commentToMenuText(QString text, int max_len = 40);
811
813 void setEditCommentsMenu();
814
816 void setMenusForSelectedPacket();
817
822 void setMenusForSelectedTreeRow(FieldInformation *fi = NULL);
823
825 void interfaceSelectionChanged();
826
831 void captureFilterSyntaxChanged(bool valid);
832
834 void redissectPackets();
835
837 void checkDisplayFilter();
838
840 void fieldsChanged();
841
843 void reloadLuaPlugins();
844
850 void showAccordionFrame(AccordionFrame *show_frame, bool toggle = false);
851
856 void showColumnEditor(int column);
857
859 void showPreferenceEditor();
860
862 void addStatsPluginsToMenu();
863
865 void addDynamicMenus();
866
868 void reloadDynamicMenus();
869
871 void addPluginIFStructures();
872
878 QMenu *searchSubMenu(QString objectName);
879
883 void activatePluginIFToolbar(bool);
884
890 void startInterfaceCapture(bool valid, const QString capture_filter);
891
894 void applyGlobalCommandLineOptions();
895
900 void setFeaturesEnabled(bool enabled = true);
901
903 void on_actionNewDisplayFilterExpression_triggered();
904
910 void onFilterSelected(QString filterText, bool prepare);
911
913 void onFilterPreferences();
914
919 void onFilterEdit(int uatIndex);
920
927 void queuedFilterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
928
935 void openStatCommandDialog(const QString &menu_path, const char *arg, void *userdata);
936
943 void openTapParameterDialog(const QString cfg_str, const QString arg, void *userdata);
944
946 void openTapParameterDialog();
947
949 void connectFileMenuActions();
950
952 void exportPacketBytes();
953
955 void exportPDU();
956
958 void stripPacketHeaders();
959
961 void exportTLSSessionKeys();
962
964 void printFile();
965
967 void connectEditMenuActions();
968
973 void copySelectedItems(WiresharkMainWindow::CopySelected selection_type);
974
976 void findPacket();
977
979 void editTimeShift();
980
982 void editConfigurationProfiles();
983
988 void editTimeShiftFinished(int result);
989
995 void addPacketCommentFinished(PacketCommentDialog *pc_dialog, int result);
996
1003 void editPacketCommentFinished(PacketCommentDialog *pc_dialog, int result, unsigned nComment);
1004
1006 void deleteAllPacketComments();
1007
1012 void deleteAllPacketCommentsFinished(int result);
1013
1019 void injectSecrets(const char *proto_name, const char *wiki_link);
1020
1022 void discardAllSecrets();
1023
1028 void discardAllSecretsFinished(int result);
1029
1034 void showPreferencesDialog(QString module_name) override;
1035
1037 void connectViewMenuActions();
1038
1043 void showHideMainWidgets(QAction *action);
1044
1049 void setTimestampFormat(QAction *action);
1050
1055 void setTimestampPrecision(QAction *action);
1056
1061 void setTimeDisplaySecondsWithHoursAndMinutes(bool checked);
1062
1064 void editResolvedName();
1065
1067 void setNameResolution();
1068
1070 void showColoringRulesDialog();
1071
1077 void colorizeConversation(bool create_rule = false);
1078
1080 void colorizeActionTriggered();
1081
1086 void openPacketDialog(bool from_reference = false);
1087
1089 void reloadCaptureFileAsFormatOrCapture();
1090
1092 void reloadCaptureFile();
1093
1095 void connectGoMenuActions();
1096
1098 void setPreviousFocus();
1099
1101 void resetPreviousFocus();
1102
1104 void connectCaptureMenuActions();
1105
1107 void startCaptureTriggered();
1108
1110 void connectAnalyzeMenuActions();
1111
1118 void matchFieldFilter(FilterAction::Action action, FilterAction::ActionType filter_type);
1119
1121 void applyFieldAsColumn();
1122
1124 void filterMenuAboutToShow();
1125
1127 void applyConversationFilter();
1128
1130 void applyExportObject();
1131
1139 void openFollowStreamDialog(int proto_id, unsigned stream_num, unsigned sub_stream_num, bool use_stream_index = true);
1140
1145 void openFollowStreamDialog(int proto_id);
1146
1153 void openIOGraph(bool filtered, QVector<uint> conv_ids, QVector<QVariant> conv_agg);
1154
1158 void statCommandExpertInfo(const char *, void *);
1159
1161 void connectHelpMenuActions();
1162
1164 void goToCancelClicked();
1165
1167 void goToGoClicked();
1168
1170 void goToLineEditReturnPressed();
1171
1173 void connectStatisticsMenuActions();
1174
1176 void showResolvedAddressesDialog();
1177
1179 void showConversationsDialog();
1180
1182 void showEndpointsDialog();
1183
1185 void showDistributionDialog(const QString &abbreviation);
1186 void showDistributionDialog();
1187
1192 void openTcpStreamDialog(int graph_type);
1193 void openTcpDedupDialog();
1194
1196 void openSCTPAllAssocsDialog();
1197
1199 void on_actionSCTPShowAllAssociations_triggered();
1200
1202 void on_actionSCTPAnalyseThisAssociation_triggered();
1203
1205 void on_actionSCTPFilterThisAssociation_triggered();
1206
1210 void statCommandMulticastStatistics(const char *, void *);
1211
1215 void statCommandWlanStatistics(const char *, void *);
1216
1221 void openStatisticsTreeDialog(const char *abbr);
1222
1226 void statCommandIOGraph(const char *, void *);
1227
1233 void showIOGraphDialog(io_graph_item_unit_t value_units, QString yfield) override;
1234
1240 void showPlotDialog(const QString &y_field = QString(), bool filtered = false) override;
1241
1243 void connectTelephonyMenuActions();
1244
1249 DisStreamDialog *openTelephonyDisStreamsDialog();
1250
1255 RtpStreamDialog *openTelephonyRtpStreamsDialog();
1256
1261 RtpPlayerDialog *openTelephonyRtpPlayerDialog();
1262
1267 RtpAnalysisDialog *openTelephonyRtpAnalysisDialog();
1268
1273 void statCommandLteMacStatistics(const char *arg, void *);
1274
1279 void statCommandLteRlcStatistics(const char *arg, void *);
1280
1282 void openRtpStreamAnalysisDialog();
1283
1285 void openRtpPlayerDialog();
1286
1288 void connectWirelessMenuActions();
1289
1291 void connectToolsMenuActions();
1292
1294 void externalMenuItemTriggered();
1295
1297 void on_actionContextWikiProtocolPage_triggered();
1298
1300 void on_actionContextFilterFieldReference_triggered();
1301
1306 void extcap_options_finished(int result);
1307
1313 void showExtcapOptionsDialog(QString device_name, bool startCaptureOnClose);
1314
1322 QString findRtpStreams(QVector<rtpstream_id_t *> *stream_ids, bool reverse);
1323
1325 void openTLSKeylogDialog();
1326
1328 friend class MainApplication;
1329};
1330
1331#endif // WIRESHARK_MAIN_WINDOW_H
capture_file_dialog.h
capture_file_properties_dialog.h
info_data_t
struct _info_data info_data_t
Aggregates packet count statistics and UI state for a live capture info display.
capture_opts.h
capture_session.h
capture_session
struct _capture_session capture_session
Opaque handle representing an active or pending capture session.
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
AccordionFrame
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
CaptureEvent
Represents an event occurring during a capture or file operation.
Definition capture_event.h:24
DataSourceTab
A tab widget that manages and displays different data sources for a packet (e.g., Hex,...
Definition data_source_tab.h:36
DisStreamDialog
A dialog for viewing and managing DIS (Distributed Interactive Simulation) streams from a capture fil...
Definition dis_stream_dialog.h:34
FieldInformation
Represents information about a dissected packet field.
Definition field_information.h:26
FileSetDialog
A dialog for managing and displaying capture file sets.
Definition file_set_dialog.h:32
FilterAction::Action
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
FilterAction::ActionType
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
FilterDialog
A dialog for managing and editing capture filters, display filters, and display macros.
Definition filter_dialog.h:31
FilterExpressionToolBar
A toolbar that displays filter expressions and supports drag-and-drop operations.
Definition filter_expression_toolbar.h:21
FunnelStatistics
Manages statistics and user interface interactions for Lua-based funnel plugins.
Definition funnel_statistics.h:35
InPacketSearch
Search-within-current-packet logic shared by Find Packet (main window) and InPacketFindBar (single-pa...
Definition in_packet_search.h:24
MainWindow::CopySelected
CopySelected
Enumeration for determining what to copy when items are selected.
Definition main_window.h:228
MainWindow::MainWindow
MainWindow(QWidget *parent=nullptr)
Constructs a new MainWindow.
Definition main_window.cpp:50
MainWindow::FileCloseContext
FileCloseContext
Context under which a capture file is being closed.
Definition main_window.h:252
MainWindow::Default
@ Default
Default closing context.
Definition main_window.h:254
PacketCommentDialog
Dialog for viewing or editing a packet comment.
Definition packet_comment_dialog.h:23
PacketDiagram
A graphics view widget for displaying protocol packet diagrams.
Definition packet_diagram.h:29
PacketList
The main packet list view for displaying captured packets.
Definition packet_list.h:45
PrintDialog
Dialog that provides packet print and print-preview functionality for a live or saved capture file.
Definition print_dialog.h:31
ProtoTree
A tree view for displaying protocol dissection details.
Definition proto_tree.h:30
RtpAnalysisDialog
Singleton dialog for analyzing RTP streams.
Definition rtp_analysis_dialog.h:102
RtpPlayerDialog
Singleton dialog for playing and analyzing RTP audio streams. Singleton pattern based on https://refa...
Definition rtp_player_dialog.h:108
RtpStreamDialog
Singleton dialog for viewing and managing RTP streams. Singleton pattern based on https://refactoring...
Definition rtp_stream_dialog.h:32
WelcomePage
Widget displayed on application startup, providing interface selection, capture filter configuration,...
Definition welcome_page.h:31
WirelessFrame
Toolbar frame that exposes 802.11 wireless interface controls — channel, channel type,...
Definition wireless_frame.h:27
WiresharkApplication
Top-level Qt application object for the Wireshark GUI.
Definition wireshark_application.h:19
WiresharkMainWindow::event
bool event(QEvent *event) override
Handles window-level events such as activation changes.
Definition wireshark_main_window.cpp:945
WiresharkMainWindow::openCaptureFile
bool openCaptureFile(QString cf_path, QString display_filter, unsigned int type, bool is_tempfile=false)
Opens a capture file.
Definition wireshark_main_window_slots.cpp:205
WiresharkMainWindow::captureFileReadFinished
void captureFileReadFinished()
Updates UI state after a capture file has been fully read.
Definition wireshark_main_window_slots.cpp:800
WiresharkMainWindow::rtpPlayerDialogAddRtpStreams
void rtpPlayerDialogAddRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Adds streams to the RTP Player dialog.
Definition wireshark_main_window_slots.cpp:4318
WiresharkMainWindow::updateAggregationView
void updateAggregationView() const
Refreshes the packet aggregation view to reflect the current capture state.
Definition wireshark_main_window_slots.cpp:443
WiresharkMainWindow::launchRLCGraph
void launchRLCGraph(bool channelKnown, uint8_t RAT, uint16_t ueid, uint8_t rlcMode, uint16_t channelType, uint16_t channelId, uint8_t direction)
Opens the LTE RLC graph dialog for a specific channel.
Definition wireshark_main_window_slots.cpp:3944
WiresharkMainWindow::openRecentCaptureFile
void openRecentCaptureFile(const QString &filename) override
Opens the given recent capture file, handling any necessary prompts.
Definition wireshark_main_window_slots.cpp:1061
WiresharkMainWindow::keyPressEvent
void keyPressEvent(QKeyEvent *event) override
Handles key press events for global keyboard shortcuts.
Definition wireshark_main_window.cpp:959
WiresharkMainWindow::dropEvent
void dropEvent(QDropEvent *event) override
Opens a capture file dropped onto the window.
Definition wireshark_main_window.cpp:1092
WiresharkMainWindow::rtpPlayerDialogReplaceRtpStreams
void rtpPlayerDialogReplaceRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Replaces all streams in the RTP Player dialog with the given stream list.
Definition wireshark_main_window_slots.cpp:4311
WiresharkMainWindow::MainApplication
friend class MainApplication
Friend class allowing access to private members.
Definition wireshark_main_window.h:1328
WiresharkMainWindow::createPopupMenu
QMenu * createPopupMenu() override
Creates and returns the window's right-click popup menu.
Definition wireshark_main_window.cpp:801
WiresharkMainWindow::removeInterfaceToolbar
void removeInterfaceToolbar(const char *menu_title)
Removes the interface toolbar with the given menu title.
Definition wireshark_main_window.cpp:875
WiresharkMainWindow::rtpAnalysisDialogReplaceRtpStreams
void rtpAnalysisDialogReplaceRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Replaces all streams in the RTP Analysis dialog with the given stream list.
Definition wireshark_main_window_slots.cpp:4332
WiresharkMainWindow::setFunnelMenus
void setFunnelMenus(void)
Rebuilds the Lua funnel statistics menus from registered funnel entries.
Definition wireshark_main_window.cpp:3017
WiresharkMainWindow::changeEvent
void changeEvent(QEvent *event) override
Responds to locale or palette changes by retranslating the UI.
Definition wireshark_main_window.cpp:2604
WiresharkMainWindow::eventFilter
bool eventFilter(QObject *obj, QEvent *event) override
Filters events on watched objects (e.g. focus changes on child widgets).
Definition wireshark_main_window.cpp:927
WiresharkMainWindow::updatePreferenceActions
void updatePreferenceActions()
Refreshes menu items that reflect preference values.
Definition wireshark_main_window_slots.cpp:380
WiresharkMainWindow::rtpPlayerDialogRemoveRtpStreams
void rtpPlayerDialogRemoveRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Removes streams from the RTP Player dialog.
Definition wireshark_main_window_slots.cpp:4325
WiresharkMainWindow::packetInfoChanged
void packetInfoChanged(struct _packet_info *pinfo)
Emitted when the selected packet changes, providing the new packet info.
WiresharkMainWindow::setTitlebarForCaptureFile
void setTitlebarForCaptureFile()
Updates the window title bar to reflect the current capture file name and state.
Definition wireshark_main_window.cpp:2435
WiresharkMainWindow::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event) override
Accepts drag-enter events for capture files dragged onto the window.
Definition wireshark_main_window.cpp:1061
WiresharkMainWindow::rtpStreamsDialogSelectRtpStreams
void rtpStreamsDialogSelectRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Selects the given streams in the RTP Streams dialog.
Definition wireshark_main_window_slots.cpp:4347
WiresharkMainWindow::captureFileClosing
void captureFileClosing()
Updates UI state while a capture file is being closed.
Definition wireshark_main_window_slots.cpp:826
WiresharkMainWindow::setDissectedCaptureFile
void setDissectedCaptureFile(capture_file *cf)
Emitted when a dissected capture file becomes the active file.
WiresharkMainWindow::updateRecentActions
void updateRecentActions()
Rebuilds the File → Open Recent submenu from the recent-files list.
Definition wireshark_main_window_slots.cpp:396
WiresharkMainWindow::applyFilter
void applyFilter(QString new_filter=QString(), bool force=false) override
Applies a new display filter to the open capture file.
Definition wireshark_main_window_slots.cpp:313
WiresharkMainWindow::rtpAnalysisDialogAddRtpStreams
void rtpAnalysisDialogAddRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Adds streams to the RTP Analysis dialog.
Definition wireshark_main_window_slots.cpp:4337
WiresharkMainWindow::selectRtpStream
void selectRtpStream(rtpstream_id_t *id)
Emitted to request that an RTP stream be selected in all interested dialogs.
WiresharkMainWindow::deselectRtpStream
void deselectRtpStream(rtpstream_id_t *id)
Emitted to request that an RTP stream be deselected in all interested dialogs.
WiresharkMainWindow::WiresharkMainWindow
WiresharkMainWindow(QWidget *parent=nullptr)
Constructs the Wireshark main window and initialises all menus, toolbars, and UI components.
Definition wireshark_main_window.cpp:344
WiresharkMainWindow::rtpAnalysisDialogRemoveRtpStreams
void rtpAnalysisDialogRemoveRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Removes streams from the RTP Analysis dialog.
Definition wireshark_main_window_slots.cpp:4342
WiresharkMainWindow::captureFileOpened
void captureFileOpened()
Updates UI state when a capture file is first opened.
Definition wireshark_main_window_slots.cpp:773
WiresharkMainWindow::openCaptureFile
bool openCaptureFile(QString cf_path=QString(), QString display_filter=QString())
Convenience overload that auto-detects file type.
Definition wireshark_main_window.h:568
WiresharkMainWindow::layoutToolbars
void layoutToolbars()
Repositions and resizes toolbars according to current layout settings.
Definition wireshark_main_window_slots.cpp:326
WiresharkMainWindow::~WiresharkMainWindow
~WiresharkMainWindow()
Destroys the main window and releases all associated resources.
Definition wireshark_main_window.cpp:779
WiresharkMainWindow::captureFileClosed
void captureFileClosed()
Resets UI state after a capture file has been fully closed.
Definition wireshark_main_window_slots.cpp:841
WiresharkMainWindow::reloadFields
void reloadFields()
Emitted to request that all views reload their field definitions.
WiresharkMainWindow::showCaptureOptionsDialog
void showCaptureOptionsDialog()
Opens the capture options dialog (interface selection, filters, etc.).
Definition wireshark_main_window_slots.cpp:3107
WiresharkMainWindow::closeEvent
void closeEvent(QCloseEvent *event) override
Prompts the user to save unsaved changes before closing the window.
Definition wireshark_main_window.cpp:999
WiresharkMainWindow::setMwFileName
void setMwFileName(QString fileName)
Sets the file path shown in the main window title bar.
Definition wireshark_main_window.cpp:3056
WiresharkMainWindow::tryClosingCaptureFile
bool tryClosingCaptureFile(QString before_what, FileCloseContext context=Default) override
Attempts to close the current capture file, prompting the user to save if there are unsaved changes.
Definition wireshark_main_window.cpp:1844
WiresharkMainWindow::closePacketDialogs
void closePacketDialogs()
Emitted to request that all packet-detail dialogs close themselves.
WiresharkMainWindow::getMwFileName
QString getMwFileName()
Returns the file path currently shown in the main window title bar.
Definition wireshark_main_window.cpp:3051
WiresharkMainWindow::addInterfaceToolbar
void addInterfaceToolbar(const iface_toolbar *toolbar_entry)
Adds an interface toolbar for the given toolbar descriptor.
Definition wireshark_main_window.cpp:834
WiresharkMainWindow::rtpStreamsDialogDeselectRtpStreams
void rtpStreamsDialogDeselectRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Deselects the given streams in the RTP Streams dialog.
Definition wireshark_main_window_slots.cpp:4352
WiresharkMainWindow::removeAdditionalToolbar
void removeAdditionalToolbar(QString toolbarName)
Removes an additional (plugin/interface) toolbar by name.
Definition wireshark_main_window.cpp:3022
WiresharkMainWindow::fieldFilterChanged
void fieldFilterChanged(const QByteArray field_filter)
Emitted when the field-based display filter changes.
display_filter_entry.h
field_information.h
export_type_e
export_type_e
Output format for packet data export operations.
Definition file_dialog.h:32
iface_toolbar.h
iface_toolbar
struct _iface_toolbar iface_toolbar
Describes an interface toolbar and the set of controls it exposes.
io_graph_item_unit_t
io_graph_item_unit_t
Selects the Y-axis value unit or aggregate calculation mode for an I/O graph plot.
Definition io_graph_item.h:29
main_window.h
plugin_if.h
ext_menu_t
ext_menubar_t ext_menu_t
Definition plugin_if.h:65
rtp_analysis_dialog.h
rtp_stream_dialog.h
rtpstream_id_t
struct _rtpstream_id rtpstream_id_t
_packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43
timestamp.h
ts_precision
ts_precision
Sub-second precision used when formatting packet timestamps.
Definition timestamp.h:41
ts_type
ts_type
Format used to display packet timestamps in the summary packet list.
Definition timestamp.h:22
tlskeylog_launcher_dialog.h
ws_ui_util.h