c4300436e4b71bef08170c306d05405aa4b38150
[enigma2.git] / 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         <step id="scanwlan">
91                 <condition>
92 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
93                 </condition>
94                 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
95                 <displaytext value="Select wireless network" />
96                 <list type="dynamic" source="listAccessPoints" evaluation="AccessPointsSelectionMade" onselect="AccessPointsSelectionMoved" />
97                 <code>
98 self.clearSelectedKeys()
99 self.selectKey("OK")
100 self.selectKey("UP")
101 self.selectKey("DOWN")
102 self.selectKey("LEFT")
103 self.selectKey("RIGHT")
104                 </code>
105                 <code pos="after">
106 self.checkWlanSelection()
107                 </code> 
108         </step>
109         <step id="scanwlan">
110                 <condition>
111 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
112                 </condition>
113                 <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." />
114                 <displaytext value="Please follow the instructions on the TV" />
115                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
116                 <code>
117 self.clearSelectedKeys()
118 self.selectKey("OK")
119 self.selectKey("UP")
120 self.selectKey("DOWN")
121                 </code>
122         </step>
123         <step id="scanwlan">
124                 <condition>
125 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
126                 </condition>
127                 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
128                 <displaytext value="Please follow the instructions on the TV" />
129                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
130                 
131                 <code>
132 self.clearSelectedKeys()
133 self.selectKey("OK")
134 self.selectKey("UP")
135 self.selectKey("DOWN")
136                 </code>
137         </step>
138         <step id="wlanconfig">
139                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
140                 <displaytext value="Configure interface" />
141                 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap,self.WlanList)" type="ConfigList" />
142                 <code>
143 self.clearSelectedKeys()
144 self.selectKey("OK")
145 self.selectKey("UP")
146 self.selectKey("DOWN")
147 self.selectKey("LEFT")
148 self.selectKey("RIGHT")
149                 </code>
150                 <code pos="after" async="yes">
151 self.AdapterSetupEnd(self.selectedInterface)
152                 </code>                 
153         </step>
154         <step id="checkWlanstatusend" nextstep="end">
155                 <condition>
156 self.condition = (self.InterfaceState == True )
157                 </condition>
158                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
159                 <displaytext value="Please follow the instructions on the TV" />
160                 <code>
161 self.clearSelectedKeys()
162 self.selectKey("OK")
163 self["text"].setText(self.Text)
164                 </code>
165                 <code pos="after">
166 currStep = self.numSteps                                
167 self.wizard[currStep]["nextstep"] = None
168 self.markDone()
169 self.close()
170                 </code> 
171         </step>
172         <step id="checkWlanstatusend">
173                 <condition>
174 self.condition = (self.InterfaceState == False )
175                 </condition>
176                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
177                 <displaytext value="Please follow the instructions on the TV" />
178                 <code>
179 self.clearSelectedKeys()
180 self.selectKey("OK")
181 self.selectKey("UP")
182 self.selectKey("DOWN")
183                 </code>
184                 <list>
185                         <listentry caption="Configure your network again" step="welcome" />
186                         <listentry caption="Exit network wizard" step="end" />
187                 </list>
188         </step>
189
190         <step id="end">
191                 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
192                 <code>
193 self.clearSelectedKeys()
194 self.selectKey("OK")
195                 </code>
196         </step>
197 </wizard>
198
199