home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_selectbuildimage.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
3KB
|
74 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Shows the build image selection page. Lets the user browse for builds in other directories.
The user can only continue when he selects a valid build image.
Input properties:
- buildImagePath: Directory where the build images are located. (required)
Application properties:
- device: The device that will be upgraded.
Output properties:
- buildImage: The build image object selected by the user.
Exit events:
- finished
-->
<fsm type="fsm">
<property key="buildImagePath" required="yes"/>
<!-- States -->
<states>
<state type="showPageSelectBuildImage" name="showPageSelectBuildImage">
<property key="registerPage" value="1"/>
<property key="backEnabled" value="1"/>
</state>
<state type="countFiles" name="countBuildImages">
<property key="fileFilter" value="*.bin *.bli"/>
</state>
<state type="haveDiskDialog" name="haveDiskDlg">
<property key="caption" value="tr(Browse for image)"/>
<property key="text" value="tr(Browse to the appropriate build image file and click Ok...)"/>
<property key="infoText" value="tr(Read build image files from:)"/>
<property key="filter" value="*.bin *.bli"/>
<property key="filterDescription" value="Buildimages"/>
</state>
<state type="readBuildImages" name="readImages"/>
</states>
<events>
<event name="finished"/>
</events>
<!-- transitions -->
<transitions>
<!-- start: read images -->
<transition startstate="countBuildImages">
<propertymap target="path" function="$fsm.buildImagePath"/>
</transition>
<transition fromstate="countBuildImages" tostate="readImages" event="noFilesFound|singleFileFound|multipleFilesFound">
<propertymap target="device" function="$app.device"/>
<propertymap target="imageNameList" function="$fileList"/>
</transition>
<!-- image files read, show the page -->
<transition fromstate="readImages" tostate="showPageSelectBuildImage" event="singleImage|multipleImages|noImages">
<propertymap target="device" function="$app.device"/>
<propertymap target="imageList" function="$imageList"/>
</transition>
<!-- havedisk clicked -->
<transition fromstate="showPageSelectBuildImage" tostate="haveDiskDlg" event="haveDisk">
<propertymap target="path" function="$fsm.buildImagePath"/>
</transition>
<!-- dialog closed, read image files -->
<transition fromstate="haveDiskDlg" tostate="readImages" event="finished">
<propertymap target="device" function="$app.device"/>
<propertymap target="imageNameList" function="$fileList"/>
</transition>
<!-- next clicked -->
<transition fromstate="showPageSelectBuildImage" toexit="finished" event="pageNext">
<propertymap target="fsm.buildImage" function="$selectedImage"/>
</transition>
</transitions>
</fsm>