Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
22typedef QPair<QString,QString> MessagePair;
23
24class QCheckBox;
25class QMessageBox;
26class QWidget;
27
28// This might be constructed before Qt is initialized and must be a plain, non-Qt object.
30{
31public:
32 explicit SimpleDialog(QWidget *parent, ESD_TYPE_E type, int btn_mask, const char *msg_format, va_list ap);
34
35 static void displayQueuedMessages(QWidget *parent = 0);
36 static QString dontShowThisAgain();
37 void setInformativeText(QString text) { informative_text_ = text; }
38 void setDetailedText(QString text) { detailed_text_ = text; }
39 void setCheckBox(QCheckBox *cb) { check_box_ = cb; }
40 int exec();
41 void show();
42
43private:
44 QString informative_text_;
45 QString detailed_text_;
46 QCheckBox *check_box_;
47 QMessageBox *message_box_;
48};
49
50#endif // SIMPLE_DIALOG_H
Definition simple_dialog.h:30
ESD_TYPE_E
Definition simple_dialog.h:31