Wireshark  4.3.0
The Wireshark network protocol analyzer
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, gboolean 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, guint16 ueid, guint8 rlcMode, guint16 channelType, guint16 channelId, guint8 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
 
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 gchar *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, gint pos=-1)
 
void gotoFrame (int packet_num)
 
frame_data * frameDataForRow (int) const
 
QString getFilter ()
 
MainStatusBarstatusBar ()
 
void appendPacketMenu (QAction *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
}
 
- 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_
 

Member Function Documentation

◆ openCaptureFile

bool WiresharkMainWindow::openCaptureFile ( QString  cf_path,
QString  display_filter,
unsigned int  type,
gboolean  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: