libquentier  0.5.0
The library for rich desktop clients of Evernote service
MessageBox.h
1 /*
2  * Copyright 2017-2020 Dmitry Ivanov
3  *
4  * This file is part of libquentier
5  *
6  * libquentier is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * libquentier is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libquentier. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LIB_QUENTIER_UTILITY_MESSAGE_BOX_H
20 #define LIB_QUENTIER_UTILITY_MESSAGE_BOX_H
21 
22 #include <quentier/utility/Linkage.h>
23 
24 #include <QMessageBox>
25 
26 namespace quentier {
27 
28 int QUENTIER_EXPORT genericMessageBox(
29  QWidget * parent, const QString & title, const QString & briefText,
30  const QString & detailedText = {},
31  const QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
32 
33 int QUENTIER_EXPORT informationMessageBox(
34  QWidget * parent, const QString & title, const QString & briefText,
35  const QString & detailedText = {},
36  const QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
37 
38 int QUENTIER_EXPORT warningMessageBox(
39  QWidget * parent, const QString & title, const QString & briefText,
40  const QString & detailedText = {},
41  const QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
42 
43 int QUENTIER_EXPORT criticalMessageBox(
44  QWidget * parent, const QString & title, const QString & briefText,
45  const QString & detailedText = {},
46  const QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
47 
48 int QUENTIER_EXPORT questionMessageBox(
49  QWidget * parent, const QString & title, const QString & briefText,
50  const QString & detailedText = {},
51  const QMessageBox::StandardButtons standardButtons = QMessageBox::Ok |
52  QMessageBox::Cancel);
53 
59 void QUENTIER_EXPORT
60 internalErrorMessageBox(QWidget * parent, QString detailedText = {});
61 
62 } // namespace quentier
63 
64 #endif // LIB_QUENTIER_UTILITY_MESSAGE_BOX_H
Definition: DecryptedTextManager.h:26