nsIUpdatePatch 编辑
toolkit/mozapps/update/nsIUpdateService.idl
Scriptable 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
Attribute | Type | Description |
finalURL | AString | The final URL this patch was being downloaded from. |
hashFunction | AString | The hash function to use when determining the integrity of the patch file. |
hashValue | AString | The value of the hash function named in hashFunction that should be computed if the file is not corrupt. |
selected | boolean | true if this patch is currently selected as the patch to be downloaded and installed for this update transaction. false if another update is selected. |
size | unsigned long | The size of the patch file in bytes. |
state | AString | The state of this patch. |
type | AString | The type of patch represented by the object:
|
URL | AString | The 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论