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
50
51#include <epan/timestamp.h>
52
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"
68#include "main_window.h"
69#include "rtp_stream_dialog.h"
70#include "rtp_analysis_dialog.h"
72
73class AccordionFrame;
74class DataSourceTab;
75class CaptureOptionsDialog;
76class DisStreamDialog;
77class InPacketSearch;
78class PrintDialog;
79class FileSetDialog;
80class FilterDialog;
82class WelcomePage;
84class PacketDiagram;
85class PacketList;
86class ProtoTree;
87#if defined(HAVE_LIBNL) && defined(HAVE_NL80211)
88class WirelessFrame;
89#endif
92
93class QAction;
94class QActionGroup;
95
96namespace Ui {
97 class WiresharkMainWindow;
98}
99
100Q_DECLARE_METATYPE(ts_type)
101Q_DECLARE_METATYPE(ts_precision)
102
103
109{
110 Q_OBJECT
111
112public:
118 explicit WiresharkMainWindow(QWidget *parent = nullptr);
119
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
150
154 void setFunnelMenus(void);
155
160 void removeAdditionalToolbar(QString toolbarName);
161
166 void addInterfaceToolbar(const iface_toolbar *toolbar_entry);
167
172 void removeInterfaceToolbar(const char *menu_title);
173
178 QString getMwFileName();
179
184 void setMwFileName(QString fileName);
185
186protected:
193 bool eventFilter(QObject *obj, QEvent *event) override;
194
200 bool event(QEvent *event) override;
201
206 void keyPressEvent(QKeyEvent *event) override;
207
212 void closeEvent(QCloseEvent *event) override;
213
218 void dragEnterEvent(QDragEnterEvent *event) override;
219
224 void dropEvent(QDropEvent *event) override;
225
230 void changeEvent(QEvent *event) override;
231
236 void openRecentCaptureFile(const QString &filename) override;
237
245 bool tryClosingCaptureFile(QString before_what, FileCloseContext context = Default) override;
246
247private:
252 enum MatchSelected {
253 MatchSelectedReplace,
254 MatchSelectedAnd,
255 MatchSelectedOr,
256 MatchSelectedNot,
257 MatchSelectedAndNot,
258 MatchSelectedOrNot
259 };
260
261 Ui::WiresharkMainWindow *main_ui_;
262 QFont mono_font_;
263#if defined(HAVE_LIBNL) && defined(HAVE_NL80211)
264 WirelessFrame *wireless_frame_;
265#endif
266 QWidget *previous_focus_;
267 FileSetDialog *file_set_dialog_;
268 QActionGroup *show_hide_actions_;
269 QActionGroup *time_display_actions_;
270 QActionGroup *time_precision_actions_;
271 FunnelStatistics *funnel_statistics_;
272 QAction *action_telephony_dis_streams_;
273 QAction *action_telephony_imsi_list_;
274 QList<QPair<QAction *, bool>> freeze_actions_;
275 QPointer<QWidget> freeze_focus_;
276 QMap<QAction *, ts_type> td_actions;
277 QMap<QAction *, ts_precision> tp_actions;
278 bool was_maximized_;
279
280 /* the following values are maintained so that the capture file name and status
281 is available when there is no cf structure available */
282
283 QString mwFileName_;
284
285 bool capture_stopping_;
286 bool capture_filter_valid_;
287#ifdef HAVE_LIBPCAP
288 capture_session cap_session_;
289 CaptureOptionsDialog *capture_options_dialog_;
290 info_data_t info_data_;
291#endif
292 InPacketSearch *in_packet_search_;
293 QPoint dragStartPosition;
294
295 QPointer<TLSKeylogDialog> tlskeylog_dialog_;
296
300 void freeze();
301
305 void thaw();
306
311 void mergeCaptureFile();
312
317 void importCaptureFile();
318
325 bool saveCaptureFile(capture_file *cf, bool dont_reopen);
326
335 bool saveAsCaptureFile(capture_file *cf, bool must_support_comments = false, bool dont_reopen = false);
336
341 void exportSelectedPackets();
342
347 void exportDissections(export_type_e export_type);
348
353 void enableAggregationView(bool enable) const;
354
355#ifdef Q_OS_WIN
363 void fileAddExtension(QString &file_name, int file_type, ws_compression_type compression_type);
364#endif
365
370 void captureStop(bool discard = false);
371
373 void initMainToolbarIcons();
374
376 void initShowHideMainWidgets();
377
379 void initTimeDisplayFormatMenu();
380
382 void initTimePrecisionFormatMenu();
383
385 void initFreezeActions();
386
391 void setMenusForCaptureFile(bool force_disable = false) override;
392
397 void setMenusForCaptureInProgress(bool capture_in_progress = false);
398
400 void setMenusForCaptureStopping();
401
406 void setForCapturedPackets(bool have_captured_packets);
407
412 void setMenusForFileSet(bool enable_list_files);
413
417 void updateStyleSheet();
418
425 void externalMenuHelper(ext_menu_t *menu, QMenu *subMenu, int depth);
426
434 void setForCaptureInProgress(bool capture_in_progress = false, bool handle_toolbars = false, GArray *ifaces = NULL);
435
443 QMenu *findOrAddMenu(QMenu *parent_menu, const QStringList &menu_parts);
444
451 QMenu *findOrAddMenubar(const QString menu_text);
452
457 void captureFileReadStarted(const QString &action);
458
464 void addMenusandSubmenus(QAction *action, QMenu *cur_menu);
465
471 void removeMenusandSubmenus(QAction *action, QMenu *cur_menu);
472
478 void addMenuActions(QList<QAction *> &actions, int menu_group);
479
485 void removeMenuActions(QList<QAction *> &actions, int menu_group);
486
492 void goToConversationFrame(bool go_next, bool start_current = true);
493
499 void colorizeWithFilter(QByteArray filter, int color_number = -1);
500
501signals:
507
510
513
518 void packetInfoChanged(struct _packet_info *pinfo);
519
524 void fieldFilterChanged(const QByteArray field_filter);
525
531
537
538#ifdef HAVE_LIBPCAP
544 void showExtcapOptions(QString &device_name, bool startCaptureOnClose);
545#endif
546
547public slots:
548 // Qt lets you connect signals and slots using functors (new, manual style)
549 // and strings (old style). Functors are preferred since they're connected at
550 // compile time and less error prone.
551 //
552 // If you're manually connecting a signal to a slot, don't prefix its name
553 // with "on_". Otherwise Qt will try to automatically connect it and you'll
554 // get runtime warnings.
555
556 // in main_window_slots.cpp
557
566 bool openCaptureFile(QString cf_path, QString display_filter, unsigned int type, bool is_tempfile = false);
567
574 bool openCaptureFile(QString cf_path = QString(), QString display_filter = QString()) { return openCaptureFile(cf_path, display_filter, WTAP_TYPE_AUTO); }
575
576
578 void layoutToolbars();
579
582
584 void updateRecentActions();
585
589 void updateAggregationView() const;
590
593
596
597#ifdef HAVE_LIBPCAP
602 void captureCapturePrepared(capture_session *session);
603
608 void captureCaptureUpdateStarted(capture_session *session);
609
614 void captureCaptureUpdateFinished(capture_session *session);
615
620 void captureCaptureFixedFinished(capture_session *cap_session);
621
625 void captureCaptureFailed(capture_session *);
626#endif
627
629 void captureFileOpened();
630
633
635 void captureFileClosing();
636
638 void captureFileClosed();
639
650 void launchRLCGraph(bool channelKnown, uint8_t RAT, uint16_t ueid, uint8_t rlcMode,
651 uint16_t channelType, uint16_t channelId, uint8_t direction);
652
653#ifdef HAVE_LUA
655 void openLuaDebuggerDialog();
656#endif
657
662 void rtpPlayerDialogReplaceRtpStreams(QVector<rtpstream_id_t *> stream_ids);
663
668 void rtpPlayerDialogAddRtpStreams(QVector<rtpstream_id_t *> stream_ids);
669
674 void rtpPlayerDialogRemoveRtpStreams(QVector<rtpstream_id_t *> stream_ids);
675
680 void rtpAnalysisDialogReplaceRtpStreams(QVector<rtpstream_id_t *> stream_ids);
681
686 void rtpAnalysisDialogAddRtpStreams(QVector<rtpstream_id_t *> stream_ids);
687
692 void rtpAnalysisDialogRemoveRtpStreams(QVector<rtpstream_id_t *> stream_ids);
693
698 void rtpStreamsDialogSelectRtpStreams(QVector<rtpstream_id_t *> stream_ids);
699
704 void rtpStreamsDialogDeselectRtpStreams(QVector<rtpstream_id_t *> stream_ids);
705
706protected slots:
712 void applyFilter(QString new_filter = QString(), bool force = false) override;
713
714private slots:
722 void onAppInitialized();
723
728 void captureEventHandler(CaptureEvent ev);
729
731 void initViewColorizeMenu();
732
734 void initConversationMenus();
735
743 static bool addExportObjectsMenuItem(const void *key, void *value, void *userdata);
744
746 void initExportObjectsMenus();
747
755 static bool addFollowStreamMenuItem(const void *key, void *value, void *userdata);
756
758 void initFollowStreamMenus();
759
764 void startCapture(QStringList interfaces);
765
767 void startCapture();
768
770 void pushLiveCaptureInProgress();
771
773 void popLiveCaptureInProgress();
774
776 void stopCapture();
777
782 void aggregationViewChanged(bool enable) const;
783
785 void loadWindowGeometry();
786
788 void saveWindowGeometry();
789
793 void mainStackChanged(int);
794
796 void updateRecentCaptures();
797
799 void addPacketComment();
800
802 void editPacketComment();
803
805 void deletePacketComment();
806
808 void deleteCommentsFromPackets();
809
816 QString commentToMenuText(QString text, int max_len = 40);
817
819 void setEditCommentsMenu();
820
822 void setMenusForSelectedPacket();
823
828 void setMenusForSelectedTreeRow(FieldInformation *fi = NULL);
829
831 void interfaceSelectionChanged();
832
837 void captureFilterSyntaxChanged(bool valid);
838
840 void redissectPackets();
841
843 void checkDisplayFilter();
844
846 void fieldsChanged();
847
849 void reloadLuaPlugins();
850
856 void showAccordionFrame(AccordionFrame *show_frame, bool toggle = false);
857
862 void showColumnEditor(int column);
863
865 void showPreferenceEditor();
866
868 void addStatsPluginsToMenu();
869
871 void addDynamicMenus();
872
874 void reloadDynamicMenus();
875
877 void addPluginIFStructures();
878
884 QMenu *searchSubMenu(QString objectName);
885
889 void activatePluginIFToolbar(bool);
890
896 void startInterfaceCapture(bool valid, const QString capture_filter);
897
900 void applyGlobalCommandLineOptions();
901
906 void setFeaturesEnabled(bool enabled = true);
907
909 void on_actionNewDisplayFilterExpression_triggered();
910
916 void onFilterSelected(QString filterText, bool prepare);
917
919 void onFilterPreferences();
920
925 void onFilterEdit(int uatIndex);
926
933 void queuedFilterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
934
941 void openStatCommandDialog(const QString &menu_path, const char *arg, void *userdata);
942
949 void openTapParameterDialog(const QString cfg_str, const QString arg, void *userdata);
950
952 void openTapParameterDialog();
953
955 void connectFileMenuActions();
956
958 void exportPacketBytes();
959
961 void exportPDU();
962
964 void stripPacketHeaders();
965
967 void exportTLSSessionKeys();
968
970 void printFile();
971
973 void connectEditMenuActions();
974
979 void copySelectedItems(WiresharkMainWindow::CopySelected selection_type);
980
982 void findPacket();
983
985 void editTimeShift();
986
988 void editConfigurationProfiles();
989
994 void editTimeShiftFinished(int result);
995
1001 void addPacketCommentFinished(PacketCommentDialog *pc_dialog, int result);
1002
1009 void editPacketCommentFinished(PacketCommentDialog *pc_dialog, int result, unsigned nComment);
1010
1012 void deleteAllPacketComments();
1013
1018 void deleteAllPacketCommentsFinished(int result);
1019
1025 void injectSecrets(const char *proto_name, const char *wiki_link);
1026
1028 void discardAllSecrets();
1029
1034 void discardAllSecretsFinished(int result);
1035
1040 void showPreferencesDialog(QString module_name) override;
1041
1043 void connectViewMenuActions();
1044
1049 void showHideMainWidgets(QAction *action);
1050
1055 void setTimestampFormat(QAction *action);
1056
1061 void setTimestampPrecision(QAction *action);
1062
1067 void setTimeDisplaySecondsWithHoursAndMinutes(bool checked);
1068
1070 void editResolvedName();
1071
1073 void setNameResolution();
1074
1076 void showColoringRulesDialog();
1077
1083 void colorizeConversation(bool create_rule = false);
1084
1086 void colorizeActionTriggered();
1087
1092 void openPacketDialog(bool from_reference = false);
1093
1095 void reloadCaptureFileAsFormatOrCapture();
1096
1098 void reloadCaptureFile();
1099
1101 void connectGoMenuActions();
1102
1104 void setPreviousFocus();
1105
1107 void resetPreviousFocus();
1108
1110 void connectCaptureMenuActions();
1111
1113 void startCaptureTriggered();
1114
1116 void connectAnalyzeMenuActions();
1117
1124 void matchFieldFilter(FilterAction::Action action, FilterAction::ActionType filter_type);
1125
1127 void applyFieldAsColumn();
1128
1130 void filterMenuAboutToShow();
1131
1133 void applyConversationFilter();
1134
1136 void applyExportObject();
1137
1145 void openFollowStreamDialog(int proto_id, unsigned stream_num, unsigned sub_stream_num, bool use_stream_index = true);
1146
1151 void openFollowStreamDialog(int proto_id);
1152
1159 void openIOGraph(bool filtered, QVector<uint> conv_ids, QVector<QVariant> conv_agg);
1160
1164 void statCommandExpertInfo(const char *, void *);
1165
1167 void connectHelpMenuActions();
1168
1170 void goToCancelClicked();
1171
1173 void goToGoClicked();
1174
1176 void goToLineEditReturnPressed();
1177
1179 void connectStatisticsMenuActions();
1180
1182 void showResolvedAddressesDialog();
1183
1185 void showConversationsDialog();
1186
1188 void showEndpointsDialog();
1189
1191 void showDistributionDialog(const QString &abbreviation);
1192 void showDistributionDialog();
1193
1198 void openTcpStreamDialog(int graph_type);
1199 void openTcpDedupDialog();
1200
1202 void openSCTPAllAssocsDialog();
1203
1205 void on_actionSCTPShowAllAssociations_triggered();
1206
1208 void on_actionSCTPAnalyseThisAssociation_triggered();
1209
1211 void on_actionSCTPFilterThisAssociation_triggered();
1212
1216 void statCommandMulticastStatistics(const char *, void *);
1217
1221 void statCommandWlanStatistics(const char *, void *);
1222
1227 void openStatisticsTreeDialog(const char *abbr);
1228
1232 void statCommandIOGraph(const char *, void *);
1233
1239 void showIOGraphDialog(io_graph_item_unit_t value_units, QString yfield) override;
1240
1246 void showPlotDialog(const QString &y_field = QString(), bool filtered = false) override;
1247
1249 void connectTelephonyMenuActions();
1250
1255 DisStreamDialog *openTelephonyDisStreamsDialog();
1256
1261 RtpStreamDialog *openTelephonyRtpStreamsDialog();
1262
1267 RtpPlayerDialog *openTelephonyRtpPlayerDialog();
1268
1273 RtpAnalysisDialog *openTelephonyRtpAnalysisDialog();
1274
1279 void statCommandLteMacStatistics(const char *arg, void *);
1280
1285 void statCommandLteRlcStatistics(const char *arg, void *);
1286
1288 void openRtpStreamAnalysisDialog();
1289
1291 void openRtpPlayerDialog();
1292
1294 void connectWirelessMenuActions();
1295
1297 void connectToolsMenuActions();
1298
1300 void externalMenuItemTriggered();
1301
1303 void on_actionContextWikiProtocolPage_triggered();
1304
1306 void on_actionContextFilterFieldReference_triggered();
1307
1312 void extcap_options_finished(int result);
1313
1319 void showExtcapOptionsDialog(QString device_name, bool startCaptureOnClose);
1320
1328 QString findRtpStreams(QVector<rtpstream_id_t *> *stream_ids, bool reverse);
1329
1331 void openTLSKeylogDialog();
1332
1334 friend class MainApplication;
1335};
1336
1337#endif // WIRESHARK_MAIN_WINDOW_H
struct _info_data info_data_t
Aggregates packet count statistics and UI state for a live capture info display.
struct _capture_session capture_session
Opaque handle representing an active or pending capture session.
struct _capture_file capture_file
Represents a capture file and its associated metadata.
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
Represents an event occurring during a capture or file operation.
Definition capture_event.h:24
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A tab widget that manages and displays different data sources for a packet (e.g., Hex,...
Definition data_source_tab.h:36
A dialog for viewing and managing DIS (Distributed Interactive Simulation) streams from a capture fil...
Definition dis_stream_dialog.h:34
Represents information about a dissected packet field.
Definition field_information.h:26
A dialog for managing and displaying capture file sets.
Definition file_set_dialog.h:32
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
A dialog for managing and editing capture filters, display filters, and display macros.
Definition filter_dialog.h:31
A toolbar that displays filter expressions and supports drag-and-drop operations.
Definition filter_expression_toolbar.h:21
Manages statistics and user interface interactions for Lua-based funnel plugins.
Definition funnel_statistics.h:35
Search-within-current-packet logic shared by Find Packet (main window) and InPacketFindBar (single-pa...
Definition in_packet_search.h:24
CopySelected
Enumeration for determining what to copy when items are selected.
Definition main_window.h:222
MainWindow(QWidget *parent=nullptr)
Constructs a new MainWindow.
Definition main_window.cpp:50
CaptureFile capture_file_
Definition main_window.h:289
FileCloseContext
Context under which a capture file is being closed.
Definition main_window.h:246
@ Default
Default closing context.
Definition main_window.h:248
Dialog for viewing or editing a packet comment.
Definition packet_comment_dialog.h:23
A graphics view widget for displaying protocol packet diagrams.
Definition packet_diagram.h:29
The main packet list view for displaying captured packets.
Definition packet_list.h:45
Dialog that provides packet print and print-preview functionality for a live or saved capture file.
Definition print_dialog.h:31
A tree view for displaying protocol dissection details.
Definition proto_tree.h:30
Singleton dialog for analyzing RTP streams.
Definition rtp_analysis_dialog.h:102
Singleton dialog for playing and analyzing RTP audio streams. Singleton pattern based on https://refa...
Definition rtp_player_dialog.h:108
Singleton dialog for viewing and managing RTP streams. Singleton pattern based on https://refactoring...
Definition rtp_stream_dialog.h:32
Widget displayed on application startup, providing interface selection, capture filter configuration,...
Definition welcome_page.h:31
Toolbar frame that exposes 802.11 wireless interface controls — channel, channel type,...
Definition wireless_frame.h:27
Top-level Qt application object for the Wireshark GUI.
Definition wireshark_application.h:19
bool event(QEvent *event) override
Handles window-level events such as activation changes.
Definition wireshark_main_window.cpp:945
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
void captureFileReadFinished()
Updates UI state after a capture file has been fully read.
Definition wireshark_main_window_slots.cpp:800
void rtpPlayerDialogAddRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Adds streams to the RTP Player dialog.
Definition wireshark_main_window_slots.cpp:4318
void updateAggregationView() const
Refreshes the packet aggregation view to reflect the current capture state.
Definition wireshark_main_window_slots.cpp:443
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
void openRecentCaptureFile(const QString &filename) override
Opens the given recent capture file, handling any necessary prompts.
Definition wireshark_main_window_slots.cpp:1061
void keyPressEvent(QKeyEvent *event) override
Handles key press events for global keyboard shortcuts.
Definition wireshark_main_window.cpp:959
void dropEvent(QDropEvent *event) override
Opens a capture file dropped onto the window.
Definition wireshark_main_window.cpp:1092
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
friend class MainApplication
Friend class allowing access to private members.
Definition wireshark_main_window.h:1334
QMenu * createPopupMenu() override
Creates and returns the window's right-click popup menu.
Definition wireshark_main_window.cpp:801
void removeInterfaceToolbar(const char *menu_title)
Removes the interface toolbar with the given menu title.
Definition wireshark_main_window.cpp:875
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
void setFunnelMenus(void)
Rebuilds the Lua funnel statistics menus from registered funnel entries.
Definition wireshark_main_window.cpp:3017
void changeEvent(QEvent *event) override
Responds to locale or palette changes by retranslating the UI.
Definition wireshark_main_window.cpp:2604
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
void updatePreferenceActions()
Refreshes menu items that reflect preference values.
Definition wireshark_main_window_slots.cpp:380
void rtpPlayerDialogRemoveRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Removes streams from the RTP Player dialog.
Definition wireshark_main_window_slots.cpp:4325
void packetInfoChanged(struct _packet_info *pinfo)
Emitted when the selected packet changes, providing the new packet info.
void setTitlebarForCaptureFile()
Updates the window title bar to reflect the current capture file name and state.
Definition wireshark_main_window.cpp:2435
void dragEnterEvent(QDragEnterEvent *event) override
Accepts drag-enter events for capture files dragged onto the window.
Definition wireshark_main_window.cpp:1061
void rtpStreamsDialogSelectRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Selects the given streams in the RTP Streams dialog.
Definition wireshark_main_window_slots.cpp:4347
void captureFileClosing()
Updates UI state while a capture file is being closed.
Definition wireshark_main_window_slots.cpp:826
void setDissectedCaptureFile(capture_file *cf)
Emitted when a dissected capture file becomes the active file.
void updateRecentActions()
Rebuilds the File → Open Recent submenu from the recent-files list.
Definition wireshark_main_window_slots.cpp:396
CaptureFile * captureFile()
Returns a pointer to the current capture file object.
Definition wireshark_main_window.h:149
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
void rtpAnalysisDialogAddRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Adds streams to the RTP Analysis dialog.
Definition wireshark_main_window_slots.cpp:4337
void selectRtpStream(rtpstream_id_t *id)
Emitted to request that an RTP stream be selected in all interested dialogs.
void deselectRtpStream(rtpstream_id_t *id)
Emitted to request that an RTP stream be deselected in all interested dialogs.
WiresharkMainWindow(QWidget *parent=nullptr)
Constructs the Wireshark main window and initialises all menus, toolbars, and UI components.
Definition wireshark_main_window.cpp:344
void rtpAnalysisDialogRemoveRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Removes streams from the RTP Analysis dialog.
Definition wireshark_main_window_slots.cpp:4342
void captureFileOpened()
Updates UI state when a capture file is first opened.
Definition wireshark_main_window_slots.cpp:773
bool openCaptureFile(QString cf_path=QString(), QString display_filter=QString())
Convenience overload that auto-detects file type.
Definition wireshark_main_window.h:574
void layoutToolbars()
Repositions and resizes toolbars according to current layout settings.
Definition wireshark_main_window_slots.cpp:326
~WiresharkMainWindow()
Destroys the main window and releases all associated resources.
Definition wireshark_main_window.cpp:779
void captureFileClosed()
Resets UI state after a capture file has been fully closed.
Definition wireshark_main_window_slots.cpp:841
void reloadFields()
Emitted to request that all views reload their field definitions.
void showCaptureOptionsDialog()
Opens the capture options dialog (interface selection, filters, etc.).
Definition wireshark_main_window_slots.cpp:3107
void closeEvent(QCloseEvent *event) override
Prompts the user to save unsaved changes before closing the window.
Definition wireshark_main_window.cpp:999
void setMwFileName(QString fileName)
Sets the file path shown in the main window title bar.
Definition wireshark_main_window.cpp:3056
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
void closePacketDialogs()
Emitted to request that all packet-detail dialogs close themselves.
QString getMwFileName()
Returns the file path currently shown in the main window title bar.
Definition wireshark_main_window.cpp:3051
void addInterfaceToolbar(const iface_toolbar *toolbar_entry)
Adds an interface toolbar for the given toolbar descriptor.
Definition wireshark_main_window.cpp:834
void rtpStreamsDialogDeselectRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Deselects the given streams in the RTP Streams dialog.
Definition wireshark_main_window_slots.cpp:4352
void removeAdditionalToolbar(QString toolbarName)
Removes an additional (plugin/interface) toolbar by name.
Definition wireshark_main_window.cpp:3022
void fieldFilterChanged(const QByteArray field_filter)
Emitted when the field-based display filter changes.
export_type_e
Output format for packet data export operations.
Definition file_dialog.h:32
struct _iface_toolbar iface_toolbar
Describes an interface toolbar and the set of controls it exposes.
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
ext_menubar_t ext_menu_t
Definition plugin_if.h:65
struct _rtpstream_id rtpstream_id_t
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43
ts_precision
Sub-second precision used when formatting packet timestamps.
Definition timestamp.h:41
ts_type
Format used to display packet timestamps in the summary packet list.
Definition timestamp.h:22