1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, http://www.bibletime.info/.
6 *
7 * Copyright 1999-2016 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License version 2.0.
9 *
10 **********/
11 
12 #ifndef UTIL_DIALOG_UTIL_H
13 #define UTIL_DIALOG_UTIL_H
14 
15 #include <QString>
16 #include <QMessageBox>
17 
18 class QWidget;
19 
20 namespace message {
21 
22 int showWarning(QWidget * parent,
23                 const QString & title,
24                 const QString & text,
25                 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
26                 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
27 
28 int showCritical(QWidget * parent,
29                 const QString & title,
30                 const QString & text,
31                 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
32                 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
33 
34 int showQuestion(QWidget * parent,
35                 const QString & title,
36                 const QString & text,
37                 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
38                 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
39 
40 } // namespace message
41 
42 #endif
43