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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     System check module for Mac.
  5.     
  6.     Input properties:
  7.   - serialFilter: Regexp to filter search on serial number. Default '*'
  8.   - nameFilter: Regexp to filter search on device name. Default '*'
  9.  
  10.     Output properties:
  11.   - adaptorManagerList: List of names of loaded adaptormanagers.
  12.  
  13.   Exit events:
  14.   - foundDevice: One or more devices were found.
  15.   - needInstall: No devices were found. Some plugins need driver install.
  16.   - plugHardware: No devices were found. All drivers are installed.
  17. -->
  18.  
  19. <fsm type="pageFsm">
  20.   <property key="autoContinue" value="yes"/>
  21.   <property key="autoContinueTime" value="0"/>
  22.   <property key="pluginsLoaded" value="0"/>
  23.   <!-- states -->
  24.   <states>
  25.     <!-- shows the page -->
  26.     <state type="showMoviePage" name="showPageSystemCheck">
  27.         <property key="registerPage" value="1"/>
  28.         <property key="sweep" value="1"/>
  29.         <property key="title" value="tr(Scanning computer)"/>
  30.         <property key="subTitle" value="tr(Please wait, the wizard is checking your computer.)"/>
  31.         <property key="info" value="tr(Scanning your computer)"/>
  32.         <property key="extraInfo" value="tr(Please wait, this can take a few minutes.)"/>
  33.         <property key="movieFile" value="Images/systemcheck.mng"/>
  34.     </state>
  35.     <!-- have we already passed systemcheck? (user may have clicked Back) -->
  36.     <state type="compare" name="checkPluginsLoaded"/>
  37.     <!-- load adaptor manager plugins -->
  38.     <state type="loadPlugins" name="loadPlugins" weight="15"/>
  39.     <!-- wait till null addresses disappear -->
  40.     <state type="waitNullAddresses" name="waitNullAddresses" weight="20">
  41.         <property key="timeout" value="60"/>
  42.     </state>
  43.     <!-- device finder -->
  44.     <state type="deviceFinder" name="sysCheckDeviceFinder" weight="15">
  45.         <property key="timeout" value="2"/>
  46.         </state>
  47.   </states>
  48.   <!-- This module has the following output events -->
  49.   <events>
  50.     <event name="needInstall"/>
  51.     <event name="foundDevice"/>
  52.   </events>
  53.   <!-- transitions -->
  54.   <transitions>
  55.       <transition startstate="showPageSystemCheck"/>
  56.       <!-- systemcheck already passed? -->
  57.     <transition fromstate="showPageSystemCheck" tostate="checkPluginsLoaded" event="continue">
  58.         <propertymap target="comparisonType" function="equal"/>
  59.         <propertymap target="input1" function="$fsm.pluginsLoaded"/>
  60.         <propertymap target="input2" function="1"/>
  61.     </transition>
  62.       <!-- recover after reboot -->
  63.     <transition fromstate="checkPluginsLoaded" tostate="loadPlugins" event="false">
  64.       <propertymap target="rootPath" function="$app.applicationPath"/>
  65.       <propertymap target="enableLogging" function="$app.enableLogging"/>
  66.     </transition>
  67.     <!-- wait a moment for DHCP lease -->
  68.     <transition fromstate="checkPluginsLoaded" tostate="waitNullAddresses" event="true"/>
  69.     <transition fromstate="loadPlugins" tostate="waitNullAddresses" event="noneLoaded|singleLoaded|multipleLoaded">
  70.       <!--output --><propertymap target="fsm.adaptorManagerList" function="$adaptorManagerList"/>
  71.       <propertymap target="fsm.pluginsLoaded" function="1"/>
  72.     </transition>
  73.  
  74.     <transition fromstate="waitNullAddresses" tostate="sysCheckDeviceFinder" event="finished|timeout">
  75.       <propertymap target="nameFilter" function="$fsm.nameFilter"/>
  76.       <propertymap target="serialFilter" function="$fsm.serialFilter"/>
  77.       <propertymap target="adaptorManagerList" function="$fsm.adaptorManagerList"/>
  78.     </transition>
  79.     <transition fromstate="sysCheckDeviceFinder" toexit="foundDevice" event="foundSingleDevice|foundMultipleDevices"/>
  80.     <transition fromstate="sysCheckDeviceFinder" toexit="needInstall" event="foundNoDevices"/>
  81.   </transitions>
  82. </fsm>
  83.