Struct xpcom::interfaces::nsIUpdatePatch
[−]
[src]
#[repr(C)]pub struct nsIUpdatePatch { /* fields omitted */ }
interface nsIUpdatePatch : nsISupports
/**
* 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.
*/
Methods
impl nsIUpdatePatch
[src]
pub fn coerce<T: nsIUpdatePatchCoerce>(&self) -> &T
[src]
Cast this nsIUpdatePatch
to one of its base interfaces.
impl nsIUpdatePatch
[src]
pub unsafe fn GetType(&self, aType: &mut nsAString) -> nsresult
[src]
/**
* The type of this patch:
* "partial" A binary difference between two application versions
* "complete" A complete patch containing all of the replacement files
* to update to the new version
*/
attribute AString type;
pub unsafe fn SetType(&self, aType: &nsAString) -> nsresult
[src]
/**
* The type of this patch:
* "partial" A binary difference between two application versions
* "complete" A complete patch containing all of the replacement files
* to update to the new version
*/
attribute AString type;
pub unsafe fn GetURL(&self, aURL: &mut nsAString) -> nsresult
[src]
/**
* The URL this patch was being downloaded from
*/
attribute AString URL;
pub unsafe fn SetURL(&self, aURL: &nsAString) -> nsresult
[src]
/**
* The URL this patch was being downloaded from
*/
attribute AString URL;
pub unsafe fn GetFinalURL(&self, aFinalURL: &mut nsAString) -> nsresult
[src]
/**
* The final URL this patch was being downloaded from
*/
attribute AString finalURL;
pub unsafe fn SetFinalURL(&self, aFinalURL: &nsAString) -> nsresult
[src]
/**
* The final URL this patch was being downloaded from
*/
attribute AString finalURL;
pub unsafe fn GetSize(&self, aSize: *mut uint32_t) -> nsresult
[src]
/**
* The size of this file, in bytes.
*/
attribute unsigned long size;
pub unsafe fn SetSize(&self, aSize: uint32_t) -> nsresult
[src]
/**
* The size of this file, in bytes.
*/
attribute unsigned long size;
pub unsafe fn GetState(&self, aState: &mut nsAString) -> nsresult
[src]
/**
* The state of this patch
*/
attribute AString state;
pub unsafe fn SetState(&self, aState: &nsAString) -> nsresult
[src]
/**
* The state of this patch
*/
attribute AString state;
pub unsafe fn GetErrorCode(&self, aErrorCode: *mut int32_t) -> nsresult
[src]
/**
* A numeric error code that conveys additional information about the state of
* a failed update. If the update is not in the "failed" state the value is
* zero. The possible values are located in common/errors.h and values between
* 80 and 99 are in nsUpdateService.js.
*/
attribute long errorCode;
pub unsafe fn SetErrorCode(&self, aErrorCode: int32_t) -> nsresult
[src]
/**
* A numeric error code that conveys additional information about the state of
* a failed update. If the update is not in the "failed" state the value is
* zero. The possible values are located in common/errors.h and values between
* 80 and 99 are in nsUpdateService.js.
*/
attribute long errorCode;
pub unsafe fn GetSelected(&self, aSelected: *mut bool) -> nsresult
[src]
/**
* true if this patch is currently selected as the patch to be downloaded and
* installed for this update transaction, false if another patch from this
* update has been selected.
*/
attribute boolean selected;
pub unsafe fn SetSelected(&self, aSelected: bool) -> nsresult
[src]
/**
* true if this patch is currently selected as the patch to be downloaded and
* installed for this update transaction, false if another patch from this
* update has been selected.
*/
attribute boolean selected;
pub unsafe fn Serialize(
&self,
updates: *const nsIDOMDocument,
_retval: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
updates: *const nsIDOMDocument,
_retval: *mut *const nsIDOMElement
) -> nsresult
/**
* Serializes this patch object into a DOM Element
* @param updates
* The document to serialize into
* @returns The DOM Element created by the serialization process
*/
nsIDOMElement serialize (in nsIDOMDocument updates);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIUpdatePatch
[src]
const IID: nsIID
IID: nsIID = nsID(3700406441, 14931, 16433, [148, 105, 42, 81, 151, 234, 48, 231])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIUpdatePatch
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIUpdatePatch
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.