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 setDetailedText(QString text) { detailed_text_ = text; }
38 void setCheckBox(QCheckBox *cb) { check_box_ = cb; }
39 int exec();
40 void show();
41
42private:
43 const MessagePair splitMessage(QString &message) const;
44 QString detailed_text_;
45 QCheckBox *check_box_;
46 QMessageBox *message_box_;
47};
48
49#endif // SIMPLE_DIALOG_H
Definition simple_dialog.h:30
ESD_TYPE_E
Definition simple_dialog.h:31