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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Handles the complete process of connecting to the device.
  5.     
  6.     Input properties:
  7.   - serialFilter: Device serial number filter. Default '*'
  8.   - nameFilter: Device name filter. Default '*'
  9.  
  10.     Output properties:
  11.  
  12.   Exit events:
  13.   - finished
  14.     
  15.   Modules referred:
  16.   - mod_selectconnection_mac.xml
  17.   - mod_installdriver.xml
  18.   - mod_installhardware.xml
  19.  
  20.   Other files referred:
  21.   - html/error_driverinstall.html
  22.   - html/error_hwinstall.html
  23.   - html/error_hwtimeout.html
  24.  
  25. -->
  26. <fsm>
  27.     <property key="allowEthernet" required="yes"/>
  28.     <!--property key="allowWireless" required="yes"/-->
  29.     <property key="allowUsb" required="yes"/>
  30.     <!--property key="allowBuiltin" required="yes"/-->
  31.   <states>
  32.     <state file="mod_selectconnection_mac.xml" name="selectConnection" weight="1"/>
  33.     <state file="mod_installdriver.xml" name="installDriver" weight="4"/>
  34.     <state file="mod_installhardware_mac.xml" name="installHardware" weight="20"/>
  35.     <state type="showHtmlPage" name="errorPage">
  36.       <property key="title" value="tr(Error)"/>
  37.       <property key="subTitle" value=""/>
  38.       <property key="showNext" value="0"/>
  39.     </state>
  40.     <state type="showHtmlPage" name="configAirport">
  41.       <property key="title" value="tr(Configure Airport)"/>
  42.       <property key="subTitle" value=""/>
  43.     </state>
  44.   </states>
  45.   <events>
  46.     <event name="finished"/>
  47.   </events>
  48.   <transitions>
  49.     <transition startstate="selectConnection">
  50.       <propertymap target="allowEthernet" function="$fsm.allowEthernet"/>
  51.       <propertymap target="allowWireless" function="0"/>
  52.       <propertymap target="allowUsb" function="$fsm.allowUsb"/>
  53.       <propertymap target="allowBuiltin" function="0"/>
  54.     </transition>
  55.     <!-- ethernet: detect plug -->
  56.     <transition fromstate="selectConnection" tostate="installHardware" event="ethernet">
  57.         <propertymap target="imageName" function="ethernet.png"/>
  58.         <propertymap target="infoText" function="tr('Plug one end of the ethernet cable into a free ethernet port on your computer and the other end into the ethernet port on your Thomson Gateway. The wizard will continue as soon as the Thomson Gateway has been detected.')"/>
  59.       <propertymap target="nameFilter" function="$fsm.nameFilter"/>
  60.       <propertymap target="serialFilter" function="$fsm.serialFilter"/>
  61.     </transition>
  62.     <!-- usb: install drivers -->
  63.     <transition fromstate="selectConnection" tostate="installDriver" event="usb">
  64.         <propertymap target="fsm.adaptorManager" function="cdcAdaptorMgr"/>
  65.         <propertymap target="fsm.imageName" function="USB.png"/>
  66.         <propertymap target="fsm.infoText" function="tr('Plug the USB cable into a free USB port on your computer. The other end of the cable fits into the USB device port on your Thomson Gateway. The wizard will continue as soon as the Thomson Gateway has been detected.')"/>
  67.         <propertymap target="adaptorManagerList" function="makelist($fsm.adaptorManager)"/>
  68.     </transition>
  69.     <!-- wireless: show airport configuration instructions page -->
  70.       <transition fromstate="selectConnection" tostate="configAirport" event="wireless">
  71.           <propertymap target="fileName" function="concat($app.applicationPath, '/html/airport.html')"/>
  72.       </transition>
  73.     <transition fromstate="configAirport" toexit="finished" event="pageNext"/>
  74.     <!-- detect plug -->
  75.     <transition fromstate="installDriver" tostate="installHardware" event="finished">
  76.         <propertymap target="imageName" function="$fsm.imageName"/>
  77.         <propertymap target="infoText" function="$fsm.infoText"/>
  78.       <propertymap target="nameFilter" function="$fsm.nameFilter"/>
  79.       <propertymap target="serialFilter" function="$fsm.serialFilter"/>
  80.         <propertymap target="adaptorManagerList" function="makelist($fsm.adaptorManager)"/>
  81.     </transition>
  82.     <!-- hardware plugged -->
  83.     <transition fromstate="installHardware" toexit="finished" event="plugged">
  84.         <propertymap target="fsm.adaptorManager" function="$adaptorManager"/>
  85.     </transition>
  86.         <!-- errors -->
  87.       <transition fromstate="installDriver" tostate="errorPage" event="error">
  88.           <propertymap target="fileName" function="concat($app.applicationPath, '/html/error_driverinstall.html')"/>
  89.       </transition>
  90.       <transition fromstate="installHardware" tostate="errorPage" event="error">
  91.           <propertymap target="fileName" function="concat($app.applicationPath, '/html/error_hwinstall.html')"/>
  92.       </transition>
  93.       <transition fromstate="installHardware" tostate="errorPage" event="timeout">
  94.           <propertymap target="fileName" function="concat($app.applicationPath, '/html/error_hwtimeout.html')"/>
  95.       </transition>
  96.   </transitions>
  97. </fsm>
  98.