~codygarver/+junk/ind-sess

« back to all changes in this revision

Viewing changes to src/backend-dbus/org.gnome.SessionManager.xml

  • Committer: Cody Garver
  • Date: 2014-04-03 17:08:08 UTC
  • Revision ID: cody@elementaryos.org-20140403170808-z56s93rorb1dzvmk
Initial import, version 12.10.5+14.04.20140324-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" ?>
 
2
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
 
3
<node xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
 
4
  <interface name="org.gnome.SessionManager">
 
5
 
 
6
    <!-- Initialization phase interfaces -->
 
7
 
 
8
    <method name="Setenv">
 
9
      <arg name="variable" type="s" direction="in">
 
10
        <doc:doc>
 
11
          <doc:summary>The variable name</doc:summary>
 
12
        </doc:doc>
 
13
      </arg>
 
14
      <arg name="value" type="s" direction="in">
 
15
        <doc:doc>
 
16
          <doc:summary>The value</doc:summary>
 
17
        </doc:doc>
 
18
      </arg>
 
19
      <doc:doc>
 
20
        <doc:description>
 
21
          <doc:para>Adds the variable name to the application launch environment with the specified value.  May only be used during the Session Manager initialization phase.</doc:para>
 
22
        </doc:description>
 
23
      </doc:doc>
 
24
    </method>
 
25
 
 
26
    <method name="GetLocale">
 
27
      <arg name="category" type="i" direction="in">
 
28
        <doc:doc>
 
29
          <doc:summary>The locale category</doc:summary>
 
30
        </doc:doc>
 
31
      </arg>
 
32
      <arg name="value" type="s" direction="out">
 
33
        <doc:doc>
 
34
          <doc:summary>The value</doc:summary>
 
35
        </doc:doc>
 
36
      </arg>
 
37
      <doc:doc>
 
38
        <doc:description>
 
39
          <doc:para>Reads the current state of the specific locale category.</doc:para>
 
40
        </doc:description>
 
41
      </doc:doc>
 
42
    </method>
 
43
 
 
44
    <method name="InitializationError">
 
45
      <arg name="message" type="s" direction="in">
 
46
        <doc:doc>
 
47
          <doc:summary>The error message</doc:summary>
 
48
        </doc:doc>
 
49
      </arg>
 
50
      <arg name="fatal" type="b" direction="in">
 
51
        <doc:doc>
 
52
          <doc:summary>Whether the error should be treated as fatal</doc:summary>
 
53
        </doc:doc>
 
54
      </arg>
 
55
      <doc:doc>
 
56
        <doc:description>
 
57
          <doc:para>May be used by applications launched during the Session Manager initialization phase to indicate there was a problem.</doc:para>
 
58
        </doc:description>
 
59
      </doc:doc>
 
60
    </method>
 
61
 
 
62
    <!-- Running phase interfaces -->
 
63
 
 
64
    <method name="RegisterClient">
 
65
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
 
66
      <arg type="s" name="app_id" direction="in">
 
67
        <doc:doc>
 
68
          <doc:summary>The application identifier</doc:summary>
 
69
        </doc:doc>
 
70
      </arg>
 
71
      <arg type="s" name="client_startup_id" direction="in">
 
72
        <doc:doc>
 
73
          <doc:summary>Client startup identifier</doc:summary>
 
74
        </doc:doc>
 
75
      </arg>
 
76
      <arg type="o" name="client_id" direction="out">
 
77
        <doc:doc>
 
78
          <doc:summary>The object path of the newly registered client</doc:summary>
 
79
        </doc:doc>
 
80
      </arg>
 
81
      <doc:doc>
 
82
        <doc:description>
 
83
          <doc:para>Register the caller as a Session Management client.</doc:para>
 
84
        </doc:description>
 
85
      </doc:doc>
 
86
    </method>
 
87
 
 
88
    <method name="UnregisterClient">
 
89
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
 
90
      <arg type="o" name="client_id" direction="in">
 
