Plasma-workspace

notificationsmodel.h
1/*
2 SPDX-FileCopyrightText: 2020 Shah Bhushan <bshah@kde.org>
3 SPDX-FileCopyrightText: 2018-2019 Kai Uwe Broulik <kde@privat.broulik.de>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#pragma once
9
10#include "abstractnotificationsmodel.h"
11
12#include "notificationmanager_export.h"
13
14namespace NotificationManager
15{
16class NOTIFICATIONMANAGER_EXPORT NotificationsModel : public AbstractNotificationsModel
17{
18public:
19 using Ptr = std::shared_ptr<NotificationsModel>;
20 static Ptr createNotificationsModel();
21 void expire(uint notificationId) override;
22 void close(uint notificationId) override;
23
24 void invokeDefaultAction(uint notificationId, Notifications::InvokeBehavior behavior) override;
25 void invokeAction(uint notificationId, const QString &actionName, Notifications::InvokeBehavior behavior) override;
26 void reply(uint notificationId, const QString &text, Notifications::InvokeBehavior behavior) override;
27
28 void configure(uint notificationId);
29 void configure(const QString &desktopEntry, const QString &notifyRcName, const QString &eventId);
30
31private:
32 NotificationsModel();
33};
34
35}
KGuiItem configure()
const QList< QKeySequence > & close()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.