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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Shows the build image selection page. Lets the user browse for builds in other directories.
  5.     The user can only continue when he selects a valid build image.
  6.  
  7.     Input properties:
  8.     - buildImagePath: Directory where the build images are located. (required)
  9.  
  10.     Application properties:
  11.     - device: The device that will be upgraded.
  12.  
  13.     Output properties:
  14.     - buildImage: The build image object selected by the user.
  15.  
  16.   Exit events:
  17.   - finished
  18.  
  19. -->
  20.  
  21. <fsm type="fsm">
  22.     <property key="buildImagePath" required="yes"/>
  23.     <!-- States -->
  24.     <states>
  25.         <state type="showPageSelectBuildImage" name="showPageSelectBuildImage">
  26.       <property key="registerPage" value="1"/>
  27.       <property key="backEnabled" value="1"/>
  28.     </state>    
  29.         <state type="countFiles" name="countBuildImages">
  30.       <property key="fileFilter" value="*.bin *.bli"/>            
  31.         </state>        
  32.         <state type="haveDiskDialog" name="haveDiskDlg">
  33.             <property key="caption" value="tr(Browse for image)"/>
  34.             <property key="text" value="tr(Browse to the appropriate build image file and click Ok...)"/>
  35.             <property key="infoText" value="tr(Read build image files from:)"/>
  36.             <property key="filter" value="*.bin *.bli"/>
  37.             <property key="filterDescription" value="Buildimages"/>
  38.         </state>
  39.         <state type="readBuildImages" name="readImages"/>
  40.     </states>
  41.     <events>
  42.         <event name="finished"/>
  43.     </events>
  44.   <!-- transitions -->
  45.     <transitions>
  46.         <!-- start: read images -->
  47.         <transition startstate="countBuildImages">    
  48.             <propertymap target="path" function="$fsm.buildImagePath"/>
  49.         </transition>
  50.         <transition fromstate="countBuildImages" tostate="readImages" event="noFilesFound|singleFileFound|multipleFilesFound">
  51.             <propertymap target="device" function="$app.device"/>
  52.             <propertymap target="imageNameList" function="$fileList"/>
  53.         </transition>
  54.         <!-- image files read, show the page -->
  55.         <transition fromstate="readImages" tostate="showPageSelectBuildImage" event="singleImage|multipleImages|noImages">
  56.             <propertymap target="device" function="$app.device"/>
  57.             <propertymap target="imageList" function="$imageList"/>
  58.         </transition>
  59.         <!-- havedisk clicked -->
  60.         <transition fromstate="showPageSelectBuildImage" tostate="haveDiskDlg" event="haveDisk">
  61.             <propertymap target="path" function="$fsm.buildImagePath"/>
  62.         </transition>
  63.         <!-- dialog closed, read image files -->
  64.         <transition fromstate="haveDiskDlg" tostate="readImages" event="finished">
  65.             <propertymap target="device" function="$app.device"/>
  66.             <propertymap target="imageNameList" function="$fileList"/>
  67.         </transition>
  68.         <!-- next clicked -->
  69.         <transition fromstate="showPageSelectBuildImage" toexit="finished" event="pageNext">
  70.             <propertymap target="fsm.buildImage" function="$selectedImage"/>
  71.         </transition>
  72.     </transitions>
  73. </fsm>
  74.