91
        <doc:doc>
 
92
          <doc:summary>The object path of the client</doc:summary>
 
93
        </doc:doc>
 
94
      </arg>
 
95
      <doc:doc>
 
96
        <doc:description>
 
97
          <doc:para>Unregister the specified client from Session Management.</doc:para>
 
98
        </doc:description>
 
99
      </doc:doc>
 
100
    </method>
 
101
 
 
102
    <method name="Inhibit">
 
103
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
 
104
      <arg type="s" name="app_id" direction="in">
 
105
        <doc:doc>
 
106
          <doc:summary>The application identifier</doc:summary>
 
107
        </doc:doc>
 
108
      </arg>
 
109
      <arg type="u" name="toplevel_xid" direction="in">
 
110
        <doc:doc>
 
111
          <doc:summary>The toplevel X window identifier</doc:summary>
 
112
        </doc:doc>
 
113
      </arg>
 
114
      <arg type="s" name="reason" direction="in">
 
115
        <doc:doc>
 
116
          <doc:summary>The reason for the inhibit</doc:summary>
 
117
        </doc:doc>
 
118
      </arg>
 
119
      <arg type="u" name="flags" direction="in">
 
120
        <doc:doc>
 
121
          <doc:summary>Flags that specify what should be inhibited</doc:summary>
 
122
        </doc:doc>
 
123
      </arg>
 
124
      <arg type="u" name="inhibit_cookie" direction="out">
 
125
        <doc:doc>
 
126
          <doc:summary>The cookie</doc:summary>
 
127
        </doc:doc>
 
128
      </arg>
 
129
      <doc:doc>
 
130
        <doc:summary>
 
131
          Proactively indicates that the calling application is performing an action that should not be interrupted and sets a reason to be displayed to the user when an interruption is about to take placea.
 
132
        </doc:summary>
 
133
        <doc:description>
 
134
          <doc:para>Applications should invoke this method when they begin an operation that
 
135
            should not be interrupted, such as creating a CD or DVD.  The types of actions
 
136
            that may be blocked are specified by the flags parameter.  When the application
 
137
            completes the operation it should call <doc:ref type="method" to="org.gnome.SessionManager.Uninhibit">Uninhibit()</doc:ref>
 
138
            or disconnect from the session bus.
 
139
          </doc:para>
 
140
          <doc:para>
 
141
            Applications should not expect that they will always be able to block the
 
142
            action.  In most cases, users will be given the option to force the action
 
143
            to take place.
 
144
          </doc:para>
 
145
          <doc:para>
 
146
            Reasons should be short and to the point.
 
147
          </doc:para>
 
148
          <doc:para>
 
149
            The flags parameter must include at least one of the following:
 
150
            <doc:list>
 
151
              <doc:item>
 
152
                <doc:term>1</doc:term>
 
153
                <doc:definition>Inhibit logging out</doc:definition>
 
154
              </doc:item>
 
155
              <doc:item>
 
156
                <doc:term>2</doc:term>
 
157
                <doc:definition>Inhibit user switching</doc:definition>
 
158
              </doc:item>
 
159
              <doc:item>
 
160
                <doc:term>4</doc:term>
 
161
                <doc:definition>Inhibit suspending the session or computer</doc:definition>
 
162
              </doc:item>
 
163
              <doc:item>
 
164
                <doc:term>8</doc:term>
 
165
                <doc:definition>Inhibit the session being marked as idle</doc:definition>
 
166
              </doc:item>
 
167
              <doc:item>
 
168
                <doc:term>16</doc:term>
 
169
                <doc:definition>Inhibit auto-mounting removable media for the session</doc:definition>
 
170
              </doc:item>
 
171
            </doc:list>
 
172
            Values for flags may be bitwise or'ed together.
 
173
          </doc:para>
 
174
          <doc:para>
 
175
            The returned cookie is used to uniquely identify this request.  It should be used
 
