Org freedesktop Notifications. org freedesktop Notifications

From Openmoko

(Difference between revisions)
Jump to: navigation, search
 
Line 66: Line 66:
 
</pre>
 
</pre>
  
[[Category:Application Developer]]
+
[[Category:D-Bus]]

Latest revision as of 23:35, 31 July 2008

[edit] Overview

Bus name: org.freedesktop.Notifications
Object name: /org/freedesktop/Notifications
  interface org.freedesktop.DBus.Introspectable
    (data:s) Introspect()
  interface org.freedesktop.DBus.Properties
    (value:v) Get(interface:s,propname:s)
    () Set(interface:s,propname:s,value:v)
  interface org.freedesktop.Notifications
    (return_name:s,return_vendor:s,return_version:s,return_spec_version:s) GetServerInformation()
    (return_caps:as) GetCapabilities()
    () CloseNotification(id:u)
    (return_id:u) Notify(app_name:s,id:u,icon:s,summary:s,body:s,actions:as,hints:a{sv},timeout:i)

[edit] Introspect XML

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.freedesktop.DBus.Introspectable">
    <method name="Introspect">
      <arg name="data" direction="out" type="s"/>
    </method>
  </interface>
  <interface name="org.freedesktop.DBus.Properties">
    <method name="Get">
      <arg name="interface" direction="in" type="s"/>
      <arg name="propname" direction="in" type="s"/>
      <arg name="value" direction="out" type="v"/>
    </method>
    <method name="Set">
      <arg name="interface" direction="in" type="s"/>
      <arg name="propname" direction="in" type="s"/>
      <arg name="value" direction="in" type="v"/>
    </method>
  </interface>
  <interface name="org.freedesktop.Notifications">
    <method name="GetServerInformation">
      <arg name="return_name" type="s" direction="out"/>
      <arg name="return_vendor" type="s" direction="out"/>
      <arg name="return_version" type="s" direction="out"/>
      <arg name="return_spec_version" type="s" direction="out"/>
    </method>
    <method name="GetCapabilities">
      <arg name="return_caps" type="as" direction="out"/>
    </method>
    <method name="CloseNotification">
      <arg name="id" type="u" direction="in"/>
    </method>
    <method name="Notify">
      <arg name="app_name" type="s" direction="in"/>
      <arg name="id" type="u" direction="in"/>
      <arg name="icon" type="s" direction="in"/>
      <arg name="summary" type="s" direction="in"/>
      <arg name="body" type="s" direction="in"/>
      <arg name="actions" type="as" direction="in"/>
      <arg name="hints" type="a{sv}" direction="in"/>
      <arg name="timeout" type="i" direction="in"/>
      <arg name="return_id" type="u" direction="out"/>
    </method>
  </interface>
</node>

Personal tools

Overview

Bus name: org.freedesktop.Notifications
Object name: /org/freedesktop/Notifications
  interface org.freedesktop.DBus.Introspectable
    (data:s) Introspect()
  interface org.freedesktop.DBus.Properties
    (value:v) Get(interface:s,propname:s)
    () Set(interface:s,propname:s,value:v)
  interface org.freedesktop.Notifications
    (return_name:s,return_vendor:s,return_version:s,return_spec_version:s) GetServerInformation()
    (return_caps:as) GetCapabilities()
    () CloseNotification(id:u)
    (return_id:u) Notify(app_name:s,id:u,icon:s,summary:s,body:s,actions:as,hints:a{sv},timeout:i)

Introspect XML

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.freedesktop.DBus.Introspectable">
    <method name="Introspect">
      <arg name="data" direction="out" type="s"/>
    </method>
  </interface>
  <interface name="org.freedesktop.DBus.Properties">
    <method name="Get">
      <arg name="interface" direction="in" type="s"/>
      <arg name="propname" direction="in" type="s"/>
      <arg name="value" direction="out" type="v"/>
    </method>
    <method name="Set">
      <arg name="interface" direction="in" type="s"/>
      <arg name="propname" direction="in" type="s"/>
      <arg name="value" direction="in" type="v"/>
    </method>
  </interface>
  <interface name="org.freedesktop.Notifications">
    <method name="GetServerInformation">
      <arg name="return_name" type="s" direction="out"/>
      <arg name="return_vendor" type="s" direction="out"/>
      <arg name="return_version" type="s" direction="out"/>
      <arg name="return_spec_version" type="s" direction="out"/>
    </method>
    <method name="GetCapabilities">
      <arg name="return_caps" type="as" direction="out"/>
    </method>
    <method name="CloseNotification">
      <arg name="id" type="u" direction="in"/>
    </method>
    <method name="Notify">
      <arg name="app_name" type="s" direction="in"/>
      <arg name="id" type="u" direction="in"/>
      <arg name="icon" type="s" direction="in"/>
      <arg name="summary" type="s" direction="in"/>
      <arg name="body" type="s" direction="in"/>
      <arg name="actions" type="as" direction="in"/>
      <arg name="hints" type="a{sv}" direction="in"/>
      <arg name="timeout" type="i" direction="in"/>
      <arg name="return_id" type="u" direction="out"/>
    </method>
  </interface>
</node>