|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Top-level Qt application object for the Wireshark GUI. More...
#include <wireshark_application.h>
Public Member Functions | |
| WiresharkApplication (int &argc, char **argv) | |
| Constructs the Wireshark application instance. | |
| ~WiresharkApplication () | |
| Destroys the Wireshark application instance. | |
Public Member Functions inherited from MainApplication | |
| MainApplication (int &argc, char **argv) | |
| Constructs the MainApplication. | |
| ~MainApplication () | |
| Destroys the MainApplication. | |
| void | emitAppSignal (AppSignal signal) |
| Emits a specific application signal. | |
| void | queueAppSignal (AppSignal signal) |
| Queues an application signal to be emitted later. | |
| void | emitStatCommandSignal (const QString &menu_path, const char *arg, void *userdata) |
| Emits a signal to execute a statistics command. | |
| void | emitTapParameterSignal (const QString cfg_abbr, const QString arg, void *userdata) |
| Emits a signal indicating tap parameters changed. | |
| void | addDynamicMenuGroupItem (int group, QAction *sg_action) |
| Adds an action item to a dynamic menu group. | |
| void | appendDynamicMenuGroupItem (int group, QAction *sg_action) |
| Appends an action item to a dynamic menu group. | |
| void | removeDynamicMenuGroupItem (int group, QAction *sg_action) |
| Removes an action item from a dynamic menu group. | |
| QList< QAction * > | dynamicMenuGroupItems (int group) |
| Retrieves all action items for a dynamic menu group. | |
| QList< QAction * > | addedMenuGroupItems (int group) |
| Retrieves items recently added to a dynamic menu group. | |
| QList< QAction * > | removedMenuGroupItems (int group) |
| Retrieves items recently removed from a dynamic menu group. | |
| void | clearAddedMenuGroupItems () |
| Clears the list of tracked added menu group items. | |
| void | clearRemovedMenuGroupItems () |
| Clears the list of tracked removed menu group items. | |
| void | allSystemsGo () |
| Indicates that initial setup is complete and all systems are operational. | |
| void | emitLocalInterfaceEvent (const char *ifname, int added, int up) |
| Emits a signal regarding local interface status changes. | |
| virtual void | refreshLocalInterfaces () |
| Refreshes the local interfaces list. | |
| struct _e_prefs * | readConfigurationFiles (bool reset) |
| Reads application configuration files. | |
| QDir | openDialogInitialDir () |
| Retrieves the initial directory for open dialogs. | |
| void | setLastOpenDirFromFilename (QString file_name) |
| Sets the last opened directory from a given filename. | |
| void | helpTopicAction (topic_action_e action) |
| Executes a help topic action. | |
| const QFont | monospaceFont (bool zoomed=false) const |
| Retrieves the monospace font used by the application. | |
| int | monospaceTextSize (const char *str) |
| Calculates the horizontal pixel size of a string using the monospace font. | |
| void | setConfigurationProfile (const char *profile_name, bool write_recent_file=true) |
| Sets the active configuration profile. | |
| void | reloadLuaPluginsDelayed () |
| Triggers a delayed reload of Lua plugins. | |
| bool | isInitialized () |
| Checks if the application is initialized. | |
| void | setReloadingLua (bool is_reloading) |
| Sets the flag indicating if Lua is currently reloading. | |
| bool | isReloadingLua () |
| Checks if Lua plugins are currently reloading. | |
| const QIcon & | normalIcon () |
| Retrieves the normal application icon. | |
| const QIcon & | captureIcon () |
| Retrieves the capture application icon. | |
| const QString & | windowTitleSeparator () const |
| Retrieves the window title separator string. | |
| const QString | windowTitleString (QStringList title_parts) |
| Generates a window title from parts. | |
| const QString | windowTitleString (QString title_part) |
| Generates a window title with a single part. | |
| void | applyCustomColorsFromRecent () |
| Applies custom colors stored in recent files. | |
| MainWindow * | mainWindow () |
| Retrieves the main window instance. | |
| void | loadLanguage (const QString language) |
| Loads a specific UI language. | |
| void | doTriggerMenuItem (MainMenuItem menuItem) |
| Triggers a specific main menu item. | |
| void | zoomTextFont (int zoomLevel) |
| Applies text zooming to application fonts. | |
| void | pushStatus (StatusInfo sinfo, const QString &message, const QString &messagetip=QString()) |
| Pushes a message to the specified status bar section. | |
| void | popStatus (StatusInfo sinfo) |
| Pops the most recent status message of a given type. | |
| void | gotoFrame (int frameNum) |
| Triggers navigation to a specific frame number. | |
| int | maxMenuDepth (void) |
| Defines the maximum nested depth allowed for menus. | |
Additional Inherited Members | |
Public Types inherited from MainApplication | |
| enum | AppSignal { CaptureFilterListChanged , ColumnsChanged , DisplayFilterListChanged , FieldsChanged , FilterExpressionsChanged , LocalInterfacesChanged , NameResolutionChanged , PacketDissectionChanged , PreferencesChanged , RecentPreferencesRead , FreezePacketList , AggregationChanged } |
| Enumeration of application-wide signals. More... | |
| enum | MainMenuItem { FileOpenDialog , CaptureOptionsDialog } |
| Enumeration for standard main menu items. More... | |
| enum | StatusInfo { FilterSyntax , FieldStatus , FileStatus , BusyStatus , ByteStatus , TemporaryStatus } |
| Enumeration for status bar information types. More... | |
Public Slots inherited from MainApplication | |
| void | captureEventHandler (CaptureEvent ev) |
| Slot for handling capture events. | |
| void | flushAppSignals () |
| Flushes queued app signals. | |
| void | reloadDisplayFilterMacros () |
| Reloads display filter macros. | |
Signals inherited from MainApplication | |
| void | appInitialized () |
| Signal emitted when application is fully initialized. | |
| void | localInterfaceEvent (const char *ifname, int added, int up) |
| Signal emitted for local interface events (add/remove/up/down). | |
| void | scanLocalInterfaces (GList *filter_list=nullptr) |
| Signal emitted to request a scan of local interfaces. | |
| void | localInterfaceListChanged () |
| Signal emitted when the local interface list changes. | |
| void | openCaptureFile (QString cf_path, QString display_filter, unsigned int type) |
| Signal emitted to open a specific capture file. | |
| void | openCaptureOptions () |
| Signal emitted to open the capture options dialog. | |
| void | recentPreferencesRead () |
| Signal emitted when recent preferences are read. | |
| void | profileChanging () |
| Signal emitted while the configuration profile is changing. | |
| void | profileNameChanged (const char *profile_name) |
| Signal emitted when the configuration profile name has changed. | |
| void | freezePacketList (bool changing_profile) |
| Signal emitted to freeze or unfreeze packet list updates. | |
| void | columnsChanged () |
| Signal emitted when columns are changed (recreates packet list). XXX This recreates the packet list. We might want to rename it accordingly. | |
| void | captureFilterListChanged () |
| Signal emitted when capture filters are changed. | |
| void | displayFilterListChanged () |
| Signal emitted when display filters are changed. | |
| void | filterExpressionsChanged () |
| Signal emitted when filter expressions are changed. | |
| void | packetDissectionChanged () |
| Signal emitted when packet dissection settings are changed. | |
| void | preferencesChanged () |
| Signal emitted when preferences are changed. | |
| void | addressResolutionChanged () |
| Signal emitted when address resolution settings change. | |
| void | columnDataChanged () |
| Signal emitted when column data definitions change. | |
| void | checkDisplayFilter () |
| Signal emitted to check display filter validity. | |
| void | fieldsChanged () |
| Signal emitted when protocol fields change. | |
| void | reloadLuaPlugins () |
| Signal emitted to initiate a Lua plugin reload. | |
| void | aggregationChanged () |
| Signal emitted when aggregation values change. | |
| void | openStatCommandDialog (const QString &menu_path, const char *arg, void *userdata) |
| Signal emitted to open a specific stat command dialog. | |
| void | openTapParameterDialog (const QString cfg_str, const QString arg, void *userdata) |
| Signal emitted to open a tap parameter dialog. | |
| void | captureActive (int) |
| Signals activation and stop of a capture. The value provides the number of active captures. | |
| void | zoomRegularFont (const QFont &font) |
| Signal emitted to apply a new zoomed regular font. | |
| void | zoomMonospaceFont (const QFont &font) |
| Signal emitted to apply a new zoomed monospace font. | |
Public Attributes inherited from MainApplication | |
| QTranslator | translator |
| QTranslator | translatorQt |
Protected Member Functions inherited from MainApplication | |
| bool | event (QEvent *event) |
| Core Qt event handler override. | |
Protected Attributes inherited from MainApplication | |
| QIcon | normal_icon_ |
| QIcon | capture_icon_ |
Top-level Qt application object for the Wireshark GUI.
|
explicit |
Constructs the Wireshark application instance.
| argc | Reference to the command-line argument count. |
| argv | Array of command-line argument strings. |