home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_selectdevice.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
3KB
|
64 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Shows the select device page. Handles authentication and device details dialog.
Input properties:
- deviceList: List of device objects.
- authenticationMode: [user|isp] Method of device authentication. (required)
'user': The user will be prompted for a password if the device is
password protected.
'isp' : The given username and password are used for authentication,
no user interaction will occur.
- systemUserid: Username for isp authentication.
- systemPassword: Password for isp authentication.
Output properties:
- selectedDevice: The selected and authenticated device object.
Exit events:
- finished: User clicked next-button. Device is authenticated.
- authenticationFailed: User clicked next-button, was prompted for userid and
password, but didn't specify the correct values after two tries .
-->
<fsm>
<property key="deviceList" required="yes"/>
<property key="authenticationMode" required="yes"/>
<!-- States -->
<states>
<state type="showPageSelectDevice" name="showPageSelectDevice">
<property key="registerPage" value="1"/>
<property key="backEnabled" value="1"/>
</state>
<state type="showDeviceDetails" name="showDeviceDetails"/>
</states>
<!-- This module has the following output events -->
<events>
<event name="finished"/>
<event name="authenticationFailed"/>
</events>
<!-- transitions -->
<transitions>
<!-- start: show the page -->
<transition startstate="showPageSelectDevice">
<propertymap target="deviceList" function="$fsm.deviceList"/>
<propertymap target="authenticationMode" function="$fsm.authenticationMode"/>
<propertymap target="systemUserid" function="$fsm.systemUserid"/>
<propertymap target="systemPassword" function="$fsm.systemPassword"/>
</transition>
<!-- Next clicked -->
<transition fromstate="showPageSelectDevice" toexit="finished" event="pageNext">
<propertymap target="fsm.selectedDevice" function="$selectedDevice"/>
</transition>
<!-- user mode, not authenticated, exit -->
<transition fromstate="showPageSelectDevice" toexit="authenticationFailed" event="authenticationFailed"/>
<!-- details clicked -->
<transition fromstate="showPageSelectDevice" tostate="showDeviceDetails" event="showDetails">
<propertymap target="device" function="$selectedDevice"/>
</transition>
<!-- dialog closed, return to page -->
<transition fromstate="showDeviceDetails" tostate="showPageSelectDevice" event="finished"/>
</transitions>
</fsm>