home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_installdriver.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
4KB
|
105 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Shows the install driver profile page.
The drivers of the plugins are pre-installed here.
Input properties:
- adaptorManagerList: List of loaded adaptormanagers. (required)
Exit events:
- finished: Drivers are installed.
- error: An error occured while installing the drivers.
-->
<fsm type="taskPageFsm">
<property key="adaptorManagerList" required="yes"/>
<property key="autoContinue" value="yes"/>
<property key="autoContinueTime" value="0"/>
<states>
<!-- show the task page -->
<state type="showTaskPage" name="showPageInstallDriver">
<property key="registerPage" value="0"/>
<property key="title" value="tr(Installing drivers)" />
<!--property key="subTitle" value="Please wait while the Wizard is installing the necessary drivers." /-->
<property key="helpText" value="tr(The required driver software is being installed on your system, please wait...)" />
</state>
<!-- iterator fsm -->
<state type="listIteratorFsm" name="installDriverIteratorFsm" weight="10">
<property key="adaptorManagerList" required="yes"/>
<states>
<!-- iteration state -->
<state type="listIterator" name="mgrIterator"/>
<!-- check and install the driver -->
<state type="fsm" name="checkAndInstallDriverFsm" weight="10">
<property key="adaptorManager" required="yes"/>
<states>
<state type="pluginCheckDriverInstallState" name="preCheckDriver" weight="5"/>
<state type="pluginInstallDriver" name="installDriver" weight="10"/>
</states>
<events>
<event name="finished"/>
<event name="error"/>
</events>
<transitions>
<!-- check driver state -->
<transition startstate="preCheckDriver">
<propertymap target="adaptorManager" function="$fsm.adaptorManager"/>
</transition>
<!-- driver already installed, next iteration -->
<transition fromstate="preCheckDriver" toexit="finished" event="allInstalled|notStarted"/>
<!-- install driver -->
<transition fromstate="preCheckDriver" tostate="installDriver" event="nothingInstalled|partlyInstalled|failed">
<propertymap target="adaptorManager" function="$fsm.adaptorManager"/>
</transition>
<!-- driver install done, next iteration -->
<transition fromstate="installDriver" toexit="finished" event="success|notStarted"/>
<!-- catch errors -->
<transition fromstate="installDriver" toexit="error" event="failed"/>
</transitions>
</state> <!-- checkAndInstallDriverFsm -->
</states>
<events>
<event name="finished"/>
<event name="error"/>
</events>
<transitions>
<!-- iterate -->
<transition startstate="mgrIterator">
<propertymap target="list" function="$fsm.adaptorManagerList"/>
<propertymap target="currentItem" function=""/>
</transition>
<!-- next manager, check/install driver -->
<transition fromstate="mgrIterator" tostate="checkAndInstallDriverFsm" event="nextItem">
<propertymap target="fsm.currentManager" function="$currentItem"/>
<propertymap target="adaptorManager" function="$currentItem"/>
</transition>
<!-- driver install done, next iteration -->
<transition fromstate="checkAndInstallDriverFsm" tostate="mgrIterator" event="finished">
<propertymap target="list" function="$fsm.adaptorManagerList"/>
<propertymap target="currentItem" function="$fsm.currentManager"/>
</transition>
<!-- no more managers, finish -->
<transition fromstate="mgrIterator" toexit="finished" event="lastItem"/>
<!-- catch errors -->
<transition fromstate="checkAndInstallDriverFsm" toexit="error" event="error"/>
</transitions>
</state> <!-- installDriverIteratorFsm -->
</states>
<events>
<event name="finished"/>
<event name="error"/>
</events>
<transitions>
<transition startstate="showPageInstallDriver"/>
<transition fromstate="showPageInstallDriver" tostate="installDriverIteratorFsm" event="continue">
<propertymap target="adaptorManagerList" function="$fsm.adaptorManagerList"/>
</transition>
<transition fromstate="installDriverIteratorFsm" toexit="finished" event="finished"/>
<transition fromstate="installDriverIteratorFsm" toexit="error" event="error"/>
</transitions>
</fsm>