Commit 28dbdaa7 authored by Marco Martin's avatar Marco Martin
Browse files

support for actions in WatchedNotificationsManager

* use the proper argument for actions, which is in the weird format
  name0label0,name1,label1,...
* make invokeaction, close et al invokable from QML
parent 3a20578f
......@@ -258,7 +258,7 @@ uint ServerPrivate::Notify(const QString &app_name, uint replaces_id, const QStr
// we pass raw body data since this data goes through another sanitization
// in WatchedNotificationsModel when notification object is created.
notification.rawBody(),
notification.actionNames(),
actions,
hints,
notification.timeout()
});
......
......@@ -37,12 +37,12 @@ public:
explicit WatchedNotificationsModel();
~WatchedNotificationsModel();
void expire(uint notificationId) override;
void close(uint notificationId) override;
Q_INVOKABLE void expire(uint notificationId) override;
Q_INVOKABLE void close(uint notificationId) override;
void invokeDefaultAction(uint notificationId) override;
void invokeAction(uint notificationId, const QString &actionName) override;
void reply(uint notificationId, const QString &text) override;
Q_INVOKABLE void invokeDefaultAction(uint notificationId) override;
Q_INVOKABLE void invokeAction(uint notificationId, const QString &actionName) override;
Q_INVOKABLE void reply(uint notificationId, const QString &text) override;
bool valid();
signals:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment