home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_selectprofile.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
4KB
|
77 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Shows the select profile page. The user can select the desired service,
or click the 'have disk' button to select another directory or file.
Input properties:
- profileList: List of profile objects.
- templatePath: Absolute path where the templates reside. (required)
- compatibleTpVersion: determines the template version which the profile
must be compatible with, in case the device object is not set.
- compatibleDevice: determines the device name which the profile must be
compatible with, in case the device object is not set.
- osCompatible [0-1]: check for OS compatibility.
- defaultService: Filename of the default selected service.
Output properties:
- selectedProfile: The selected profile object.
- templatePath: Path where the selected profile is located.
Exit events:
- pageNext: User clicked next-button.
-->
<fsm>
<property key="profileList" required="yes"/>
<property key="templatePath" required="yes"/>
<!-- States -->
<states>
<state type="showPageSelectProfile" name="showPageSelectProfile">
<property key="registerPage" value="1"/>
<property key="backEnabled" value="1"/>
</state>
<state type="haveDiskDialog" name="haveDiskDlg">
<property key="caption" value="tr(Configure from disk)"/>
<property key="text" value="tr(Browse the appropriate configuration file(s) and click OK.)"/>
<property key="infoText" value="tr(Copy provider's files from:)"/>
<property key="filter" value="*.tpl"/>
<property key="filterDescription" value="Profile files"/>
</state>
<state type="profileCheck_readProfiles" name="haveDiskReadProfiles"/>
</states>
<events>
<event name="finished"/>
</events>
<!-- transitions -->
<transitions>
<!-- start: show the page -->
<transition startstate="showPageSelectProfile">
<propertymap target="profileList" function="$fsm.profileList"/>
<propertymap target="defaultService" function="$fsm.defaultService"/>
</transition>
<!-- havedisk clicked -->
<transition fromstate="showPageSelectProfile" tostate="haveDiskDlg" event="haveDisk">
<propertymap target="path" function="$fsm.templatePath"/>
</transition>
<!-- dialog closed, read profiles -->
<transition fromstate="haveDiskDlg" tostate="haveDiskReadProfiles" event="finished">
<!-- output --><propertymap target="fsm.templatePath" function="$path"/><!-- save selected path -->
<propertymap target="device" function="$app.device"/>
<propertymap target="compatibleTpVersion" function="$fsm.compatibleTpVersion"/><!-- alternative to $device -->
<propertymap target="compatibleDevice" function="$fsm.compatibleDevice"/><!-- alternative to $device -->
<propertymap target="osCompatible" function="$fsm.osCompatible"/>
<propertymap target="profileNameList" function="$fileList"/>
</transition>
<!-- profiles read, pass to the page and wait for user input -->
<transition fromstate="haveDiskReadProfiles" tostate="showPageSelectProfile" event="singleProfile|multipleProfiles|noProfiles">
<propertymap target="profileList" function="$profileList"/>
<propertymap target="defaultService" function="$fsm.defaultService"/>
</transition>
<!-- next clicked -->
<transition fromstate="showPageSelectProfile" toexit="finished" event="pageNext">
<!-- output --><propertymap target="fsm.selectedProfile" function="$selectedProfile"/>
</transition>
</transitions>
</fsm>