File indexing completed on 2024-06-02 05:33:04

0001 /*
0002  * SPDX-FileCopyrightText: 2014 David Faure <faure@kde.org>
0003  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004  */
0005 
0006 
0007 
0008 #ifndef WIDGETS_MESSAGEBOXINTERFACE_H
0009 #define WIDGETS_MESSAGEBOXINTERFACE_H
0010 
0011 #include <QString>
0012 #include <QSharedPointer>
0013 #include <QMessageBox>
0014 
0015 class QWidget;
0016 
0017 namespace Widgets {
0018 
0019 class MessageBoxInterface
0020 {
0021 public:
0022     typedef QSharedPointer<MessageBoxInterface> Ptr;
0023 
0024     virtual ~MessageBoxInterface();
0025 
0026     virtual QMessageBox::Button askConfirmation(QWidget *parent, const QString &title, const QString &text) = 0;
0027 };
0028 
0029 }
0030 
0031 #endif