home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_installhardware_mac.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
5KB
|
106 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Shows the hardware plug page, detects hardware from the provided
adaptor manager(s) and install software if necessary.
Input properties:
- adaptorManagerList: List of adaptormanagers to use for detection. Default empty.
- serialFilter: Regexp to filter modems/routers on serial number. Default '*'
- nameFilter: Regexp to filter modems/routers on device name. Default '*'
- imageName: name of the image located in the 'Images' directory for
displaying which hardware to plug.
- infoText: text to display above the image.
- timeout: Detection timeout in seconds. Default 600.
Output properties:
- adaptorManager: Name of the plugin who's hardware is plugged. Only set
if hardware was detected, not if a device was found over ethernet.
Exit events:
- plugged: Non-wireless hardware or ethernet plugged.
- error: Software installation failed.
Other files referred:
- ui/hwconnection.ui
-->
<fsm type="pageFsm">
<property key="timeout" value="600"/>
<property key="autoContinue" value="yes"/>
<property key="autoContinueTime" value="2"/>
<!-- states -->
<states>
<state type="showUiPageContinue" name="showPageInstallHardware">
<property key="fileName" value="ui/hwconnection.ui"/>
<property key="registerPage" value="1"/>
<property key="backEnabled" value="1"/>
</state>
<state type="installHW_detectAllHardware" name="detectPluggedDevices" weight="30"/>
<state type="updatePage" name="changeLabelInstall">
<property key="labelAction.text" value="tr(Installing software for the device...)"/>
</state>
<state type="updatePage" name="changeLabelFound">
<property key="labelAction.text" value="tr(Hardware found, click Next to continue.)"/>
</state>
<state type="updatePage" name="changeLabelError">
<property key="labelAction.text" value="tr(Failed to install software.)"/>
</state>
<state type="updatePage" name="changeLabelTimeout">
<property key="labelAction.text" value="tr(Hardware not found.)"/>
</state>
<state type="pluginCheckSoftwareInstallState" name="checkSoftwareInstallState" weight="1"/>
<state type="pluginInstallSoftware" name="installClientSoftware" weight="2"/>
</states>
<events>
<event name="plugged"/>
<event name="error"/>
<event name="timeout"/>
</events>
<transitions>
<transition name="start" startstate="showPageInstallHardware">
<propertymap target="image.pixmap" function="pixmap(concat($app.applicationPath, '/Images/', $fsm.imageName))"/>
<propertymap target="labelInfo.text" function="$fsm.infoText"/>
<propertymap target="labelAction.text" function="tr(Waiting for connection...)"/>
</transition>
<!-- wait for something to be plugged -->
<transition fromstate="showPageInstallHardware" tostate="detectPluggedDevices" event="continue">
<propertymap target="timeout" function="$fsm.timeout"/>
<propertymap target="adaptorManagerList" function="$fsm.adaptorManagerList"/>
<propertymap target="nameFilter" function="$fsm.nameFilter"/>
<propertymap target="serialFilter" function="$fsm.serialFilter"/>
</transition>
<!-- ST plugged -->
<transition fromstate="detectPluggedDevices" tostate="changeLabelFound" event="pluggedSTdev">
<!-- output --><propertymap target="fsm.adaptorManager" function="$adaptorManagerName"/>
</transition>
<!-- DM plugged -->
<transition fromstate="detectPluggedDevices" tostate="checkSoftwareInstallState" event="pluggedDMdev|needReboot"><!-- ignore reboot request -->
<!-- output --><propertymap target="fsm.adaptorManager" function="$adaptorManagerName"/>
<propertymap target="adaptorManager" function="$adaptorManagerName"/>
</transition>
<!-- install software -->
<transition fromstate="checkSoftwareInstallState" tostate="changeLabelInstall" event="nothingInstalled"/>
<transition fromstate="changeLabelInstall" tostate="installClientSoftware" event="continue">
<propertymap target="adaptorManager" function="$fsm.adaptorManager"/>
</transition>
<!-- finish -->
<transition fromstate="checkSoftwareInstallState" tostate="changeLabelFound" event="allInstalled|notStarted"/>
<transition fromstate="installClientSoftware" tostate="changeLabelFound" event="success|notStarted"/>
<transition fromstate="changeLabelFound" toexit="plugged" event="continue"/>
<!-- catch errors -->
<transition fromstate="installClientSoftware" tostate="changeLabelError" event="failed"/>
<transition fromstate="changeLabelError" toexit="error" event="continue"/>
<!-- timeout -->
<transition fromstate="detectPluggedDevices" tostate="changeLabelTimeout" event="timeout"/>
<transition fromstate="changeLabelTimeout" toexit="timeout" event="continue"/>
</transitions>
</fsm>