Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
PrintDialog Class Reference

Dialog that provides packet print and print-preview functionality for a live or saved capture file. More...

#include <print_dialog.h>

Inheritance diagram for PrintDialog:

Public Member Functions

 PrintDialog (QWidget *parent=0, capture_file *cf=NULL, QString selRange=QString())
 Constructs the Print dialog.
 
 ~PrintDialog ()
 Destroys the Print dialog and releases all associated resources.
 
bool printHeader ()
 Prints the page header for the current print job.
 
bool printLine (int indent, const char *line)
 Prints a single line of packet data at the given indentation level.
 

Public Attributes

capture_filecap_file_
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event) override
 Intercepts key press events, e.g. to suppress closing the dialog on Enter.
 

Detailed Description

Dialog that provides packet print and print-preview functionality for a live or saved capture file.

Constructor & Destructor Documentation

◆ PrintDialog()

PrintDialog::PrintDialog ( QWidget *  parent = 0,
capture_file cf = NULL,
QString  selRange = QString() 
)
explicit

Constructs the Print dialog.

Parameters
parentOptional parent widget.
cfCapture file whose packets are to be printed; may be NULL.
selRangeOptional string describing a pre-selected packet range to print.

Member Function Documentation

◆ keyPressEvent()

void PrintDialog::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Intercepts key press events, e.g. to suppress closing the dialog on Enter.

Parameters
eventThe key event to handle.

◆ printHeader()

bool PrintDialog::printHeader ( )

Prints the page header for the current print job.

Returns
true on success; false if the header could not be rendered.

◆ printLine()

bool PrintDialog::printLine ( int  indent,
const char *  line 
)

Prints a single line of packet data at the given indentation level.

Parameters
indentNumber of indentation levels to apply before the line text.
lineNUL-terminated string containing the line text to render.
Returns
true on success; false if the line could not be rendered.

Member Data Documentation

◆ cap_file_

capture_file* PrintDialog::cap_file_

Capture file being printed; publicly accessible for print stream callbacks.


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