0b3a2988e1d78f0426e79aa0427432d5ffaf7775
[vuplus_dvbapp] / lib / python / Plugins / SystemPlugins / NetworkWizard / networkwizard.xml
1 <wizard>
2         <step id="welcome">
3                 <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress OK to start configuring your network" />
4                 <displaytext value="Network Wizard" />
5                 <code>
6 self.clearSelectedKeys()
7 self.selectKey("OK")
8                 </code>
9                 <code pos="after" async="yes">
10 self.selectInterface()
11                 </code>
12         </step>
13
14         <step id="selectinterface">
15                 <text value="Please select the network interface that you want to use for your internet connection.\n\nPlease press OK to continue." />
16                 <displaytext value="Select interface" />
17                 <list type="dynamic" source="listInterfaces" evaluation="InterfaceSelectionMade" onselect="InterfaceSelectionMoved" />
18                 <code>
19 self.clearSelectedKeys()
20 self.selectKey("OK")
21 self.selectKey("UP")
22 self.selectKey("DOWN")
23                 </code>
24                 <code pos="after" async="yes">
25 self.checkInterface(self.selectedInterface)
26                 </code> 
27         </step>
28         <step id="nwconfig">
29                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
30                 <displaytext value="Configure interface" />
31                 <config screen="AdapterSetup" module="NetworkSetup" args="self.selectedInterface" type="ConfigList" />
32                 <code>
33 self.clearSelectedKeys()
34 self.selectKey("OK")
35 self.selectKey("UP")
36 self.selectKey("DOWN")
37 self.selectKey("LEFT")
38 self.selectKey("RIGHT")
39                 </code>
40                 <code pos="after" async="yes">
41 self.AdapterSetupEnd(self.selectedInterface)
42                 </code>                 
43         </step>
44         <step id="confdns" nextstep="checklanstatusend">
45                 <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
46                 <displaytext value="Configure nameservers" />
47                 <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
48                 <code>
49 self.clearSelectedKeys()
50 self.selectKey("OK")
51                 </code>
52                 <code pos="after" async="yes">
53 self.checkNetwork()
54                 </code> 
55         </step>
56         <step id="checklanstatusend" nextstep="end">
57                 <condition>
58 self.condition = (self.InterfaceState == True )
59                 </condition>
60                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
61                 <displaytext value="Please follow the instructions on the TV" />
62                 <code>
63 self.clearSelectedKeys()
64 self.selectKey("OK")
65                 </code>
66                 <code pos="after">
67 currStep = self.numSteps                                
68 self.wizard[currStep]["nextstep"] = None
69 self.markDone()
70 self.close()
71                 </code> 
72         </step>
73         <step id="checklanstatusend">
74                 <condition>
75 self.condition = (self.InterfaceState == False )
76                 </condition>
77                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
78                 <displaytext value="Please follow the instructions on the TV" />
79                 <code>
80 self.clearSelectedKeys()
81 self.selectKey("OK")
82 self.selectKey("UP")
83 self.selectKey("DOWN")
84                 </code>
85                 <list>
86                         <listentry caption="Configure your network again" step="welcome" />
87                         <listentry caption="Exit network wizard" step="end" />
88                 </list>
89         </step>
90
91         <step id="asknetworktype">
92                 <condition>
93 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
94                 </condition>
95                 <text value="Wireless network connection setup." />
96                 <displaytext value="Wireless network connection setup" />
97                 <code>
98 self.clearSelectedKeys()
99 self.selectKey("OK")
100 self.selectKey("UP")
101 self.selectKey("DOWN")
102                 </code>
103                 <list>
104                         <listentry caption="List available networks" step="scanwlan" />
105                         <listentry caption="Manual configuration" step="wlanconfig" />
106                         <listentry caption="Exit network wizard" step="end" />
107                 </list>
108         </step>
109
110         <step id="scanwlan">
111                 <condition>
112 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
113                 </condition>
114                 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
115                 <displaytext value="Select wireless network" />
116                 <list type="dynamic" source="listAccessPoints" onselect="AccessPointsSelectionMoved" />
117                 <code>
118 self.clearSelectedKeys()
119 self.selectKey("OK")
120 self.selectKey("UP")
121 self.selectKey("DOWN")
122 self.selectKey("LEFT")
123 self.selectKey("RIGHT")
124                 </code>
125                 <code pos="after">
126 self.checkWlanSelection()
127                 </code> 
128         </step>
129         <step id="scanwlan">
130                 <condition>
131 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
132                 </condition>
133                 <text value="Your wireless LAN internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
134                 <displaytext value="Please follow the instructions on the TV" />
135                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
136                 <code>
137 self.clearSelectedKeys()
138 self.selectKey("OK")
139 self.selectKey("UP")
140 self.selectKey("DOWN")
141                 </code>
142         </step>
143         <step id="scanwlan">
144                 <condition>
145 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
146                 </condition>
147                 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
148                 <displaytext value="Please follow the instructions on the TV" />
149                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
150                 
151                 <code>
152 self.clearSelectedKeys()
153 self.selectKey("OK")
154 self.selectKey("UP")
155 self.selectKey("DOWN")
156                 </code>
157         </step>
158         <step id="wlanconfig">
159                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
160                 <displaytext value="Configure interface" />
161                 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap)" type="ConfigList" />
162                 <code>
163 self.clearSelectedKeys()
164 self.selectKey("OK")
165 self.selectKey("UP")
166 self.selectKey("DOWN")
167 self.selectKey("LEFT")
168 self.selectKey("RIGHT")
169                 </code>
170                 <code pos="after" async="yes">
171 self.AdapterSetupEnd(self.selectedInterface)
172                 </code>                 
173         </step>
174         <step id="checkWlanstatusend" nextstep="end">
175                 <condition>
176 self.condition = (self.InterfaceState == True )
177                 </condition>
178                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
179                 <displaytext value="Please follow the instructions on the TV" />
180                 <code>
181 self.clearSelectedKeys()
182 self.selectKey("OK")
183 self["text"].setText(self.Text)
184                 </code>
185                 <code pos="after">
186 currStep = self.numSteps                                
187 self.wizard[currStep]["nextstep"] = None
188 self.markDone()
189 self.close()
190                 </code> 
191         </step>
192         <step id="checkWlanstatusend">
193                 <condition>
194 self.condition = (self.InterfaceState == False )
195                 </condition>
196                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
197                 <displaytext value="Please follow the instructions on the TV" />
198                 <code>
199 self.clearSelectedKeys()
200 self.selectKey("OK")
201 self.selectKey("UP")
202 self.selectKey("DOWN")
203                 </code>
204                 <list>
205                         <listentry caption="Configure your network again" step="welcome" />
206                         <listentry caption="Exit network wizard" step="end" />
207                 </list>
208         </step>
209
210         <step id="end">
211                 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
212                 <code>
213 self.clearSelectedKeys()
214 self.selectKey("OK")
215                 </code>
216         </step>
217 </wizard>
218