summaryrefslogtreecommitdiff
path: root/contrib/session-helper/org.freedesktop.ColorHelper.xml
blob: 650b9c835f3fc585b23d625069c82fe82897cfb1 (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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE node PUBLIC
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"https://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/" xmlns:doc="https://www.freedesktop.org/dbus/1.0/doc.dtd">
  <interface name='org.freedesktop.ColorHelper'>
    <doc:doc>
      <doc:description>
        <doc:para>
          The interface used for general calibration queries not related
          to specific device types, for example displays.
        </doc:para>
      </doc:description>
    </doc:doc>

    <!--***********************************************************-->
    <property name='DaemonVersion' type='s' access='read'>
      <doc:doc>
        <doc:description>
          <doc:para>
            The daemon version.
          </doc:para>
        </doc:description>
      </doc:doc>
    </property>
  </interface>

  <interface name='org.freedesktop.ColorHelper.Display'>
    <doc:doc>
      <doc:description>
        <doc:para>
          The interface used for calibrating displays.
        </doc:para>
      </doc:description>
    </doc:doc>

    <!--***********************************************************-->
    <property name='Progress' type='u' access='read'>
      <doc:doc>
        <doc:description>
          <doc:para>
            The percentage complete of the calibration.
          </doc:para>
        </doc:description>
      </doc:doc>
    </property>

    <!--***********************************************************-->
    <method name='Start'>
      <doc:doc>
        <doc:description>
          <doc:para>
            Starts the calibration.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type='s' name='device_id' direction='in'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The device ID, e.g. <doc:tt>xrandr-LVDS1</doc:tt>.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='s' name='profile_id' direction='in'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The profile ID, e.g. <doc:tt>sensor-colorhug</doc:tt>.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='a{sv}' name='options' direction='in'>
        <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/>
        <doc:doc>
          <doc:summary>
            <doc:para>
              Optional parameters that will influence the calibration.
              Known keys are:
              <doc:tt>Quality</doc:tt> : (u) The calibration quality, where 0 is low, 1 is medium and
              2 is high.
              <doc:tt>Whitepoint</doc:tt> : (u) The target whitepoint in Kelvin, or 0 or native.
              <doc:tt>Title</doc:tt> : (s) The profile title, e.g. <doc:tt>Lenovo T61</doc:tt>.
              <doc:tt>DeviceKind</doc:tt> : (u) The CdSensorCap for the display.
              <doc:tt>Brightness</doc:tt> : (u) The display brightness.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </method>

    <!--***********************************************************-->
    <method name='Cancel'>
      <doc:doc>
        <doc:description>
          <doc:para>
            Cancel the calibration that is in progress.
          </doc:para>
        </doc:description>
      </doc:doc>
    </method>

    <!--***********************************************************-->
    <method name='Resume'>
      <doc:doc>
        <doc:description>
          <doc:para>
            Resume the calibration that is in progress.
          </doc:para>
        </doc:description>
      </doc:doc>
    </method>

    <!-- ************************************************************ -->
    <signal name='Finished'>
      <doc:doc>
        <doc:description>
          <doc:para>
            The calibration process has been completed.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type='u' name='error_code' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              An error code, or 0 for no error. The error code is
              specified in CdMainError.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='a{sv}' name='details' direction='out'>
        <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
        <doc:doc>
          <doc:summary>
            <doc:para>
              Extra data from the calibration that may be useful to
              client software.
              Known keys are:
              <doc:tt>ProfileId</doc:tt> : (s) The ID of the profile.
              <doc:tt>ProfilePath</doc:tt> : (s) The object path of the profile.
              <doc:tt>ErrorDetails</doc:tt>: (s) Any untranslated error detail string.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </signal>

    <!-- ************************************************************ -->
    <signal name='UpdateSample'>
      <doc:doc>
        <doc:description>
          <doc:para>
            Emitted when the controller should update the RGB patch on
            the screen. The controller has 100ms to update the display.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type='d' name='red' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The red value from 0.0 to 1.0
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='d' name='green' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The red value from 0.0 to 1.0
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='d' name='blue' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The red value from 0.0 to 1.0
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </signal>

    <!-- ************************************************************ -->
    <signal name='UpdateGamma'>
      <doc:doc>
        <doc:description>
          <doc:para>
            Emitted when the controller should update the gamma ramps
            for the screen.
            The controller has 50ms to update the display.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type='a(ddd)' name='gamma' direction='out'>
      <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="CdGammaList"/>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The red, green and blue ramps, which should be
              interpolated to match the display gamma size.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </signal>

    <!-- ************************************************************ -->
    <signal name='InteractionRequired'>
      <doc:doc>
        <doc:description>
          <doc:para>
            Emitted when the user needs to do something.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type='u' name='code' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              The interaction code, where:
              0 = attach to screen
              1 = move to calibration mode.
              2 = move to surface mode.
              3 = shut the laptop lid.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='s' name='message' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              Any debugging message for the interaction.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type='s' name='image' direction='out'>
        <doc:doc>
          <doc:summary>
            <doc:para>
              An image to show what interaction is required, or '' for
              no image available.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </signal>

  </interface>
</node>