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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Shows the IP configuration pages.
  5.     The user is presented the choice for manual or automatic configuration.
  6.     If manual is chosen, the IP config expert page is shown, otherwise it's
  7.     skipped.
  8.  
  9.     Input properties:
  10.     - profile: The profile object.
  11.  
  12.     Output properties:
  13.     - profile: The modified profile object.
  14.     - interface: Interface object to which the host must be configured.
  15.  
  16.   Exit events:
  17.   - finished: User passed the page(s).
  18. -->
  19.  
  20. <fsm>
  21.     <property key="profile" required="yes"/>
  22.     <states>
  23.         <!-- IP config select page -->
  24.         <state type="showButtonPage" name="ipConfigSelectPage">
  25.           <property key="registerPage" value="1"/>
  26.           <property key="backEnabled" value="1"/>
  27.           <property key="nextEnabled" value="1"/>
  28.             <property key="title" value="tr(Configuration of local network)"/>
  29.             <property key="subTitle" value=""/>
  30.             <property key="info" value="tr(Select the configuration method for the local network settings of your computer. If you're not sure which settings to use, select automatic configuration.)"/>
  31.             <property key="button1Text" value="tr(Automatic configuration (recommended))"/>
  32.             <property key="button1Info" value="tr(The computer is configured automatically to use the Thomson Gateway for Internet access. If you choose automatic configuration, manual settings might be overwritten.)"/>
  33.             <property key="button2Text" value="tr(Manual configuration)"/>
  34.             <property key="button2Info" value="tr(You must provide the IP settings for both your computer and the Thomson Gateway.)"/>
  35.         </state>
  36.         <state type="compare" name="checkManual"/>
  37.         <state type="configInterface" name="enableDhcp"/>
  38.         <!-- IP config expert page -->
  39.         <state type="fsm" name="ipConfigExpertPage" weight="10">
  40.             <property key="profile" required="yes"/>
  41.             <property key="interface" required="yes"/>
  42.             <states>
  43.                 <state type="showPageIpConfigExpert" name="showPageIpConfigExpert">
  44.               <property key="registerPage" value="1"/>
  45.               <property key="backEnabled" value="1"/>
  46.             </state>
  47.                 <state type="icmpCheckAddresses" name="pingAddresses" weight="10">
  48.               <property key="errorText" value="tr(The following IP address(es) are already in use:
  49. -  %1
  50. Please provide non-conflicting IP settings.)"/>
  51.               <property key="timeout" value="150"/>
  52.             </state>
  53.                 <state type="showDialog" name="dialogAddressExist">
  54.               <property key="icon" value="critical"/>
  55.             </state>
  56.             </states>
  57.             <events>
  58.                 <event name="pageNext"/>
  59.             </events>
  60.             <transitions>
  61.                 <transition startstate="showPageIpConfigExpert">
  62.                     <propertymap target="profile" function="$fsm.profile"/>
  63.                     <propertymap target="interface" function="$fsm.interface"/>
  64.                     <propertymap target="device" function="$app.device"/>
  65.                 </transition>
  66.                 <transition fromstate="showPageIpConfigExpert" toexit="pageNext" event="pageNext">
  67.                     <!-- output --><propertymap target="fsm.profile" function="$profile"/>
  68.                     <!-- output --><propertymap target="fsm.interface" function="$interface"/>
  69.                 </transition>
  70.                 <transition fromstate="showPageIpConfigExpert" tostate="pingAddresses" event="pingAddresses">
  71.                     <!-- output --><propertymap target="fsm.profile" function="$profile"/>
  72.                     <!-- output --><propertymap target="fsm.interface" function="$interface"/>
  73.                     <propertymap target="addressList" function="$addressList"/>
  74.                 </transition>
  75.                 <transition fromstate="pingAddresses" toexit="pageNext" event="noneExist"/>
  76.                 <transition fromstate="pingAddresses" tostate="dialogAddressExist" event="existingFound">
  77.                     <propertymap target="bodyText" function="replace($errorText, '%1', join($existingAddressList,'
  78. -  '))"/>
  79.                 </transition>
  80.                 <transition fromstate="dialogAddressExist" tostate="showPageIpConfigExpert" event="finished"/>
  81.             </transitions>
  82.         </state>
  83.     </states>
  84.     <events>
  85.         <event name="finished"/>
  86.     </events>
  87.     <transitions>
  88.         <!-- show  page -->
  89.         <transition startstate="ipConfigSelectPage">
  90.             <propertymap target="default" function="$app.pageIpConfigSelect.defaultSelection"/>
  91.         </transition>
  92.         <!-- check $selection == 2 (= manual) -->
  93.         <transition fromstate="ipConfigSelectPage" tostate="checkManual" event="pageNext">
  94.             <propertymap target="comparisonType" function="equal"/>
  95.             <propertymap target="input1" function="$selection"/>
  96.             <propertymap target="input2" function="2"/>
  97.         </transition>
  98.         <!-- Manual selected -->
  99.         <transition fromstate="checkManual" tostate="ipConfigExpertPage" event="true">
  100.             <propertymap target="profile" function="$fsm.profile"/>
  101.             <propertymap target="interface" function="property($app.device,'lanInterface')"/>
  102.             <propertymap target="device" function="$app.device"/>
  103.         </transition>
  104.         <!-- Automatic selected, enable DHCP -->
  105.         <transition fromstate="checkManual" tostate="enableDhcp" event="false">
  106.             <propertymap target="interface" function="property($app.device,'lanInterface')"/>
  107.             <propertymap target="enableDhcp" function="1"/>
  108.         </transition>
  109.         <transition fromstate="enableDhcp" toexit="finished" event="finished">
  110.             <!-- output --><propertymap target="fsm.interface" function="$interface"/>
  111.         </transition>
  112.         <!-- expert page finished -->
  113.         <transition fromstate="ipConfigExpertPage" toexit="finished" event="pageNext">
  114.             <!-- output --><propertymap target="fsm.profile" function="$profile"/>
  115.             <!-- output --><propertymap target="fsm.interface" function="$interface"/>
  116.         </transition>
  117.     </transitions>
  118. </fsm>
  119.  
  120.