Wireshark 4.5.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
22namespace Ui {
23class ProfileDialog;
24}
25
27{
28 Q_OBJECT
29
30public:
31 enum ProfileAction {
32 ShowProfiles, NewProfile, ImportZipProfile, ImportDirProfile,
33 ExportSingleProfile, ExportAllProfiles, EditCurrentProfile, DeleteCurrentProfile
34 };
35
36 explicit ProfileDialog(QWidget *parent = Q_NULLPTR);
38 int execAction(ProfileAction profile_action);
39
48 void selectProfile(QString profile = QString());
49
50protected:
51 virtual void keyPressEvent(QKeyEvent *event);
52
53private:
54 Ui::ProfileDialog *pd_ui_;
55 QPushButton *ok_button_;
56 QPushButton *import_button_;
57#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
58 QPushButton *export_button_;
59 QAction *export_selected_entry_;
60#endif
61 ProfileModel *model_;
62 ProfileSortModel *sort_model_;
63
64 void updateWidgets();
65 void resetTreeView();
66
67 void finishImport(QFileInfo fi, int count, int skipped, QStringList import);
68
69private slots:
70 void currentItemChanged(const QModelIndex & c = QModelIndex(), const QModelIndex & p = QModelIndex());
71#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
72 void exportProfiles(bool exportAllPersonalProfiles = false);
73 void importFromZip();
74#endif
75 void importFromDirectory();
76
77 void newToolButtonClicked();
78 void deleteToolButtonClicked();
79 void copyToolButtonClicked();
80 void buttonBoxAccepted();
81 void buttonBoxRejected();
82 void buttonBoxHelpRequested();
83 void dataChanged(const QModelIndex &);
84
85 void filterChanged(const QString &);
86
87 void selectionChanged();
88 QModelIndexList selectedProfiles();
89
90 // QWidget interface
91
92};
93
94#endif // PROFILE_DIALOG_H
Definition geometry_state_dialog.h:17
Definition profile_dialog.h:27
void selectProfile(QString profile=QString())
Select the profile with the given name.
Definition profile_dialog.cpp:146
Definition profile_model.h:52
Definition profile_model.h:25
Definition packet-epl.h:22