Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
PacketList Class Reference
Inheritance diagram for PacketList:

Public Types

enum  SummaryCopyType { CopyAsText , CopyAsCSV , CopyAsYAML , CopyAsHTML }
 

Public Slots

void setCaptureFile (capture_file *cf)
 
void setMonospaceFont (const QFont &mono_font)
 
void setRegularFont (const QFont &regular_font)
 
void goNextPacket ()
 
void goPreviousPacket ()
 
void goFirstPacket ()
 
void goLastPacket ()
 
void goToPacket (int packet, int hf_id=-1)
 
void goNextHistoryPacket ()
 
void goPreviousHistoryPacket ()
 
void markFrame ()
 
void markAllDisplayedFrames (bool set)
 
void ignoreFrame ()
 
void ignoreAllDisplayedFrames (bool set)
 
void setTimeReference ()
 
void unsetAllTimeReferences ()
 
void applyTimeShift ()
 
void recolorPackets ()
 
void redrawVisiblePackets ()
 
void redrawVisiblePacketsDontSelectCurrent ()
 
void colorsChanged ()
 
void columnsChanged ()
 
void fieldsChanged (capture_file *cf)
 
void preferencesChanged ()
 
void freezePacketList (bool changing_profile)
 

Signals

void packetDissectionChanged ()
 
void showColumnPreferences (QString pane_name)
 
void editColumn (int column)
 
void packetListScrolled (bool at_end)
 
void showProtocolPreferences (const QString module_name)
 
void editProtocolPreference (struct preference *pref, struct pref_module *module)
 
void framesSelected (QList< int >)
 
void fieldSelected (FieldInformation *)
 

Public Member Functions

 PacketList (QWidget *parent=0)
 
virtual void scrollTo (const QModelIndex &index, QAbstractItemView::ScrollHint hint=EnsureVisible) override
 
QMenu * conversationMenu ()
 
QMenu * colorizeMenu ()
 
void setProtoTree (ProtoTree *proto_tree)
 
bool freeze (bool keep_current_frame=false)
 
bool thaw (bool restore_selection=false)
 
void clear ()
 
void writeRecent (FILE *rf)
 
bool contextMenuActive ()
 
QString getFilterFromRowAndColumn (QModelIndex idx)
 
void resetColorized ()
 
QString getPacketComment (unsigned c_number)
 
void addPacketComment (QString new_comment)
 
void setPacketComment (unsigned c_number, QString new_comment)
 
QString allPacketComments ()
 
void deleteCommentsFromPackets ()
 
void deleteAllPacketComments ()
 
void setVerticalAutoScroll (bool enabled=true)
 
void setCaptureInProgress (bool in_progress=false, bool auto_scroll=true)
 
void captureFileReadFinished ()
 
void resetColumns ()
 
bool haveNextHistory (bool update_cur=false)
 
bool havePreviousHistory (bool update_cur=false)
 
void setProfileSwitcher (ProfileSwitcher *profile_switcher)
 
frame_data * getFDataForRow (int row) const
 
bool uniqueSelectActive ()
 
bool multiSelectActive ()
 
QList< int > selectedRows (bool useFrameNum=false)
 
QString createSummaryText (QModelIndex idx, SummaryCopyType type)
 
QString createHeaderSummaryText (SummaryCopyType type)
 
QStringList createHeaderPartsForAligned ()
 
QList< int > createAlignmentPartsForAligned ()
 
QList< int > createSizePartsForAligned (bool useHeader, QStringList hdr_parts, QList< int > rows)
 
QString createHeaderSummaryForAligned (QStringList hdr_parts, QList< int > align_parts, QList< int > size_parts)
 
QString createSummaryForAligned (QModelIndex idx, QList< int > align_parts, QList< int > size_parts)
 
QString createDefaultStyleForHtml ()
 
QString createOpeningTagForHtml ()
 
QString createHeaderSummaryForHtml ()
 
QString createSummaryForHtml (QModelIndex idx)
 
QString createClosingTagForHtml ()
 
void resizeAllColumns (bool onlyTimeFormatted=false)
 

Protected Slots

void rowsInserted (const QModelIndex &parent, int start, int end) override
 
virtual void drawRow (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Protected Member Functions

void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
virtual void contextMenuEvent (QContextMenuEvent *event) override
 
void timerEvent (QTimerEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 

Member Function Documentation

◆ freeze()

bool PacketList::freeze ( bool  keep_current_frame = false)

Disable and clear the packet list.

Parameters
keep_current_frameIf true, keep the selected frame. Disable packet list widget updates, clear the detail and byte views, and disconnect the model.

◆ thaw()

bool PacketList::thaw ( bool  restore_selection = false)

Enable and restore the packet list.

Enable packet list widget updates and reconnect the model.

Parameters
restore_selectionIf true, redissect the previously selected packet. This includes filling in the detail and byte views.

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