1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2013 Aurélien Gâteau <agateau@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef KMESSAGEBOXNOTIFYINTERFACE_H
9#define KMESSAGEBOXNOTIFYINTERFACE_H
10
11#include "kmessagebox.h"
12#include <qmetatype.h>
13
14/**
15 * @internal
16 * Used internally by KMessageBox, implemented by plugin, for dynamic dependency on KNotification.
17 */
18class KMessageBoxNotifyInterface
19{
20public:
21 KMessageBoxNotifyInterface()
22 {
23 }
24 virtual ~KMessageBoxNotifyInterface()
25 {
26 }
27
28 virtual void sendNotification(QMessageBox::Icon notificationType, const QString &message, QWidget *parent) = 0;
29};
30
31Q_DECLARE_METATYPE(KMessageBoxNotifyInterface *)
32
33#define KMESSAGEBOXNOTIFY_PROPERTY "KMessageBoxNotify"
34
35#endif
36

source code of kwidgetsaddons/src/kmessageboxnotifyinterface.h