Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / simple_dialog.h
bloba4ff4bacd82954a682c70b8d464df5ed31c8d1e4
1 /** @file
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
8 */
10 #ifndef SIMPLE_DIALOG_H
11 #define SIMPLE_DIALOG_H
13 #include <config.h>
15 #include <stdio.h>
17 #include "ui/simple_dialog.h"
19 #include <QPair>
20 #include <QString>
22 typedef QPair<QString,QString> MessagePair;
24 class QCheckBox;
25 class QMessageBox;
26 class QWidget;
28 // This might be constructed before Qt is initialized and must be a plain, non-Qt object.
29 class SimpleDialog
31 public:
32 explicit SimpleDialog(QWidget *parent, ESD_TYPE_E type, int btn_mask, const char *msg_format, va_list ap);
33 ~SimpleDialog();
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();
43 private:
44 QString informative_text_;
45 QString detailed_text_;
46 QCheckBox *check_box_;
47 QMessageBox *message_box_;
50 #endif // SIMPLE_DIALOG_H