-
Notifications
You must be signed in to change notification settings - Fork 43
/
org.opensuse.Agama.Questions1.doc.xml
105 lines (96 loc) · 4.38 KB
/
org.opensuse.Agama.Questions1.doc.xml
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
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<!--
org.opensuse.Agama.Questions1:
Agama offers a mechanism to communicate with clients. The D-Bus service exports a *Questions*
object that implements the *org.freedesktop.DBus.ObjectManager* interface. Individual questions are
dynamically exported in a tree under the */org/opensuse/Agama/Questions1* path, for example:
~~~
/org/opensuse/Agama/Questions1
/org/opensuse/Agama/Questions1/1
/org/opensuse/Agama/Questions1/2
/org/opensuse/Agama/Questions1/4
~~~
Each D-Bus question implements its own set of interfaces, depending on the type of question. For
example, a generic question implements *org.opensuse.Agama.Question1*. And a question asking
for the activation of a LUKS device also implements *org.opensuse.Agama.Questions1.WithPassword*.
Questions can be "unexported" from the ObjectManager tree. The service typically unexports a question
when the question is answered and the answer is successfully read.
-->
<interface name="org.opensuse.Agama.Questions1">
<!--
New:
@class: string identifier of the same questions. Useful to identify
similar questions asked multiple times or for matching
in automatic answers.
@text: human string with question text
@options: list of possible options that can be used as answer. Example
is "OK", "Cancel".
@default_option: safe default answer that is used e.g. for focus in UI
or by non-interactive answering. It has to be included
in options parameter.
@data: additional data that is specific to given question class. Can be
used for additional details about question that helps with UI
or with matching automatic answers.
Creates new generic question.
Returns the object path of the created question.
-->
<method name="New">
<arg name="class" direction="in" type="s"/>
<arg name="text" direction="in" type="s"/>
<arg name="options" direction="in" type="as"/>
<arg name="default_option" direction="in" type="s"/>
<arg name="data" direction="in" type="a{ss}"/>
<arg direction="out" type="o"/>
</method>
<!--
NewWithPassword:
@class: string identifier of the same questions. Useful to identify
similar questions asked multiple times or for matching
in automatic answers.
@text: human string with question text
@options: list of possible options that can be used as answer. Example
is "OK", "Cancel".
@default_option: safe default answer that is used e.g. for focus in UI
or by non-interactive answering. It has to be included
in options parameter.
@data: additional data that is specific to given question class. Can be
used for additional details about question that helps with UI
or with matching automatic answers.
Creates new question with generic base and additional WithPassword interface.
Returns the object path of the created question.
-->
<method name="NewWithPassword">
<arg name="class" direction="in" type="s"/>
<arg name="text" direction="in" type="s"/>
<arg name="options" direction="in" type="as"/>
<arg name="default_option" direction="in" type="s"/>
<arg name="data" direction="in" type="a{ss}"/>
<arg direction="out" type="o"/>
</method>
<!--
Delete:
@question: object path of question that should be deleted.
Deletes question. Useful when question is answered and service that asks
already read answer. Usually called by the one that previously created it.
-->
<method name="Delete">
<arg name="question" type="o" direction="in"/>
</method>
<!--
AddAnswerFile:
@path: Local fs path to answers file in yaml format.
Adds file with list of predefined answers that will be used to
automatically answer matching questions.
-->
<method name="AddAnswerFile">
<arg name="path" type="s" direction="in"/>
</method>
<!--
property that defines if questions is interactive or automatically answered with
default answer
-->
<property name="Interactive" type="b" access="readwrite"/>
</interface>
</node>