KNotifications

knotificationplugin.cpp
1 /*
2  SPDX-FileCopyrightText: 2005-2006 Olivier Goffart <ogoffart at kde.org>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #include "knotificationplugin.h"
8 
9 class KNotificationPluginPrivate
10 {
11 };
12 
13 KNotificationPlugin::KNotificationPlugin(QObject *parent, const QVariantList &args)
14  : QObject(parent)
15  , d(nullptr)
16 {
17  Q_UNUSED(args);
18 }
19 
20 KNotificationPlugin::~KNotificationPlugin()
21 {
22 }
23 
25 {
26  Q_UNUSED(notification);
27  Q_UNUSED(config);
28 }
29 
31 {
32  Q_EMIT finished(notification);
33 }
34 
36 {
37  Q_EMIT finished(notification);
38 }
Q_EMITQ_EMIT
virtual void close(KNotification *notification)
This function is called when the notification has been closed.
void finished(KNotification *notification)
the presentation is finished.
void finish(KNotification *notification)
emit the finished signal you MUST call this function for each call to notify(), even if you do nothin...
virtual void update(KNotification *notification, KNotifyConfig *config)
This function is called when the notification has changed (such as the text or the icon)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.