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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Shows the select profile page. The user can select the desired service,
  5.     or click the 'have disk' button to select another directory or file.
  6.  
  7.     Input properties:
  8.     - profileList: List of profile objects.
  9.     - templatePath: Absolute path where the templates reside. (required)
  10.     - compatibleTpVersion: determines the template version which the profile 
  11.       must be compatible with, in case the device object is not set.
  12.     - compatibleDevice: determines the device name which the profile must be 
  13.       compatible with, in case the device object is not set.
  14.     - osCompatible [0-1]: check for OS compatibility.
  15.     - defaultService: Filename of the default selected service.
  16.  
  17.     Output properties:
  18.   - selectedProfile: The selected profile object.
  19.   - templatePath: Path where the selected profile is located.
  20.  
  21.   Exit events:
  22.   - pageNext: User clicked next-button.
  23. -->
  24.  
  25. <fsm>
  26.     <property key="profileList" required="yes"/>
  27.     <property key="templatePath" required="yes"/>
  28.     <!-- States -->
  29.     <states>
  30.         <state type="showPageSelectProfile" name="showPageSelectProfile">
  31.       <property key="registerPage" value="1"/>
  32.       <property key="backEnabled" value="1"/>
  33.         </state>        
  34.         <state type="haveDiskDialog" name="haveDiskDlg">
  35.             <property key="caption" value="tr(Configure from disk)"/>
  36.             <property key="text" value="tr(Browse the appropriate configuration file(s) and click OK.)"/>
  37.             <property key="infoText" value="tr(Copy provider's files from:)"/>
  38.             <property key="filter" value="*.tpl"/>
  39.             <property key="filterDescription" value="Profile files"/>
  40.         </state>
  41.         <state type="profileCheck_readProfiles" name="haveDiskReadProfiles"/>
  42.     </states>
  43.     <events>
  44.         <event name="finished"/>
  45.     </events>
  46.   <!-- transitions -->
  47.     <transitions>
  48.         <!-- start: show the page -->
  49.         <transition startstate="showPageSelectProfile">
  50.             <propertymap target="profileList" function="$fsm.profileList"/>
  51.             <propertymap target="defaultService" function="$fsm.defaultService"/>
  52.         </transition>
  53.         <!-- havedisk clicked -->
  54.         <transition fromstate="showPageSelectProfile" tostate="haveDiskDlg" event="haveDisk">
  55.             <propertymap target="path" function="$fsm.templatePath"/>
  56.         </transition>
  57.         <!-- dialog closed, read profiles -->
  58.         <transition fromstate="haveDiskDlg" tostate="haveDiskReadProfiles" event="finished">
  59.             <!-- output --><propertymap target="fsm.templatePath" function="$path"/><!-- save selected path -->
  60.             <propertymap target="device" function="$app.device"/>
  61.             <propertymap target="compatibleTpVersion" function="$fsm.compatibleTpVersion"/><!-- alternative to $device -->
  62.             <propertymap target="compatibleDevice" function="$fsm.compatibleDevice"/><!-- alternative to $device -->
  63.             <propertymap target="osCompatible" function="$fsm.osCompatible"/>
  64.             <propertymap target="profileNameList" function="$fileList"/>
  65.         </transition>
  66.         <!-- profiles read, pass to the page and wait for user input -->
  67.         <transition fromstate="haveDiskReadProfiles" tostate="showPageSelectProfile" event="singleProfile|multipleProfiles|noProfiles">
  68.             <propertymap target="profileList" function="$profileList"/>
  69.             <propertymap target="defaultService" function="$fsm.defaultService"/>
  70.         </transition>
  71.         <!-- next clicked -->
  72.         <transition fromstate="showPageSelectProfile" toexit="finished" event="pageNext">
  73.             <!-- output --><propertymap target="fsm.selectedProfile" function="$selectedProfile"/>
  74.         </transition>
  75.     </transitions>
  76. </fsm>
  77.