Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
StratosharkMainWindow Class Reference
Inheritance diagram for StratosharkMainWindow:
MainWindow

Public Slots

bool openCaptureFile (QString cf_path, QString display_filter, unsigned int type, bool is_tempfile=false)
 
bool openCaptureFile (QString cf_path=QString(), QString display_filter=QString())
 
void filterPackets (QString new_filter=QString(), bool force=false) override
 
void updateForUnsavedChanges ()
 
void layoutToolbars ()
 
void updatePreferenceActions ()
 
void updateRecentActions ()
 
void setTitlebarForCaptureFile ()
 
void showCaptureOptionsDialog ()
 
void captureFileOpened ()
 
void captureFileReadFinished ()
 
void captureFileClosing ()
 
void captureFileClosed ()
 
- Public Slots inherited from MainWindow
void setDisplayFilter (QString filter, FilterAction::Action action, FilterAction::ActionType filterType)
 
virtual void filterPackets (QString, bool)=0
 
virtual void showPreferencesDialog (QString module_name)=0
 
virtual void showIOGraphDialog (io_graph_item_unit_t, QString)=0
 
virtual void showPlotDialog (const QString &, bool)=0
 
void layoutPanes ()
 
void applyRecentPaneGeometry ()
 
void updateForUnsavedChanges ()
 

Signals

void setDissectedCaptureFile (capture_file *cf)
 
void closePacketDialogs ()
 
void reloadFields ()
 
void packetInfoChanged (struct _packet_info *pinfo)
 
void fieldFilterChanged (const QByteArray field_filter)
 
- Signals inherited from MainWindow
void setCaptureFile (capture_file *cf)
 
void captureActive (int)
 
void fieldSelected (FieldInformation *)
 
void fieldHighlight (FieldInformation *)
 
void framesSelected (QList< int >)
 
void filterAction (QString filter, FilterAction::Action action, FilterAction::ActionType type)
 
void displayFilterSuccess (bool success)
 

Public Member Functions

 StratosharkMainWindow (QWidget *parent=nullptr)
 
QMenu * createPopupMenu () override
 
CaptureFilecaptureFile ()
 
void setFunnelMenus (void)
 
void removeAdditionalToolbar (QString toolbarName)
 
void addInterfaceToolbar (const iface_toolbar *toolbar_entry)
 
void removeInterfaceToolbar (const char *menu_title)
 
QString getMwFileName ()
 
void setMwFileName (QString fileName)
 
- Public Member Functions inherited from MainWindow
 MainWindow (QWidget *parent=nullptr)
 
void setMainWindowTitle (QString title=QString())
 
bool hasSelection ()
 
bool hasUniqueSelection ()
 
QList< int > selectedRows (bool useFrameNum=false)
 
void insertColumn (QString name, QString abbrev, int pos=-1)
 
void gotoFrame (int packet_num)
 
frame_data * frameDataForRow (int) const
 
QString getFilter ()
 
MainStatusBarstatusBar ()
 
void appendPacketMenu (FunnelAction *funnel_action)
 
QList< QAction * > getPacketMenuActions ()
 
void clearAddedPacketMenus ()
 
bool addPacketMenus (QMenu *ctx_menu, GPtrArray *finfo_array)
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event) override
 
bool event (QEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void closeEvent (QCloseEvent *event) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
void changeEvent (QEvent *event) override
 
void openRecentCaptureFile (const QString &filename) override
 
- Protected Member Functions inherited from MainWindow
void showWelcome ()
 
void showCapture ()
 
void setTitlebarForCaptureInProgress ()
 
void setIconForCaptureInProgress (bool capture_in_progress)
 
QWidget * getLayoutWidget (layout_pane_content_e type)
 
void populateRecentCapturesMenu ()
 
void retranslateUiElements ()
 Handle retranslation of UI elements in MainWindow.
 

Friends

class MainApplication
 

Additional Inherited Members

- Protected Types inherited from MainWindow
enum  CopySelected {
  CopyAllVisibleItems , CopyAllVisibleSelectedTreeItems , CopySelectedDescription , CopySelectedFieldName ,
  CopySelectedValue , CopyListAsText , CopyListAsCSV , CopyListAsYAML ,
  CopyListAsHTML
}
 
- Protected Slots inherited from MainWindow
void addDisplayFilterTranslationActions (QMenu *copy_menu)
 
void updateDisplayFilterTranslationActions (const QString &df_text)
 
void updateTitlebar ()
 
- Protected Attributes inherited from MainWindow
CaptureFile capture_file_
 
QList< register_stat_group_tmenu_groups_
 
QStackedWidget * main_stack_
 
WelcomePagewelcome_page_
 
QSplitter master_split_
 
QSplitter extra_split_
 
QWidget empty_pane_
 
QVector< unsigned > cur_layout_
 
PacketListpacket_list_
 
ProtoTreeproto_tree_
 
DataSourceTabdata_source_tab_
 
PacketDiagrampacket_diagram_
 
DisplayFilterCombodf_combo_box_
 
MainStatusBarmain_status_bar_
 
ProfileSwitcherprofile_switcher_
 
bool use_capturing_title_
 
QMap< QString, QTextCodec * > text_codec_map_
 
QMenu * recent_captures_menu_
 
QAction * no_recent_files_action_
 

Member Function Documentation

◆ openCaptureFile

bool StratosharkMainWindow::openCaptureFile ( QString  cf_path,
QString  display_filter,
unsigned int  type,
bool  is_tempfile = false 
)
slot

Open a capture file.

Parameters
cf_pathPath to the file.
display_filterDisplay filter to apply. May be empty.
typeFile type.
is_tempfiletrue/false.
Returns
True on success, false on failure.

◆ openRecentCaptureFile()

void StratosharkMainWindow::openRecentCaptureFile ( const QString &  filename)
overrideprotectedvirtual

Open a capture file from the recent files menu.

Parameters
filenamePath to the file to open.

Implements MainWindow.


The documentation for this class was generated from the following files: