Removed the sound information. Fixed several typos and references to KNotify. Removed the PID hint. Added some D-BUS Error stuff.

This commit is contained in:
Christian Hammond 2004-09-02 16:19:28 +00:00
parent 59f895bd42
commit b1b4fdb7ee
2 changed files with 34 additions and 70 deletions

View File

@ -1,3 +1,11 @@
Thu Sep 02 09:18:38 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* notification-spec.xml:
- Removed the sound information.
- Fixed several typos and references to KNotify.
- Removed the PID hint.
- Added some D-BUS Error stuff.
Thu Sep 02 01:19:07 PDT 2004 Christian Hammond <chipx86@gnupdate.org> Thu Sep 02 01:19:07 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
* notification-spec.xml: * notification-spec.xml:

View File

@ -118,9 +118,10 @@
<row> <row>
<entry>Application Name</entry> <entry>Application Name</entry>
<entry> <entry>
Application name: This is the optional name of the application sending This is the optional name of the application sending the notification.
the notification. This should be the application's formal name, rather This should be the application's formal name, rather than some sort
than some sort of ID. of ID. An example would be "FredApp E-Mail Client," rather than
"fredapp-email-client."
</entry> </entry>
</row> </row>
<row> <row>
@ -130,13 +131,6 @@
This should be in PNG or GIF formats. This should be in PNG or GIF formats.
</entry> </entry>
</row> </row>
<row>
<entry>Application ID</entry>
<entry>
An optional byte array containing the application's icon.
This should be in PNG or GIF formats.
</entry>
</row>
<row> <row>
<entry>Replaces ID</entry> <entry>Replaces ID</entry>
<entry> <entry>
@ -185,11 +179,7 @@
</row> </row>
<row> <row>
<entry>Images</entry> <entry>Images</entry>
<entry>See <xref linkend="icons-sounds"/>.</entry> <entry>See <xref linkend="icons"/>.</entry>
</row>
<row>
<entry>Sounds</entry>
<entry>See <xref linkend="icons-sounds"/>.</entry>
</row> </row>
<row> <row>
<entry>Actions</entry> <entry>Actions</entry>
@ -220,10 +210,6 @@
notification server's settings, and may vary for the type of notification server's settings, and may vary for the type of
notification. notification.
</para> </para>
<para>
The expiration time should be respected by implementations, but this is
not required (this is for compatibility with KNotify).
</para>
</entry> </entry>
</row> </row>
</tbody> </tbody>
@ -315,25 +301,23 @@
</para> </para>
</sect1> </sect1>
<sect1 id="icons-sounds" xreflabel="Icons and Sounds"> <sect1 id="icons" xreflabel="Icons and Sounds">
<title>Icons and Sounds</title> <title>Icons and Sounds</title>
<para> <para>
A notification can optionally include an array of images and/or a A notification can optionally include an array of images. The array of
single sound. The array of images specifies frames in an animation, images specifies frames in an animation, which always loop.
animations always loop. Implementations are free to ignore the Implementations are free to ignore the images data, and implementations
images and sound data, and implementations that support images need not that support images need not support animation.
support animation.
</para> </para>
<para> <para>
If the image array has more than one element, a "primary frame" can If the image array has more than one element, a "primary frame" can
be specified - if not specified it defaults to the first frame. For be specified. If not specified, it defaults to the first frame. For
implementations that support images but not animation (for instance a implementations that support images but not animation, only the primary
<application>KNotify</application> bridge), only the primary frame will frame will be used.
be used.
</para> </para>
<para> <para>
Each element of the array must have the same type as the first Each element of the array must have the same type as the first
element, mixtures of strings and blobs are not allowed. The element element. Mixtures of strings and blobs are not allowed. The element
types can be one of the following: types can be one of the following:
</para> </para>
<informaltable> <informaltable>
@ -377,11 +361,6 @@
</tbody> </tbody>
</tgroup> </tgroup>
</informaltable> </informaltable>
<para>
A sound can be specified, this will be played by the notification
server when the notification is displayed.
<remark>Elaborate here!</remark>
</para>
</sect1> </sect1>
<sect1 id="notification-types" xreflabel="Notification Types"> <sect1 id="notification-types" xreflabel="Notification Types">
@ -434,10 +413,10 @@
them. them.
</para> </para>
<para> <para>
Server implementations may use urgency information how they see fit. For the most part, server implementations may use urgency information
Possible implementations may keep critical notifications on the screen how they see fit. The one exception is the Critical notification.
until the user manually closes them, which is our recommendation. However, As Critical notifications are things that the user will most likely want
there are no user interface guidelines in this area. to know about, they should not be closed until the user dismisses them.
</para> </para>
</sect1> </sect1>
@ -445,8 +424,8 @@
<title>Hints</title> <title>Hints</title>
<para> <para>
Hints are a way to provide extra data to a notification server that Hints are a way to provide extra data to a notification server that
the server may be able to make use of. Such examples may be the the server may be able to make use of. One such example would be the
application's PID or the window ID. window ID.
</para> </para>
<para> <para>
Neither clients nor notification servers are required to support any Neither clients nor notification servers are required to support any
@ -469,13 +448,6 @@
</row> </row>
</thead> </thead>
<tbody valign="top"> <tbody valign="top">
<row>
<entry><literal>"pid"</literal></entry>
<entry>UINT32</entry>
<entry>
The Process ID of the application that sent the notification.
</entry>
</row>
<row> <row>
<entry><literal>"winid"</literal></entry> <entry><literal>"winid"</literal></entry>
<entry>UINT32</entry> <entry>UINT32</entry>
@ -489,7 +461,7 @@
</table> </table>
<para> <para>
Third parties, when defining their own hints, should discuss the Third parties, when defining their own hints, should discuss the
possibilty of standardizing on the hint with other parties, preferably possibility of standardizing on the hint with other parties, preferably
in a place such as the in a place such as the
<ulink url="http://freedesktop.org/mailman/listinfo/xdg">xdg</ulink> <ulink url="http://freedesktop.org/mailman/listinfo/xdg">xdg</ulink>
mailing list at mailing list at
@ -565,14 +537,6 @@
free to ignore them and use only the primary frame. free to ignore them and use only the primary frame.
</entry> </entry>
</row> </row>
<row>
<entry><literal>"sound"</literal></entry>
<entry>
The server will play the specified sound. Even if this cap is
missing, a sound may still be specified however the server is free
to ignore it.
</entry>
</row>
<row> <row>
<entry><literal>"actions"</literal></entry> <entry><literal>"actions"</literal></entry>
<entry> <entry>
@ -608,7 +572,6 @@
<paramdef>STRING <parameter>summary</parameter></paramdef> <paramdef>STRING <parameter>summary</parameter></paramdef>
<paramdef>STRING_OR_NIL <parameter>body</parameter></paramdef> <paramdef>STRING_OR_NIL <parameter>body</parameter></paramdef>
<paramdef>ARRAY <parameter>images</parameter></paramdef> <paramdef>ARRAY <parameter>images</parameter></paramdef>
<paramdef>STRING_OR_NIL <parameter>sound</parameter></paramdef>
<paramdef>DICT_OR_NIL <parameter>actions</parameter></paramdef> <paramdef>DICT_OR_NIL <parameter>actions</parameter></paramdef>
<paramdef>DICT_OR_NIL <parameter>hints</parameter></paramdef> <paramdef>DICT_OR_NIL <parameter>hints</parameter></paramdef>
<paramdef>UINT32_OR_NIL <parameter>expire_time</parameter></paramdef> <paramdef>UINT32_OR_NIL <parameter>expire_time</parameter></paramdef>
@ -678,14 +641,9 @@
<entry><parameter>images</parameter></entry> <entry><parameter>images</parameter></entry>
<entry>ARRAY or NIL</entry> <entry>ARRAY or NIL</entry>
<entry> <entry>
The optional array of images. See <xref linkend="icons-sounds"/>. The optional array of images. See <xref linkend="icons"/>.
</entry> </entry>
</row> </row>
<row>
<entry><parameter>sound</parameter></entry>
<entry>STRING</entry>
<entry>The optional sound file to play.</entry>
</row>
<row> <row>
<entry><parameter>actions</parameter></entry> <entry><parameter>actions</parameter></entry>
<entry>DICT or NIL</entry> <entry>DICT or NIL</entry>
@ -740,7 +698,7 @@
<title><literal>org.freedesktop.Notifications.CloseNotification</literal></title> <title><literal>org.freedesktop.Notifications.CloseNotification</literal></title>
<funcsynopsis> <funcsynopsis>
<funcprototype> <funcprototype>
<funcdef>BOOLEAN <funcdef>void
<function>org.freedesktop.Notifications.CloseNotification</function> <function>org.freedesktop.Notifications.CloseNotification</function>
</funcdef> </funcdef>
<paramdef>UINT32 id</paramdef> <paramdef>UINT32 id</paramdef>
@ -749,7 +707,7 @@
<para> <para>
Causes a notification to be forcefully closed and removed from the user's Causes a notification to be forcefully closed and removed from the user's
view. It can be used, for example, in the event that what the view. It can be used, for example, in the event that what the
notification pertains to is no onger relevant, or to cancel a notification pertains to is no longer relevant, or to cancel a
notification with no expiration time. notification with no expiration time.
</para> </para>
<para> <para>
@ -757,10 +715,8 @@
method. method.
</para> </para>
<para> <para>
This returns <constant>TRUE</constant> if the notification was closed. If the notification no longer exists, an empty D-BUS Error message is
If the notification didn't exist, this will return sent back.
<constant>FALSE</constant>. This can happen if the notification already
expired or was closed, or if the ID was simply invalid.
</para> </para>
</sect3> </sect3>