176
            as an argument to <doc:ref type="method" to="org.gnome.SessionManager.Uninhibit">Uninhibit()</doc:ref> in
 
177
            order to remove the request.
 
178
          </doc:para>
 
179
        </doc:description>
 
180
      </doc:doc>
 
181
    </method>
 
182
 
 
183
    <method name="Uninhibit">
 
184
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
 
185
      <arg type="u" name="inhibit_cookie" direction="in">
 
186
        <doc:doc>
 
187
          <doc:summary>The cookie</doc:summary>
 
188
        </doc:doc>
 
189
      </arg>
 
190
      <doc:doc>
 
191
        <doc:description>
 
192
          <doc:para>Cancel a previous call to <doc:ref type="method" to="org.gnome.SessionManager.Inhibit">Inhibit()</doc:ref> identified by the cookie.</doc:para>
 
193
        </doc:description>
 
194
      </doc:doc>
 
195
    </method>
 
196
 
 
197
    <method name="IsInhibited">
 
198
      <arg type="u" name="flags" direction="in">
 
199
        <doc:doc>
 
200
          <doc:summary>Flags that spefify what should be inhibited</doc:summary>
 
201
        </doc:doc>
 
202
      </arg>
 
203
      <arg type="b" name="is_inhibited" direction="out">
 
204
        <doc:doc>
 
205
          <doc:summary>Returns TRUE if any of the operations in the bitfield flags are inhibited</doc:summary>
 
206
        </doc:doc>
 
207
      </arg>
 
208
      <doc:doc>
 
209
        <doc:description>
 
210
          <doc:para>Determine if operation(s) specified by the flags
 
211
            are currently inhibited.  Flags are same as those accepted
 
212
            by the
 
213
            <doc:ref type="method" to="org.gnome.SessionManager.Inhibit">Inhibit()</doc:ref>
 
214
            method.</doc:para>
 
215
        </doc:description>
 
216
      </doc:doc>
 
217
    </method>
 
218
 
 
219
    <method name="GetClients">
 
220
      <arg name="clients" direction="out" type="ao">
 
221
        <doc:doc>
 
222
          <doc:summary>an array of client IDs</doc:summary>
 
223
        </doc:doc>
 
224
      </arg>
 
225
      <doc:doc>
 
226
        <doc:description>
 
227
          <doc:para>This gets a list of all the <doc:ref type="interface" to="org.gnome.SessionManager.Client">Clients</doc:ref>
 
228
          that are currently known to the session manager.</doc:para>
 
229
          <doc:para>Each Client ID is an D-Bus object path for the object that implements the
 
230
          <doc:ref type="interface" to="org.gnome.SessionManager.Client">Client</doc:ref> interface.</doc:para>
 
231
        </doc:description>
 
232
        <doc:seealso><doc:ref type="interface" to="org.gnome.SessionManager.Client">org.gnome.SessionManager.Client</doc:ref></doc:seealso>
 
233
      </doc:doc>
 
234
    </method>
 
235
 
 
236
    <method name="GetInhibitors">
 
237
      <arg name="inhibitors" direction="out" type="ao">
 
238
        <doc:doc>
 
239
          <doc:summary>an array of inhibitor IDs</doc:summary>
 
240
        </doc:doc>
 
241
      </arg>
 
242
      <doc:doc>
 
243
        <doc:description>
 
244
          <doc:para>This gets a list of all the <doc:ref type="interface" to="org.gnome.SessionManager.Inhibitor">Inhibitors</doc:ref>
 
245
          that are currently known to the session manager.</doc:para>
 
246
          <doc:para>Each Inhibitor ID is an D-Bus object path for the object that implements the
 
247
          <doc:ref type="interface" to="org.gnome.SessionManager.Inhibitor">Inhibitor</doc:ref> interface.</doc:para>
 
248
        </doc:description>
 
249
        <doc:seealso><doc:ref type="interface" to="org.gnome.SessionManager.Inhibitor">org.gnome.SessionManager.Inhibitor</doc:ref></doc:seealso>
 
