Dialog box to filter PCAP traces through external processes. More...
#include <wscout_gui_filter_dialog.hh>
Public Types | |
enum | { out_file_width = 25 } |
Public Slots | |
void | okClicked () |
void | cancelClicked () |
Public Member Functions | |
FilterDialog (QWidget *parent=0) | |
Input file's name accessors | |
QString | inputFileName () const |
void | setInputFileName (const QString &) |
Output file's name accessors | |
QString | outputFileName () const |
void | setOutputFileName (const QString &) |
Static Public Member Functions | |
static void | setDefaultFilter (const QString &) |
static void | setDefaultCommand (const QString &) |
static QString | getFilteredTraceName (QWidget *parent, const QString &input, const QString &title=QString(), const QString &default_out=QString()) |
Protected Slots | |
void | processError (QProcess::ProcessError) |
void | processFinished (int, QProcess::ExitStatus) |
void | openOutputFileNameDialog () |
Protected Member Functions | |
QLabel * | makeLabel (const QString &s, Qt::Alignment align=Qt::AlignLeft) |
QGridLayout & | layout () |
const QGridLayout & | layout () const |
Properties | |
QString | inputFileName |
QString | outputFileName |
Dialog box to filter PCAP traces through external processes.
anonymous enum |
Length of the output file LineEdit
widget (number of 'm' widths).
wscout::gui::FilterDialog::FilterDialog | ( | QWidget * | parent = 0 |
) |
Default constructor.
References processError(), and processFinished().
void wscout::gui::FilterDialog::cancelClicked | ( | ) | [slot] |
Click the Cancel
button.
QString wscout::gui::FilterDialog::getFilteredTraceName | ( | QWidget * | parent, | |
const QString & | input, | |||
const QString & | title = QString () , |
|||
const QString & | default_out = QString () | |||
) | [static] |
Show a FilterDialog instance, filter a file, and retrieve the result's name.
References outputFileName.
void wscout::gui::FilterDialog::okClicked | ( | ) | [slot] |
Click the OK
button.
References setDefaultCommand(), and setDefaultFilter().
void wscout::gui::FilterDialog::openOutputFileNameDialog | ( | ) | [protected, slot] |
Call when the user click on the file chooser.
void wscout::gui::FilterDialog::processError | ( | QProcess::ProcessError | e | ) | [protected, slot] |
Call when the filter process failed.
Referenced by FilterDialog().
void wscout::gui::FilterDialog::processFinished | ( | int | c, | |
QProcess::ExitStatus | s | |||
) | [protected, slot] |
Call when the filter process terminated.
Referenced by FilterDialog().
void wscout::gui::FilterDialog::setDefaultCommand | ( | const QString & | c | ) | [inline, static] |
Set the default command text for all FilterDialog instances.
Referenced by okClicked().
void wscout::gui::FilterDialog::setDefaultFilter | ( | const QString & | f | ) | [inline, static] |
Set the default filter text for all FilterDialog instances.
Referenced by okClicked().
QString wscout::gui::FilterDialog::inputFileName [inline, read, write] |
Input PCAP file's name.
QString wscout::gui::FilterDialog::outputFileName [inline, read, write] |
Output PCAP file's name.
Referenced by getFilteredTraceName().