forked from KDE/plasma-workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notificationsmodel.h
35 lines (26 loc) · 1.14 KB
/
notificationsmodel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
SPDX-FileCopyrightText: 2020 Shah Bhushan <[email protected]>
SPDX-FileCopyrightText: 2018-2019 Kai Uwe Broulik <[email protected]>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#pragma once
#include "abstractnotificationsmodel.h"
#include "notificationmanager_export.h"
namespace NotificationManager
{
class NOTIFICATIONMANAGER_EXPORT NotificationsModel : public AbstractNotificationsModel
{
public:
using Ptr = std::shared_ptr<NotificationsModel>;
static Ptr createNotificationsModel();
void expire(uint notificationId) override;
void close(uint notificationId) override;
void invokeDefaultAction(uint notificationId, Notifications::InvokeBehavior behavior) override;
void invokeAction(uint notificationId, const QString &actionName, Notifications::InvokeBehavior behavior) override;
void reply(uint notificationId, const QString &text, Notifications::InvokeBehavior behavior) override;
void configure(uint notificationId);
void configure(const QString &desktopEntry, const QString ¬ifyRcName, const QString &eventId);
private:
NotificationsModel();
};
}