Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
profile_dialog.h
Go to the documentation of this file.
1
10#ifndef PROFILE_DIALOG_H
11#define PROFILE_DIALOG_H
12
13#include "config.h"
14
18
19#include <QPushButton>
20#include <QTreeWidgetItem>
21#include <QLabel>
22
23namespace Ui {
24class ProfileDialog;
25}
26
28{
29 Q_OBJECT
30
31public:
32 enum ProfileAction {
33 ShowProfiles, NewProfile, ImportZipProfile, ImportDirProfile,
34 ExportSingleProfile, ExportAllProfiles, EditCurrentProfile, DeleteCurrentProfile
35 };
36
37 explicit ProfileDialog(QWidget *parent = Q_NULLPTR);
38 virtual ~ProfileDialog();
39 int execAction(ProfileAction profile_action);
40
49 void selectProfile(QString profile = QString());
50
51protected:
52 virtual void keyPressEvent(QKeyEvent *event);
53 // UI getters
54 QLabel* autoSwitchLimitLabel() const;
55
56private:
57 Ui::ProfileDialog *pd_ui_;
58 QPushButton *ok_button_;
59 QPushButton *import_button_;
60#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
61 QPushButton *export_button_;
62 QAction *export_selected_entry_;
63#endif
64 ProfileModel *model_;
65 ProfileSortModel *sort_model_;
66
67 void finishImport(QFileInfo fi, int skipped, const QStringList& importedProfiles);
68
69 //Helper function remove filter before adding/copying profiles
70 void clearFilter();
71
72private slots:
73#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
74 void exportProfiles(bool exportAllPersonalProfiles = false);
75 void importFromZip();
76#endif
77 void importFromDirectory();
78
79 void newToolButtonClicked();
80 void deleteToolButtonClicked();
81 void copyToolButtonClicked();
82 void buttonBoxAccepted();
83 void buttonBoxHelpRequested();
84 void dataChanged(const QModelIndex &);
85
86 void filterChanged(const QString &);
87
88 void selectionChanged();
89 QModelIndexList selectedProfiles();
90
91 // QWidget interface
92
93};
94
95#endif // PROFILE_DIALOG_H
Definition geometry_state_dialog.h:17
Definition profile_dialog.h:28
void selectProfile(QString profile=QString())
Select the profile with the given name.
Definition profile_dialog.cpp:147
Definition profile_model.h:105
Definition profile_model.h:78
Definition packet-epl.h:22