Struct xpcom::interfaces::nsIUpdateManager
[−]
[src]
#[repr(C)]pub struct nsIUpdateManager { /* fields omitted */ }
interface nsIUpdateManager : nsISupports
/**
* An interface describing a global application service that maintains a list
* of updates previously performed as well as the current active update.
*/
Methods
impl nsIUpdateManager
[src]
pub fn coerce<T: nsIUpdateManagerCoerce>(&self) -> &T
[src]
Cast this nsIUpdateManager
to one of its base interfaces.
impl nsIUpdateManager
[src]
pub unsafe fn GetUpdateAt(
&self,
index: int32_t,
_retval: *mut *const nsIUpdate
) -> nsresult
[src]
&self,
index: int32_t,
_retval: *mut *const nsIUpdate
) -> nsresult
/**
* Gets the update at the specified index
* @param index
* The index within the updates array
* @returns The nsIUpdate object at the specified index
*/
nsIUpdate getUpdateAt (in long index);
pub unsafe fn GetUpdateCount(&self, aUpdateCount: *mut int32_t) -> nsresult
[src]
/**
* Gets the total number of updates in the history list.
*/
readonly attribute long updateCount;
pub unsafe fn GetActiveUpdate(
&self,
aActiveUpdate: *mut *const nsIUpdate
) -> nsresult
[src]
&self,
aActiveUpdate: *mut *const nsIUpdate
) -> nsresult
/**
* The active (current) update. The active update is not in the history list.
*/
attribute nsIUpdate activeUpdate;
pub unsafe fn SetActiveUpdate(
&self,
aActiveUpdate: *const nsIUpdate
) -> nsresult
[src]
&self,
aActiveUpdate: *const nsIUpdate
) -> nsresult
/**
* The active (current) update. The active update is not in the history list.
*/
attribute nsIUpdate activeUpdate;
pub unsafe fn SaveUpdates(&self) -> nsresult
[src]
/**
* Saves all updates to disk.
*/
void saveUpdates ();
pub unsafe fn RefreshUpdateStatus(&self) -> nsresult
[src]
/**
* Refresh the update status based on the information in update.status.
*/
void refreshUpdateStatus ();
pub unsafe fn ElevationOptedIn(&self) -> nsresult
[src]
/**
* The user agreed to proceed with an elevated update and we are now
* permitted to show an elevation prompt.
*/
void elevationOptedIn ();
pub unsafe fn CleanupActiveUpdate(&self) -> nsresult
[src]
/**
* Clean up and remove the active update without applying it.
*/
void cleanupActiveUpdate ();
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 nsIUpdateManager
[src]
const IID: nsIID
IID: nsIID = nsID(252745961, 42055, 19193, [176, 48, 111, 143, 53, 200, 95, 137])
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 nsIUpdateManager
[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 nsIUpdateManager
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.