summaryrefslogtreecommitdiff
path: root/tests/dbus/with-properties.xml
blob: 5047a737eab9342aa28cf8d4e3d2201cdcfb1161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<tp:spec
  xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">

  <tp:title>Something with properties</tp:title>

  <node name="/With_Properties">
    <interface name="com.example.WithProperties">
      <!-- We verify that this is used for the otherwise-unannotated
           properties … -->
      <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
                  value="true"/>

      <property name="ReadOnly" access="read" type="u"/>
      <property name="WriteOnly" access="write" type="u"/>
      <property name="ReadWrite" access="readwrite" type="u">
        <!-- … and that this overrides the global annotation. -->
        <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
                    value="invalidates"/>
      </property>

    </interface>
  </node>

</tp:spec>