QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.1 KiB

/*
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"
namespace NotificationManager
{
class Q_DECL_EXPORT NotificationsModel : public AbstractNotificationsModel
{
public:
using Ptr = QSharedPointer<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 &notifyRcName, const QString &eventId);
private:
NotificationsModel();
};
}