mirror of https://github.com/Qortal/Brooklyn
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.
41 lines
1.2 KiB
41 lines
1.2 KiB
/* |
|
SPDX-FileCopyrightText: 2020 Shah Bhushan <[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 WatchedNotificationsModel : public AbstractNotificationsModel |
|
{ |
|
Q_OBJECT |
|
Q_PROPERTY(bool valid READ valid NOTIFY validChanged) |
|
|
|
public: |
|
explicit WatchedNotificationsModel(); |
|
~WatchedNotificationsModel(); |
|
|
|
Q_INVOKABLE void expire(uint notificationId) override; |
|
Q_INVOKABLE void close(uint notificationId) override; |
|
|
|
Q_INVOKABLE void invokeDefaultAction(uint notificationId, Notifications::InvokeBehavior behavior) override; |
|
Q_INVOKABLE void invokeAction(uint notificationId, const QString &actionName, Notifications::InvokeBehavior behavior) override; |
|
Q_INVOKABLE void reply(uint notificationId, const QString &text, Notifications::InvokeBehavior behavior) override; |
|
bool valid(); |
|
|
|
Q_SIGNALS: |
|
void validChanged(bool valid); |
|
|
|
private: |
|
class Private; |
|
Private *const d; |
|
Q_DISABLE_COPY(WatchedNotificationsModel) |
|
}; |
|
|
|
}
|
|
|