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
9class KNotificationPluginPrivate
10{
11};
12
13KNotificationPlugin::KNotificationPlugin(QObject *parent, const QVariantList &args)
14 : QObject(parent)
15 , d(nullptr)
16{
17 Q_UNUSED(args);
18}
19
20KNotificationPlugin::~KNotificationPlugin()
21{
22}
23
24void KNotificationPlugin::update(KNotification *notification, const KNotifyConfig &notifyConfig)
25{
26 Q_UNUSED(notification);
27 Q_UNUSED(notifyConfig);
28}
29
31{
32 Q_EMIT finished(notification);
33}
34
36{
37 Q_EMIT finished(notification);
38}
39
40#include "moc_knotificationplugin.cpp"
virtual void update(KNotification *notification, const KNotifyConfig &notifyConfig)
This function is called when the notification has changed (such as the text or the icon)
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...
KNotification is the main class for creating notifications.
Represent the configuration for an event.
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.