View Single Post
Old 04-19-2009, 01:54 AM   #12
vman
Junior Member
vman began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2009
Device: PRS-505
I have been able to extract the files but opening the mentioned file there isn't any line 61,62,63,64,65,66 and 70.
Just to provide the full information, here the content of the file:
Here the content of the mentioned file: <?xml version="1.0" encoding="UTF-8" ?>
- <document xmlns="http://www.kinoma.com/fskin/1" id="DOCUMENT" width="420" height="220">
- <model>
<variable id="deviceVersion" value="No PRS-505 connected" />
<variable id="updateStatus" value="Connect a PRS-505 to update" />
<variable id="READER_MODEL_NAME" value="PRS-505" />
- <code>
<function id="initialized">this.updating = false Updater.setClient(this) this.button = this.container.updateButton this.progress = this.container.progress this.image = this.container.image this.checkmark = this.container.checkmark this.softwareLabel = this.container.softwareLabel this.versionLabel = this.container.versionLabel</function>
<function id="updateBegin">this.container.dontDisconnectLab e l.show(true) this.updating = true this.button.enable(false) this.progress.show(true) this.progress.setValue(-1) Updater.update() Updater.startPollStatus()</function>
<function id="updateStatusChanged" params="newStatus">this.container.setVariable("upd ateStatus", newStatus)</function>
<function id="updateComplete" params="result">if (0 == result) this.container.bubble("showUpdateCompleteDialog") else this.container.bubble("showUpdateIsntCompleteDialo g", result) this.container.dontDisconnectLabel.show(false) Updater.stopPollStatus() this.button.enable(false) this.progress.show(false) this.progress.setValue(0) this.updating = false</function>
<function id="deviceAdded" params="version">var modelAndVersion = version.split(";") var model = modelAndVersion[0] var version = modelAndVersion[1] var type = model.split("/"); var updatableModelName = this.READER_MODEL_NAME.value if (type[0] != updatableModelName) { var msg = "This updater only supports model " + updatableModelName this.container.setVariable("updateStatus", msg) } else { this.softwareLabel.show(true) this.versionLabel.show(true) this.image.brighten() this.container.setVariable("deviceVersion", version) if (this.compareDeviceVersion(version)) { this.checkmark.show(true) this.button.enable(false) this.container.setVariable("updateStatus", "This PRS-505 is up-to-date") } else { this.checkmark.show(false) this.button.enable(true) this.container.setVariable("updateStatus", "Please click below to continue") } } var notificationShown = this.container.getVariable("notificationShown") if (notificationShown) this.container.bubble("scheduleTimeOut")</function>
<function id="deviceRemoved">this.softwareLabel.show(false) this.versionLabel.show(false) this.checkmark.show(false) this.button.enable(false) this.image.dim() this.container.setVariable("deviceVersion", "no device") this.container.setVariable("updateStatus", "Connect a PRS-505 to update")</function>
- <function id="compareDeviceVersion" params="deviceVersion">
- <![CDATA[ var updateVersion = this.container.getVariable("updateVersion")
var version = deviceVersion.replace(".", "")
return updateVersion <= version

]]>
</function>
</code>
</model>
<background id="background" active="false" left="0" right="0" top="0" bottom="0" />
- <default-button text="Update" id="updateButton" right="0" width="80" bottom="-45" height="30" active="false">
- <code>
<function id="click">this.container.model.updateBegin()</function>
</code>
</default-button>
<panel left="0" top="0" right="0" bottom="0" />
<blendImage href="../assets/updaterAssets/sonyEbook.png" id="image" blend="76.8" left="10" width="92" height="117" />
<image href="../assets/updaterAssets/check.png" id="checkmark" visible="false" left="10" width="92" height="117" />
<label align="left" id="latestLabel" text="New software version:" right="80" width="190" top="35" height="30" />
<label align="right" text="1.0" id="updateVersionLabel" variable="formatedUpdateVersion" right="40" width="80" top="35" height="30" />
<label align="left" id="softwareLabel" visible="false" text="Current software version:" right="80" width="190" top="55" height="30" />
<label align="right" text="1.0" id="versionLabel" visible="false" variable="deviceVersion" right="40" width="80" top="55" height="30" />
<label align="center" visible="false" id="dontDisconnectLabel" text="Update in progress. Do not disconnect" right="40" width="230" top="98" height="30" />
<progress value="0" id="progress" visible="false" right="40" width="230" top="124" height="20" />
<label align="center" id="statusLabel" variable="updateStatus" right="0" width="310" top="138" height="30" />
</document>

Last edited by vman; 04-19-2009 at 02:19 AM.
vman is offline   Reply With Quote