home *** CD-ROM | disk | FTP | other *** search
/ Thomson (Residential) / TGSTPv7203.iso / mac / HIW / xml / mod_selectdevice.xml < prev    next >
Extensible Markup Language  |  2008-02-11  |  3KB  |  64 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Shows the select device page. Handles authentication and device details dialog.
  5.  
  6.     Input properties:
  7.     - deviceList: List of device objects.
  8.     - authenticationMode: [user|isp] Method of device authentication. (required)
  9.        'user': The user will be prompted for a password if the device is
  10.                       password protected.
  11.        'isp' : The given username and password are used for authentication,
  12.                no user interaction will occur.
  13.   - systemUserid: Username for isp authentication.
  14.   - systemPassword: Password for isp authentication.
  15.  
  16.     Output properties:
  17.   - selectedDevice: The selected and authenticated device object.
  18.  
  19.   Exit events:
  20.   - finished: User clicked next-button. Device is authenticated.
  21.   - authenticationFailed: User clicked next-button, was prompted for userid and
  22.     password, but didn't specify the correct values after two tries .
  23. -->
  24.  
  25. <fsm>
  26.     <property key="deviceList" required="yes"/>
  27.     <property key="authenticationMode" required="yes"/>
  28.     <!-- States -->
  29.     <states>
  30.         <state type="showPageSelectDevice" name="showPageSelectDevice">
  31.       <property key="registerPage" value="1"/>
  32.       <property key="backEnabled" value="1"/>
  33.     </state>
  34.         <state type="showDeviceDetails" name="showDeviceDetails"/>
  35.     </states>
  36.   <!-- This module has the following output events -->
  37.     <events>
  38.         <event name="finished"/>
  39.         <event name="authenticationFailed"/>
  40.     </events>
  41.   <!-- transitions -->
  42.     <transitions>
  43.         <!-- start: show the page -->
  44.         <transition startstate="showPageSelectDevice">
  45.             <propertymap target="deviceList" function="$fsm.deviceList"/>
  46.             <propertymap target="authenticationMode" function="$fsm.authenticationMode"/>
  47.       <propertymap target="systemUserid" function="$fsm.systemUserid"/>
  48.       <propertymap target="systemPassword" function="$fsm.systemPassword"/>
  49.         </transition>
  50.         <!-- Next clicked -->
  51.         <transition fromstate="showPageSelectDevice" toexit="finished" event="pageNext">
  52.             <propertymap target="fsm.selectedDevice" function="$selectedDevice"/>
  53.         </transition>
  54.         <!-- user mode, not authenticated, exit -->
  55.         <transition fromstate="showPageSelectDevice" toexit="authenticationFailed" event="authenticationFailed"/>
  56.         <!-- details clicked -->
  57.         <transition fromstate="showPageSelectDevice" tostate="showDeviceDetails" event="showDetails">
  58.             <propertymap target="device" function="$selectedDevice"/>
  59.         </transition>
  60.         <!-- dialog closed, return to page -->
  61.         <transition fromstate="showDeviceDetails" tostate="showPageSelectDevice" event="finished"/>
  62.     </transitions>
  63. </fsm>
  64.