summaryrefslogtreecommitdiff
path: root/plugins/datetime/gsd-datetime-mechanism.xml
blob: a7efddfdc36a5ef2c29cf0e41e8909de18a9104c (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
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/">
  <interface name="org.gnome.SettingsDaemon.DateTimeMechanism">
    <method name="SetTimezone">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="zonefile" direction="in" type="s"/>
    </method>
    <method name="CanSetTimezone">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="value" direction="out" type="i">
        <doc:doc>
          <doc:summary>Whether the caller can set the timezone</doc:summary>
          <doc:description>
            <doc:para>
              The return value is not a boolean, but an integer with the following meaning:
              <doc:list>
                <doc:item>
                  <doc:term>0</doc:term>
                  <doc:definition>the caller cannot set the timezone</doc:definition>
                </doc:item>
                <doc:item>
                  <doc:term>1</doc:term>
                  <doc:definition>the caller will be challenged before being able to set the timezone</doc:definition>
                </doc:item>
                <doc:item>
                  <doc:term>2</doc:term>
                  <doc:definition>the caller is authorized to set the timezone</doc:definition>
                </doc:item>
              </doc:list>
            </doc:para>
          </doc:description>
        </doc:doc>
      </arg>
    </method>
    <method name="SetTime">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="seconds_since_epoch" direction="in" type="x"/>
    </method>
    <method name="CanSetTime">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="value" direction="out" type="i">
        <doc:doc>
          <doc:summary>Whether the caller can set the time</doc:summary>
          <doc:description>
            <doc:para>
              The return value is not a boolean, but an integer with the following meaning:
              <doc:list>
                <doc:item>
                  <doc:term>0</doc:term>
                  <doc:definition>the caller cannot set the time</doc:definition>
                </doc:item>
                <doc:item>
                  <doc:term>1</doc:term>
                  <doc:definition>the caller will be challenged before being able to set the time</doc:definition>
                </doc:item>
                <doc:item>
                  <doc:term>2</doc:term>
                  <doc:definition>the caller is authorized to set the time</doc:definition>
                </doc:item>
              </doc:list>
            </doc:para>
          </doc:description>
        </doc:doc>
      </arg>
    </method>
    <method name="AdjustTime">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="seconds_to_add" direction="in" type="x"/>
    </method>

    <method name="GetHardwareClockUsingUtc">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="is_using_utc" direction="out" type="b"/>
    </method>
    <method name="SetHardwareClockUsingUtc">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg name="is_using_utc" direction="in" type="b"/>
    </method>

  </interface>
</node>