NetworkWizard : remove confdns for inet static.
[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="checklanstatusend" nextstep="end">
45                 <condition>
46 self.condition = (self.InterfaceState == True )
47                 </condition>
48                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
49                 <displaytext value="Please follow the instructions on the TV" />
50                 <code>
51 self.clearSelectedKeys()
52 self.selectKey("OK")
53                 </code>
54                 <code pos="after">
55 currStep = self.numSteps                                
56 self.wizard[currStep]["nextstep"] = None
57 self.markDone()
58 self.close()
59                 </code> 
60         </step>
61         <step id="checklanstatusend">
62                 <condition>
63 self.condition = (self.InterfaceState == False )
64                 </condition>
65                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
66                 <displaytext value="Please follow the instructions on the TV" />
67                 <code>
68 self.clearSelectedKeys()
69 self.selectKey("OK")
70 self.selectKey("UP")
71 self.selectKey("DOWN")
72                 </code>
73                 <list>
74                         <listentry caption="Configure your network again" step="welcome" />
75                         <listentry caption="Exit network wizard" step="end" />
76                 </list>
77         </step>
78
79         <step id="asknetworktype">
80                 <condition>
81 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
82                 </condition>
83                 <text value="Wireless network connection setup." />
84                 <displaytext value="Wireless network connection setup" />
85                 <code>
86 self.clearSelectedKeys()
87 self.selectKey("OK")
88 self.selectKey("UP")
89 self.selectKey("DOWN")
90                 </code>
91                 <list>
92                         <listentry caption="List available networks" step="scanwlan" />
93                         <listentry caption="Manual configuration" step="wlanconfig" />
94                         <listentry caption="Exit network wizard" step="end" />
95                 </list>
96         </step>
97
98         <step id="scanwlan">
99                 <condition>
100 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
101                 </condition>
102                 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
103                 <displaytext value="Select wireless network" />
104                 <list type="dynamic" source="listAccessPoints" onselect="AccessPointsSelectionMoved" />
105                 <code>
106 self.clearSelectedKeys()
107 self.selectKey("OK")
108 self.selectKey("UP")
109 self.selectKey("DOWN")
110 self.selectKey("LEFT")
111 self.selectKey("RIGHT")
112                 </code>
113                 <code pos="after">
114 self.checkWlanSelection()
115                 </code> 
116         </step>
117         <step id="scanwlan">
118                 <condition>
119 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
120                 </condition>
121                 <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." />
122                 <displaytext value="Please follow the instructions on the TV" />
123                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
124                 <code>
125 self.clearSelectedKeys()
126 self.selectKey("OK")
127 self.selectKey("UP")
128 self.selectKey("DOWN")
129                 </code>
130         </step>
131         <step id="scanwlan">
132                 <condition>
133 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
134                 </condition>
135                 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
136                 <displaytext value="Please follow the instructions on the TV" />
137                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
138                 
139                 <code>
140 self.clearSelectedKeys()
141 self.selectKey("OK")
142 self.selectKey("UP")
143 self.selectKey("DOWN")
144                 </code>
145         </step>
146         <step id="wlanconfig">
147                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
148                 <displaytext value="Configure interface" />
149                 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap)" type="ConfigList" />
150                 <code>
151 self.clearSelectedKeys()
152 self.selectKey("OK")
153 self.selectKey("UP")
154 self.selectKey("DOWN")
155 self.selectKey("LEFT")
156 self.selectKey("RIGHT")
157                 </code>
158                 <code pos="after" async="yes">
159 self.AdapterSetupEnd(self.selectedInterface)
160                 </code>                 
161         </step>
162         <step id="checkWlanstatusend" nextstep="end">
163                 <condition>
164 self.condition = (self.InterfaceState == True )
165                 </condition>
166                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
167                 <displaytext value="Please follow the instructions on the TV" />
168                 <code>
169 self.clearSelectedKeys()
170 self.selectKey("OK")
171 self["text"].setText(self.Text)
172                 </code>
173                 <code pos="after">
174 currStep = self.numSteps                                
175 self.wizard[currStep]["nextstep"] = None
176 self.markDone()
177 self.close()
178                 </code> 
179         </step>
180         <step id="checkWlanstatusend">
181                 <condition>
182 self.condition = (self.InterfaceState == False )
183                 </condition>
184                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
185                 <displaytext value="Please follow the instructions on the TV" />
186                 <code>
187 self.clearSelectedKeys()
188 self.selectKey("OK")
189 self.selectKey("UP")
190 self.selectKey("DOWN")
191                 </code>
192                 <list>
193                         <listentry caption="Configure your network again" step="welcome" />
194                         <listentry caption="Exit network wizard" step="end" />
195                 </list>
196         </step>
197
198         <step id="end">
199                 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
200                 <code>
201 self.clearSelectedKeys()
202 self.selectKey("OK")
203                 </code>
204         </step>
205 </wizard>
206