libquentier 0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
MessageBox.h
1/*
2 * Copyright 2017-2024 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#pragma once
20
21#include <quentier/utility/Linkage.h>
22
23#include <QMessageBox>
24
25namespace quentier {
26
27int QUENTIER_EXPORT genericMessageBox(
28 QWidget * parent, const QString & title, const QString & briefText,
29 const QString & detailedText = {},
30 QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
31
32int QUENTIER_EXPORT informationMessageBox(
33 QWidget * parent, const QString & title, const QString & briefText,
34 const QString & detailedText = {},
35 QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
36
37int QUENTIER_EXPORT warningMessageBox(
38 QWidget * parent, const QString & title, const QString & briefText,
39 const QString & detailedText = {},
40 QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
41
42int QUENTIER_EXPORT criticalMessageBox(
43 QWidget * parent, const QString & title, const QString & briefText,
44 const QString & detailedText = {},
45 QMessageBox::StandardButtons standardButtons = QMessageBox::Ok);
46
47[[nodiscard]] int QUENTIER_EXPORT questionMessageBox(
48 QWidget * parent, const QString & title, const QString & briefText,
49 const QString & detailedText = {},
50 QMessageBox::StandardButtons standardButtons = QMessageBox::Ok |
51 QMessageBox::Cancel);
52
58void QUENTIER_EXPORT
59 internalErrorMessageBox(QWidget * parent, QString detailedText = {});
60
61} // namespace quentier