File indexing completed on 2024-04-21 04:48:28

0001 /*
0002     SPDX-FileCopyrightText: 2005 Max Howell <max.howell@methylblue.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef DRAGONPLAYER_MESSAGEBOX
0008 #define DRAGONPLAYER_MESSAGEBOX
0009 
0010 #include <KMessageBox>
0011 namespace Dragon
0012 {
0013 static class VideoWindow *videoWindow();
0014 namespace MessageBox
0015 {
0016 static inline void error(const QString &message)
0017 {
0018     KMessageBox::error((QWidget *)videoWindow(), message);
0019 }
0020 
0021 static inline void information(const QString &message, const QString &title)
0022 {
0023     KMessageBox::information((QWidget *)videoWindow(), message, title);
0024 }
0025 }
0026 }
0027 #endif