Warning, file /frameworks/kwidgetsaddons/src/kmessageboxnotifyinterface.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2013 Aurélien Gâteau <agateau@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #ifndef KMESSAGEBOXNOTIFYINTERFACE_H 0009 #define KMESSAGEBOXNOTIFYINTERFACE_H 0010 0011 #include "kmessagebox.h" 0012 #include <qmetatype.h> 0013 0014 /** 0015 * @internal 0016 * Used internally by KMessageBox, implemented by plugin, for dynamic dependency on KNotification. 0017 */ 0018 class KMessageBoxNotifyInterface 0019 { 0020 public: 0021 KMessageBoxNotifyInterface() 0022 { 0023 } 0024 virtual ~KMessageBoxNotifyInterface() 0025 { 0026 } 0027 0028 virtual void sendNotification(QMessageBox::Icon notificationType, const QString &message, QWidget *parent) = 0; 0029 }; 0030 0031 Q_DECLARE_METATYPE(KMessageBoxNotifyInterface *) 0032 0033 #define KMESSAGEBOXNOTIFY_PROPERTY "KMessageBoxNotify" 0034 0035 #endif