250
      </doc:doc>
 
251
    </method>
 
252
 
 
253
 
 
254
    <method name="IsAutostartConditionHandled">
 
255
      <arg name="condition" direction="in" type="s">
 
256
        <doc:doc>
 
257
          <doc:summary>The autostart condition string</doc:summary>
 
258
        </doc:doc>
 
259
      </arg>
 
260
      <arg name="handled" direction="out" type="b">
 
261
        <doc:doc>
 
262
          <doc:summary>True if condition is handled, false otherwise</doc:summary>
 
263
        </doc:doc>
 
264
      </arg>
 
265
      <doc:doc>
 
266
        <doc:description>
 
267
          <doc:para>Allows the caller to determine whether the session manager is
 
268
          handling changes to the specified autostart condition.</doc:para>
 
269
        </doc:description>
 
270
      </doc:doc>
 
271
    </method>
 
272
 
 
273
    <method name="Shutdown">
 
274
      <doc:doc>
 
275
        <doc:description>
 
276
          <doc:para>Request a shutdown dialog.</doc:para>
 
277
        </doc:description>
 
278
      </doc:doc>
 
279
    </method>
 
280
 
 
281
    <method name="Reboot">
 
282
      <doc:doc>
 
283
        <doc:description>
 
284
          <doc:para>Request a reboot dialog.</doc:para>
 
285
        </doc:description>
 
286
      </doc:doc>
 
287
    </method>
 
288
 
 
289
    <method name="CanShutdown">
 
290
      <arg name="is_available" direction="out" type="b">
 
291
        <doc:doc>
 
292
          <doc:summary>True if shutdown is available to the user, false otherwise</doc:summary>
 
293
        </doc:doc>
 
294
      </arg>
 
295
      <doc:doc>
 
296
        <doc:description>
 
297
          <doc:para>Allows the caller to determine whether or not it's okay to show
 
298
          a shutdown option in the UI</doc:para>
 
299
        </doc:description>
 
300
      </doc:doc>
 
301
    </method>
 
302
 
 
303
    <method name="Logout">
 
304
      <arg name="mode" type="u" direction="in">
 
305
        <doc:doc>
 
306
          <doc:summary>The type of logout that is being requested</doc:summary>
 
307
        </doc:doc>
 
308
      </arg>
 
309
      <doc:doc>
 
310
        <doc:description>
 
311
          <doc:para>Request a logout dialog</doc:para>
 
312
          <doc:para>
 
313
            Allowed values for the mode parameter are:
 
314
            <doc:list>
 
315
              <doc:item>
 
316
                <doc:term>0</doc:term>
 
317
                <doc:definition>Normal.</doc:definition>
 
318
              </doc:item>
 
319
              <doc:item>
 
320
                <doc:term>1</doc:term>
 
321
                <doc:definition>No confirmation inferface should be shown.</doc:definition>
 
322
              </doc:item>
 
323
              <doc:item>
 
324
                <doc:term>2</doc:term>
 
325
                <doc:definition>Forcefully logout.  No confirmation will be shown and any inhibitors will be ignored.</doc:definition>
 
326
              </doc:item>
 
327
            </doc:list>
 
328
            Values for flags may be bitwise or'ed together.
 
329
          </doc:para>
 
330
        </doc:description>
 
331
      </doc:doc>
 
332
    </method>
 
333
 
 
334
    <method name="IsSessionRunning">
 
335
      <arg name="running" direction="out" type="b">
 
336
        <doc:doc>
 
337
          <doc:summary>True if the session has entered the Running phase, false otherwise</doc:summary>
 
338
        </doc:doc>
 
339
      </arg>
 
340
      <doc:doc>
 
341
        <doc:description>
 
342
          <doc:para>Allows the caller to determine whether the session manager
 
343
          has entered the Running phase, in case the client missed the
 
344
          SessionRunning signal.</doc:para>
 
