3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef SIMPLE_DIALOG_H
11 #define SIMPLE_DIALOG_H
17 #include "ui/simple_dialog.h"
22 typedef QPair
<QString
,QString
> MessagePair
;
28 // This might be constructed before Qt is initialized and must be a plain, non-Qt object.
32 explicit SimpleDialog(QWidget
*parent
, ESD_TYPE_E type
, int btn_mask
, const char *msg_format
, va_list ap
);
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
; }
44 QString informative_text_
;
45 QString detailed_text_
;
46 QCheckBox
*check_box_
;
47 QMessageBox
*message_box_
;
50 #endif // SIMPLE_DIALOG_H