Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

import_text_dialog.h
1 /* import_text_dialog.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10 #ifndef IMPORT_TEXT_DIALOG_H
11 #define IMPORT_TEXT_DIALOG_H
12
13 #include <config.h>
14
15 #include <stdio.h>
16
17 #include <glib.h>
18
19 #include "ui/text_import.h"
20
21 #include <ui/qt/widgets/syntax_line_edit.h>
22
23 #include <QDialog>
24 #include <QPushButton>
25 #include <QRadioButton>
26
27 namespace Ui {
28 class ImportTextDialog;
29 }
30
31 class ImportTextDialog : public QDialog
32 {
33 Q_OBJECT
34
35 public:
36 explicit ImportTextDialog(QWidget *parent = 0);
37 ~ImportTextDialog();
38 QString &capfileName();
39
40 private:
41 void convertTextFile();
42 void enableHeaderWidgets(bool enable_buttons = true);
43 void check_line_edit(SyntaxLineEdit *le, bool &ok_enable, const QString &num_str, int base, guint max_val, bool is_short, guint *val_ptr);
44 bool checkDateTimeFormat(const QString &time_format);
45 void updateImportButtonState();
46
47 Ui::ImportTextDialog *ti_ui_;
48
49 QPushButton *import_button_;
50 QList<QRadioButton *>encap_buttons_;
51 text_import_info_t import_info_;
52 QString capfile_name_;
53 bool file_ok_;
54 bool time_format_ok_;
55 bool ether_type_ok_;
56 bool proto_ok_;
57 bool source_port_ok_;
58 bool dest_port_ok_;
59 bool tag_ok_;
60 bool ppi_ok_;
61 bool max_len_ok_;
62
63 public slots:
64 int exec();
65
66 private slots:
67 void on_textFileBrowseButton_clicked();
68 void on_textFileLineEdit_textChanged(const QString &arg1);
69 void on_noOffsetButton_toggled(bool checked);
70 void on_encapComboBox_currentIndexChanged(int index);
71 void on_dateTimeLineEdit_textChanged(const QString &arg1);
72 void on_directionIndicationCheckBox_toggled(bool checked);
73 void on_noDummyButton_toggled(bool checked);
74 void on_ethernetButton_toggled(bool checked);
75 void on_ipv4Button_toggled(bool checked);
76 void on_udpButton_toggled(bool checked);
77 void on_tcpButton_toggled(bool checked);
78 void on_sctpButton_toggled(bool checked);
79 void on_sctpDataButton_toggled(bool checked);
80 void on_ethertypeLineEdit_textChanged(const QString &ethertype_str);
81 void on_protocolLineEdit_textChanged(const QString &protocol_str);
82 void on_sourcePortLineEdit_textChanged(const QString &source_port_str);
83 void on_destinationPortLineEdit_textChanged(const QString &destination_port_str);
84 void on_tagLineEdit_textChanged(const QString &tag_str);
85 void on_ppiLineEdit_textChanged(const QString &ppi_str);
86 void on_maxLengthLineEdit_textChanged(const QString &max_frame_len_str);
87 void on_buttonBox_helpRequested();
88 };
89
90
91 #endif // IMPORT_TEXT_DIALOG_H
92
93 /*
94 * Editor modelines
95 *
96 * Local Variables:
97 * c-basic-offset: 4
98 * tab-width: 8
99 * indent-tabs-mode: nil
100 * End:
101 *
102 * ex: set shiftwidth=4 tabstop=8 expandtab:
103 * :indentSize=4:tabSize=8:noTabs=true:
104 */
ImportTextDialog
Definition: import_text_dialog.h:31
Ui
Definition: ui_about_dialog.h:291
SyntaxLineEdit
Definition: syntax_line_edit.h:22
Ui::ImportTextDialog
Definition: ui_import_text_dialog.h:503
text_import_info_t
Definition: text_import.h:50