Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
simple_dialog.h
Go to the documentation of this file.
1
10#ifndef SIMPLE_DIALOG_H
11#define SIMPLE_DIALOG_H
12
13#include <config.h>
14
15#include <stdio.h>
16
17#include "ui/simple_dialog.h"
18
19#include <QPair>
20#include <QString>
21
22class QCheckBox;
23class QMessageBox;
24class QWidget;
25
26// This might be constructed before Qt is initialized and must be a plain, non-Qt object.
28{
29public:
30 explicit SimpleDialog(QWidget *parent, ESD_TYPE_E type, int btn_mask, const char *msg_format, va_list ap, QString secondary_msg = QString());
32
33 static void displayQueuedMessages(QWidget *parent = 0);
34 static QString dontShowThisAgain();
35 void setInformativeText(QString text) { informative_text_ = text; }
36 void setDetailedText(QString text) { detailed_text_ = text; }
37 void setCheckBox(QCheckBox *cb) { check_box_ = cb; }
38 int exec();
39 void show();
40
41private:
42 QString informative_text_;
43 QString detailed_text_;
44 QCheckBox *check_box_;
45 QMessageBox *message_box_;
46};
47
48#endif // SIMPLE_DIALOG_H
Definition simple_dialog.h:28
ESD_TYPE_E
Definition simple_dialog.h:31