Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
WiresharkMainWindow Class Reference
Inheritance diagram for WiresharkMainWindow:
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)
 
void updateForUnsavedChanges ()
 
void layoutToolbars ()
 
void updatePreferenceActions ()
 
void updateRecentActions ()
 
void setTitlebarForCaptureFile ()
 
void setWSWindowTitle (QString title=QString())
 
void showCaptureOptionsDialog ()
 
void captureFileOpened ()
 
void captureFileReadFinished ()
 
void captureFileClosing ()
 
void captureFileClosed ()
 
void launchRLCGraph (bool channelKnown, uint8_t RAT, uint16_t ueid, uint8_t rlcMode, uint16_t channelType, uint16_t channelId, uint8_t direction)
 
void rtpPlayerDialogReplaceRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpPlayerDialogAddRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpPlayerDialogRemoveRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpAnalysisDialogReplaceRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpAnalysisDialogAddRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpAnalysisDialogRemoveRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpStreamsDialogSelectRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
void rtpStreamsDialogDeselectRtpStreams (QVector< rtpstream_id_t * > stream_ids)
 
- 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
 
void layoutPanes ()
 
void applyRecentPaneGeometry ()
 

Signals

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

Public Member Functions

 WiresharkMainWindow (QWidget *parent=nullptr)
 
virtual QMenu * createPopupMenu ()
 
CaptureFilecaptureFile ()
 
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)
 
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

virtual bool eventFilter (QObject *obj, QEvent *event)
 
virtual bool event (QEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void changeEvent (QEvent *event)
 
- Protected Member Functions inherited from MainWindow
void showWelcome ()
 
void showCapture ()
 
QWidget * getLayoutWidget (layout_pane_content_e type)
 

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)
 
- Protected Attributes inherited from MainWindow
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_
 
ByteViewTabbyte_view_tab_
 
PacketDiagrampacket_diagram_
 
DisplayFilterCombodf_combo_box_
 
MainStatusBarmain_status_bar_
 
ProfileSwitcherprofile_switcher_
 

Member Function Documentation

◆ openCaptureFile

bool WiresharkMainWindow::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.

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