diff options
author | Dan Williams <dcbw@redhat.com> | 2010-12-17 16:27:55 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-12-17 16:27:55 -0600 |
commit | d2ce75b57a27a9feaddb25558e62ae7162ef7f9f (patch) | |
tree | 4a7363b88fdc2c03d05cf9e834086d7f9384f49f /introspection | |
parent | 592d71ff76318b6389f6866d5394a844c7e35513 (diff) |
core: separate PropertiesChanged signal XML
Which requires that we turn it into a GInterface that MMModemBase
can implement, because dbus-glib does not allow attaching more
than one introspection glue structure to an object at a time.
Also implement the standard D-Bus properties changed signal.
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/Makefile.am | 3 | ||||
-rw-r--r-- | introspection/all.xml | 1 | ||||
-rw-r--r-- | introspection/mm-modem.xml | 18 | ||||
-rw-r--r-- | introspection/mm-properties-changed.xml | 45 |
4 files changed, 48 insertions, 19 deletions
diff --git a/introspection/Makefile.am b/introspection/Makefile.am index 941c9244..5c2a5ebb 100644 --- a/introspection/Makefile.am +++ b/introspection/Makefile.am @@ -15,4 +15,5 @@ EXTRA_DIST = \ mm-modem-simple.xml \ mm-serial-error.xml \ mm-modem-location.xml \ - mm-modem-gsm-ussd.xml + mm-modem-gsm-ussd.xml \ + mm-properties-changed.xml diff --git a/introspection/all.xml b/introspection/all.xml index 6489cf8a..dd30b574 100644 --- a/introspection/all.xml +++ b/introspection/all.xml @@ -35,6 +35,7 @@ <xi:include href="mm-modem-gsm-sms.xml"/> <xi:include href="mm-modem-gsm-hso.xml"/> <xi:include href="mm-modem-gsm-ussd.xml"/> + <xi:include href="mm-properties-changed.xml"/> <xi:include href="mm-serial-error.xml"/> <xi:include href="mm-modem-error.xml"/> diff --git a/introspection/mm-modem.xml b/introspection/mm-modem.xml index 9391bad5..e0cf4bd5 100644 --- a/introspection/mm-modem.xml +++ b/introspection/mm-modem.xml @@ -2,24 +2,6 @@ <node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> - <interface name="org.freedesktop.DBus.Properties"> - <signal name="MmPropertiesChanged"> - <tp:docstring> - One or more properties' values changed. - </tp:docstring> - <arg name="interface" type="s"> - <tp:docstring> - The D-Bus interface of the changed properties. - </tp:docstring> - </arg> - <arg name="properties" type="a{sv}"> - <tp:docstring> - The changed property names and their new values. - </tp:docstring> - </arg> - </signal> - </interface> - <interface name="org.freedesktop.ModemManager.Modem"> <method name="Enable"> <tp:docstring> diff --git a/introspection/mm-properties-changed.xml b/introspection/mm-properties-changed.xml new file mode 100644 index 00000000..b2d09236 --- /dev/null +++ b/introspection/mm-properties-changed.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> + <interface name="org.freedesktop.DBus.Properties"> + <signal name="MmPropertiesChanged"> + <tp:docstring> + One or more properties' values changed. + </tp:docstring> + <arg name="interface" type="s"> + <tp:docstring> + The D-Bus interface of the changed properties. + </tp:docstring> + </arg> + <arg name="properties" type="a{sv}"> + <tp:docstring> + The changed property names and their new values. + </tp:docstring> + </arg> + </signal> + + <signal name="PropertiesChanged"> + <tp:docstring> + One or more properties value changed; this signal implements the + D-Bus specification's PropertiesChanged signal. + </tp:docstring> + <arg name="interface" type="s"> + <tp:docstring> + The D-Bus interface of the changed properties. + </tp:docstring> + </arg> + <arg name="changed_properties" type="a{sv}"> + <tp:docstring> + The changed property names and their new values. + </tp:docstring> + </arg> + <arg name="invalidated_properties" type="as"> + <tp:docstring> + Properties which are now invalid, but for which the new value is not + emitted in this signal. Clients interested in these properties should + issue a Get request for them to retrieve the new value. + </tp:docstring> + </arg> + </signal> + </interface> +</node> |