nsIUpdatePatch 编辑

toolkit/mozapps/update/nsIUpdateService.idlScriptable An interface that describes an object representing a patch file that can be downloaded and applied to a version of this application so that it can be updated. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Method overview

nsIDOMElement serialize(in nsIDOMDocument updates);

Attributes

AttributeTypeDescription
finalURLAStringThe final URL this patch was being downloaded from.
hashFunctionAStringThe hash function to use when determining the integrity of the patch file.
hashValueAStringThe value of the hash function named in hashFunction that should be computed if the file is not corrupt.
selectedbooleantrue if this patch is currently selected as the patch to be downloaded and installed for this update transaction. false if another update is selected.
sizeunsigned longThe size of the patch file in bytes.
stateAStringThe state of this patch.
typeAStringThe type of patch represented by the object:
"partial"
A binary difference between two application versions.
"complete"
A complete patch containing all the replacement files to update to the new version.
URLAStringThe URL from which the patch was downloaded.

Methods

serialize()

Serializes the patch object into a DOM element.

nsIDOMElement serialize(
  in nsIDOMDocument updates
);
Parameters
updates
The DOM document into which to serialize the patch.
Return value

The patch object serialized into an nsIDOMElement.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:66 次

字数:4673

最后编辑:8年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文