File: org.gnome.Mutter.IdleMonitor.xml

package info (click to toggle)
mutter 49.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,732 kB
  • sloc: ansic: 397,916; xml: 3,384; python: 3,270; sh: 389; ruby: 167; makefile: 61; javascript: 26
file content (65 lines) | stat: -rw-r--r-- 2,138 bytes parent folder | download | duplicates (3)
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
<!DOCTYPE node PUBLIC
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
<node>
  <!--
      org.gnome.Mutter.IdleMonitor:
      @short_description: idle monitor interface

      This interface is used by gnome-desktop to implement
      user activity monitoring.
  -->

  <interface name="org.gnome.Mutter.IdleMonitor">
    <method name="GetIdletime">
      <arg name="idletime" direction="out" type="t"/>
    </method>

    <!--
        AddIdleWatch:
        @interval: Interval, in milliseconds
        @id: Watch ID, guaranteed to be greater than zero

        Add a new idle watch for a specific idle time. When the user has been
        idle for @interval milliseconds in a row, #org.gnome.Mutter.IdleMonitor.WatchFired
        will be emitted with the returned watch @id.

        The watch will continue emitting the signal every time the
        idle time condition is reached until it is removed.

        The returned @id can be used to remove the watch by calling
        #org.gnome.Mutter.IdleMonitor.RemoveWatch.
    -->
    <method name="AddIdleWatch">
      <arg name="interval" direction="in" type="t" />
      <arg name="id" direction="out" type="u" />
    </method>

    <!--
        AddUserActiveWatch:
        @id: Watch ID, guaranteed to be greater than zero

        Add a new active watch. When the user has been idle and becomes
        active again, #org.gnome.Mutter.IdleMonitor.WatchFired will be
        emitted with the returned watch @id, and the watch will be removed.

        Unlike idle watches, an active watch is fired only once.

        The returned @id can be used to remove the watch (before it’s fired)
        by calling #org.gnome.Mutter.IdleMonitor.RemoveWatch.
    -->
    <method name="AddUserActiveWatch">
      <arg name="id" direction="out" type="u" />
    </method>

    <method name="RemoveWatch">
      <arg name="id" direction="in" type="u" />
    </method>

    <method name="ResetIdletime"/>

    <signal name="WatchFired">
      <arg name="id" direction="out" type="u" />
    </signal>
  </interface>
</node>