| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
wireshark_file_dialog.h
Go to the documentation of this file.
1
9
10#ifndef WIRESHARK_FILE_DIALOG_H
11#define WIRESHARK_FILE_DIALOG_H
12
13#include <QFileDialog>
14
34 class WiresharkFileDialog : public QFileDialog
35{
36 public:
44 WiresharkFileDialog(QWidget *parent = nullptr, const QString &caption = QString(), const QString &directory = QString(), const QString &filter = QString());
45
50 QString selectedNativePath() const;
51
60 static QString getExistingDirectory(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QString &dir = QString(), Options options = ShowDirsOnly);
61
72 static QString getOpenFileName(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString *selectedFilter = Q_NULLPTR, Options options = Options());
73
84 static QString getSaveFileName(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString *selectedFilter = Q_NULLPTR, Options options = Options());
85};
86
87#endif // WIRESHARK_FILE_DIALOG_H
WiresharkFileDialog::getExistingDirectory
static QString getExistingDirectory(QWidget *parent=Q_NULLPTR, const QString &caption=QString(), const QString &dir=QString(), Options options=ShowDirsOnly)
Presents a directory chooser dialog and returns the selected path.
Definition wireshark_file_dialog.cpp:55
WiresharkFileDialog::getSaveFileName
static QString getSaveFileName(QWidget *parent=Q_NULLPTR, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=Q_NULLPTR, Options options=Options())
Presents a save-file dialog and returns the chosen file path.
Definition wireshark_file_dialog.cpp:79
WiresharkFileDialog::getOpenFileName
static QString getOpenFileName(QWidget *parent=Q_NULLPTR, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=Q_NULLPTR, Options options=Options())
Presents an open-file dialog and returns the selected file path.
Definition wireshark_file_dialog.cpp:67
WiresharkFileDialog::selectedNativePath
QString selectedNativePath() const
Returns the selected file path in native OS format.
Definition wireshark_file_dialog.cpp:46
WiresharkFileDialog::WiresharkFileDialog
WiresharkFileDialog(QWidget *parent=nullptr, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString())
Constructs a Wireshark file dialog.
Definition wireshark_file_dialog.cpp:21