345
        </doc:description>
 
346
      </doc:doc>
 
347
    </method>
 
348
 
 
349
    <!-- Signals -->
 
350
 
 
351
    <signal name="ClientAdded">
 
352
      <arg name="id" type="o">
 
353
        <doc:doc>
 
354
          <doc:summary>The object path for the added client</doc:summary>
 
355
        </doc:doc>
 
356
      </arg>
 
357
      <doc:doc>
 
358
        <doc:description>
 
359
          <doc:para>Emitted when a client has been added to the session manager.
 
360
          </doc:para>
 
361
        </doc:description>
 
362
      </doc:doc>
 
363
    </signal>
 
364
    <signal name="ClientRemoved">
 
365
      <arg name="id" type="o">
 
366
        <doc:doc>
 
367
          <doc:summary>The object path for the removed client</doc:summary>
 
368
        </doc:doc>
 
369
      </arg>
 
370
      <doc:doc>
 
371
        <doc:description>
 
372
          <doc:para>Emitted when a client has been removed from the session manager.
 
373
          </doc:para>
 
374
        </doc:description>
 
375
      </doc:doc>
 
376
    </signal>
 
377
 
 
378
    <signal name="InhibitorAdded">
 
379
      <arg name="id" type="o">
 
380
        <doc:doc>
 
381
          <doc:summary>The object path for the added inhibitor</doc:summary>
 
382
        </doc:doc>
 
383
      </arg>
 
384
      <doc:doc>
 
385
        <doc:description>
 
386
          <doc:para>Emitted when an inhibitor has been added to the session manager.
 
387
          </doc:para>
 
388
        </doc:description>
 
389
      </doc:doc>
 
390
    </signal>
 
391
    <signal name="InhibitorRemoved">
 
392
      <arg name="id" type="o">
 
393
        <doc:doc>
 
394
          <doc:summary>The object path for the removed inhibitor</doc:summary>
 
395
        </doc:doc>
 
396
      </arg>
 
397
      <doc:doc>
 
398
        <doc:description>
 
399
          <doc:para>Emitted when an inhibitor has been removed from the session manager.
 
400
          </doc:para>
 
401
        </doc:description>
 
402
      </doc:doc>
 
403
    </signal>
 
404
 
 
405
    <signal name="SessionRunning">
 
406
      <doc:doc>
 
407
        <doc:description>
 
408
          <doc:para>Indicates the session has entered the Running phase.</doc:para>
 
409
        </doc:description>
 
410
      </doc:doc>
 
411
    </signal>
 
412
 
 
413
    <signal name="SessionOver">
 
414
      <doc:doc>
 
415
        <doc:description>
 
416
          <doc:para>Indicates the session is about to end.</doc:para>
 
417
        </doc:description>
 
418
      </doc:doc>
 
419
    </signal>
 
420
 
 
421
    <!-- Properties -->
 
422
 
 
423
    <property name="SessionName" type="s" access="read">
 
424
      <doc:doc>
 
425
        <doc:description>
 
426
          <doc:para>The name of the session that has been loaded.</doc:para>
 
427
        </doc:description>
 
428
      </doc:doc>
 
429
    </property>
 
430
 
 
431
    <property name="SessionIsActive" type="b" access="read">
 
432
      <doc:doc>
 
433
        <doc:description>
 
434
          <doc:para>If true, the session is currently in the
 
435
          foreground and available for user input.</doc:para>
 
436
        </doc:description>
 
437
      </doc:doc>
 
438
    </property>
 
439
 
 
440
    <property name="InhibitedActions" type="u" access="read">
 
441
      <doc:doc>
 
442
        <doc:description>
 
443
          <doc:para>A bitmask of flags to indicate which actions
 
444
          are inhibited. See the Inhibit() function's description
 
445
          for a list of possible values.</doc:para>
 
446
        </doc:description>
 
447
      </doc:doc>
 
448
    </property>
 
449
 
 
450
  </interface>
 
451
</node>