Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
113 lines
4.1 KiB
XML
113 lines
4.1 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Copyright (C) 2016 Red Hat, Inc.
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
Author: Matthias Clasen <mclasen@redhat.com>
|
|
-->
|
|
|
|
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
|
|
<!--
|
|
org.freedesktop.impl.portal.Notification:
|
|
@short_description: Notification portal backend interface
|
|
|
|
This notification interface lets sandboxed applications
|
|
send and withdraw notifications.
|
|
|
|
This documentation describes version 2 of this interface.
|
|
-->
|
|
<interface name="org.freedesktop.impl.portal.Notification">
|
|
<!--
|
|
AddNotification:
|
|
@app_id: App id of the application
|
|
@id: Application-provided ID for this notification
|
|
@notification: Vardict with the serialized notification
|
|
|
|
Sends a notification.
|
|
|
|
The ID can be used to later withdraw the notification.
|
|
If the application reuses the same ID without withdrawing,
|
|
the notification is updated with the new one. It's possible
|
|
to set ``show-as-new`` hint in the ``display-hint`` property
|
|
to animate replacing the notification instead of updating it.
|
|
|
|
The format of the @notification is the same as for
|
|
:ref:`org.freedesktop.portal.Notification.AddNotification`.
|
|
|
|
Since version 2, the icon property never uses the ``bytes`` option.
|
|
-->
|
|
<method name="AddNotification">
|
|
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
|
|
<arg type="s" name="app_id" direction="in"/>
|
|
<arg type="s" name="id" direction="in"/>
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/>
|
|
<arg type="a{sv}" name="notification" direction="in"/>
|
|
</method>
|
|
<!--
|
|
RemoveNotification:
|
|
@app_id: App id of the application
|
|
@id: Application-provided ID for this notification
|
|
|
|
Withdraws a notification.
|
|
-->
|
|
<method name="RemoveNotification">
|
|
<arg type="s" name="app_id" direction="in"/>
|
|
<arg type="s" name="id" direction="in"/>
|
|
</method>
|
|
|
|
<!--
|
|
SupportedOptions:
|
|
|
|
Some properties in :ref:`org.freedesktop.impl.portal.Notification.AddNotification`
|
|
may have options advertised by the notification server.
|
|
|
|
The format is the same as for ``SupportedOptions`` property of
|
|
:ref:`org.freedesktop.portal.Notification`.
|
|
-->
|
|
<property name="SupportedOptions" type="a{sv}" access="read">
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="QVariantMap"/>
|
|
</property>
|
|
|
|
<!--
|
|
ActionInvoked:
|
|
@app_id: App id of the application
|
|
@id: the application-provided ID for the notification
|
|
@action: the name of the action
|
|
@parameter: an array containing additional information
|
|
|
|
Send to the application when a non-exported action is
|
|
activated.
|
|
|
|
The @parameter contains the following values in order:
|
|
|
|
#. The `target` for the action, if one was specified.
|
|
|
|
#. The `platform-data` as vardict containing an ``activation-token`` (``s``) for
|
|
`XDG Activation
|
|
<https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/xdg-activation-v1.xml>`_
|
|
-->
|
|
<signal name="ActionInvoked">
|
|
<arg type="s" name="app_id"/>
|
|
<arg type="s" name="id"/>
|
|
<arg type="s" name="action"/>
|
|
<arg type="av" name="parameter"/>
|
|
</signal>
|
|
|
|
<property name="version" type="u" access="read"/>
|
|
</interface>
|
|
</node>
|