summaryrefslogtreecommitdiff
path: root/src/tests/com.example.Tweak.xml
blob: 82a2e6c1769a0095aba9e4b7b69bf16806815002 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/com/example/TestService">

  <interface name="com.example.Tweak">
    <annotation name="org.gtk.EggDBus.DocString" value="The #Tweak interface wraps the D-Bus interface <literal>com.example.Tweak</literal>. It is used in the EggDBus test suite."/>
    <annotation name="org.gtk.EggDBus.DocString.Summary" value="Tweak interface used for testing"/>

    <property name="foo" type="s" access="read">
      <annotation name="org.gtk.EggDBus.DocString" value="The Foo value"/>
    </property>
    <property name="bar" type="ai" access="read">
      <annotation name="org.gtk.EggDBus.DocString" value="The Bar factor"/>
    </property>
    <property name="baz" type="(ii)" access="read">
      <annotation name="org.gtk.EggDBus.DocString" value="The Baz indicator"/>
    </property>

    <property name="baz-forced-to-use-pair" type="(ii)" access="read">
      <annotation name="org.gtk.EggDBus.StructType" value="Pair"/>
      <annotation name="org.gtk.EggDBus.DocString" value=" A slightly different Baz indicator "/>
    </property>

    <property name="SomeReadWriteProperty" type="s" access="readwrite">
      <annotation name="org.gtk.EggDBus.DocString" value="Hey, I'm promiscuous. I'm writeable!"/>
    </property>

    <property name="PropertyWithCType" type="i" access="readwrite">
      <annotation name="org.gtk.EggDBus.CType" value="TestSomeExampleCType"/>
      <annotation name="org.gtk.EggDBus.DocString" value="I'm a special C type"/>
    </property>

    <method name="BlockUntilRWPropertyChanges">
      <annotation name="org.gtk.EggDBus.DocString" value="Blocks until #Tweak:SomeReadWriteProperty changes"/>
      <arg direction="out" type="s" name="NewPropValue">
        <annotation name="org.gtk.EggDBus.DocString" value="The new value of #Tweak:SomeReadWriteProperty"/>
      </arg>
    </method>

    <method name="ChangeReadableProperty">
      <annotation name="org.gtk.EggDBus.DocString" value="Changes the #Tweak:foo property"/>
      <arg direction="in" type="s" name="new_value">
        <annotation name="org.gtk.EggDBus.DocString" value="New value for the #Tweak:foo property"/>
      </arg>
    </method>

    <method name="ICanHazGreetingz">
      <annotation name="org.gtk.EggDBus.DocString" value="This method will take a greeting and give a rewritten greeting back"/>
      <arg direction="in"  type="s" name="greetz">
        <annotation name="org.gtk.EggDBus.DocString" value="Greeting to pass to method"/>
      </arg>
      <arg direction="out" type="s" name="word">
        <annotation name="org.gtk.EggDBus.DocString" value="Rewritten greeting"/>
      </arg>
    </method>

    <signal name="NewzNotifz">
      <annotation name="org.gtk.EggDBus.DocString" value="Emitted when there are NEWZ on the #Tweak interface"/>
      <arg type="s" name="newz">
        <annotation name="org.gtk.EggDBus.DocString" value="The newz in the tweaked world"/>
      </arg>
    </signal>

    <method name="BroadcastzNewz">
      <annotation name="org.gtk.EggDBus.DocString" value="Conduit to broadcast newz. This method will make the object emit the #Tweak::NewzNotifz signal using the passed in parameter @newz as the news to broadcast."/>
      <arg direction="in"  type="s" name="newz">
        <annotation name="org.gtk.EggDBus.DocString" value="The news to broadcast"/>
      </arg>
    </method>

    <method name="GetServerUniqueName">
      <annotation name="org.gtk.EggDBus.DocString" value="Gets the unique D-Bus name of the server"/>
      <arg direction="out" type="s" name="server_unique_name">
        <annotation name="org.gtk.EggDBus.DocString" value="Unique D-Bus name"/>
      </arg>
    </method>

    <method name="LongRunningMethod">
      <annotation name="org.gtk.EggDBus.DocString" value="A method that takes @msec_to_run milliseconds to reply"/>
      <arg direction="in"  type="i" name="msec_to_run">
        <annotation name="org.gtk.EggDBus.DocString" value="Number of milliseconds to wait until replying"/>
      </arg>
    </method>

    <method name="ReturnGError">
      <annotation name="org.gtk.EggDBus.DocString" value="Throws an error identified by @error_domain and @error_code. This is mainly for testing that we can transparently hand #GError<!-- -->'s back and forth."/>
      <arg direction="in"  type="s" name="error_domain">
        <annotation name="org.gtk.EggDBus.DocString" value="A #GError error domain"/>
      </arg>
      <arg direction="in"  type="i" name="error_code">
        <annotation name="org.gtk.EggDBus.DocString" value="The error code for @error_domain"/>
      </arg>
    </method>

    <method name="MethodStructDisambiguation">
      <annotation name="org.gtk.EggDBus.DocString" value="A method to check we can properly disambiguate what structure wrapper types to use"/>
      <arg direction="in"  type="(ii)" name="pair">
        <annotation name="org.gtk.EggDBus.StructType" value="Pair"/>
        <annotation name="org.gtk.EggDBus.DocString" value="A pair"/>
      </arg>
      <arg direction="in"  type="(ii)" name="point">
        <annotation name="org.gtk.EggDBus.StructType" value="Point"/>
        <annotation name="org.gtk.EggDBus.DocString" value="A point"/>
      </arg>
      <arg direction="out"  type="(ii)" name="enhanced_point">
        <annotation name="org.gtk.EggDBus.StructType" value="Point"/>
        <annotation name="org.gtk.EggDBus.DocString" value="An enhanced point"/>
      </arg>
      <arg direction="out"  type="(ii)" name="enhanced_pair">
        <annotation name="org.gtk.EggDBus.StructType" value="Pair"/>
        <annotation name="org.gtk.EggDBus.DocString" value="An enhanced pair"/>
      </arg>
    </method>

    <signal name="SignalStructDisambiguation">
      <annotation name="org.gtk.EggDBus.DocString" value="A signal to check we can properly disambiguate what structure wrapper types to use"/>
      <arg type="(ii)" name="pair">
        <annotation name="org.gtk.EggDBus.StructType" value="Pair"/>
        <annotation name="org.gtk.EggDBus.DocString" value="A pair"/>
      </arg>
      <arg type="(ii)" name="point">
        <annotation name="org.gtk.EggDBus.StructType" value="Point"/>
        <annotation name="org.gtk.EggDBus.DocString" value="A point"/>
      </arg>
    </signal>

    <signal name="SignalWithCType">
      <annotation name="org.gtk.EggDBus.DocString" value="A signal to check we properly support specifying what C type to use for an integral type"/>
      <arg type="i" name="better_value">
        <annotation name="org.gtk.EggDBus.CType" value="TestSomeExampleCType"/>
        <annotation name="org.gtk.EggDBus.DocString" value="Some value"/>
      </arg>
    </signal>

    <method name="MethodWithCTypes">
      <annotation name="org.gtk.EggDBus.DocString" value="A method to check we properly support specifying what C type to use for an integral type"/>
      <arg direction="in" type="i" name="value">
        <annotation name="org.gtk.EggDBus.CType" value="TestSomeExampleCType"/>
        <annotation name="org.gtk.EggDBus.DocString" value="Some value"/>
      </arg>
      <arg direction="out" type="i" name="better_value">
        <annotation name="org.gtk.EggDBus.CType" value="TestSomeExampleCType"/>
        <annotation name="org.gtk.EggDBus.DocString" value="I can't believe it's a better value!"/>
      </arg>
    </method>

  </interface>

</node>