Struct xpcom::interfaces::nsIUpdatePrompt
[−]
[src]
#[repr(C)]pub struct nsIUpdatePrompt { /* fields omitted */ }
interface nsIUpdatePrompt : nsISupports
/**
* An interface describing an object that can show various kinds of Update
* notification UI to the user.
*/
Methods
impl nsIUpdatePrompt
[src]
pub fn coerce<T: nsIUpdatePromptCoerce>(&self) -> &T
[src]
Cast this nsIUpdatePrompt
to one of its base interfaces.
impl nsIUpdatePrompt
[src]
pub unsafe fn CheckForUpdates(&self) -> nsresult
[src]
/**
* Shows the application update checking user interface and checks if there
* is an update available.
*/
void checkForUpdates ();
pub unsafe fn ShowUpdateAvailable(&self, update: *const nsIUpdate) -> nsresult
[src]
/**
* Shows the application update available user interface advising that an
* update is available for download and install. If the app.update.silent
* preference is true or the user interface is already displayed the call will
* be a no-op.
* @param update
* The nsIUpdate object to be downloaded and installed
*/
void showUpdateAvailable (in nsIUpdate update);
pub unsafe fn ShowUpdateDownloaded(
&self,
update: *const nsIUpdate,
background: bool
) -> nsresult
[src]
&self,
update: *const nsIUpdate,
background: bool
) -> nsresult
/**
* Shows the application update downloaded user interface advising that an
* update has now been downloaded and a restart is necessary to complete the
* update. If background is true (e.g. the download was not user initiated)
* and the app.update.silent preference is true the call will be a no-op.
* @param update
* The nsIUpdate object that was downloaded
* @param background
* Less obtrusive UI, starting with a non-modal notification alert
*/
void showUpdateDownloaded (in nsIUpdate update, [optional] in boolean background);
pub unsafe fn ShowUpdateError(&self, update: *const nsIUpdate) -> nsresult
[src]
/**
* Shows the application update error user interface advising that an error
* occurred while checking for or applying an update. If the app.update.silent
* preference is true the call will be a no-op.
* @param update
* An nsIUpdate object representing the update that could not be
* installed. The nsIUpdate object will not be the actual update when
* the error occurred during an update check and will instead be an
* nsIUpdate object with the error information for the update check.
*/
void showUpdateError (in nsIUpdate update);
pub unsafe fn ShowUpdateHistory(&self, parent: *const nsIDOMWindow) -> nsresult
[src]
/**
* Shows a list of all updates installed to date.
* @param parent
* An nsIDOMWindow to set as the parent for this window. Can be null.
*/
void showUpdateHistory (in nsIDOMWindow parent);
pub unsafe fn ShowUpdateElevationRequired(&self) -> nsresult
[src]
/**
* Shows the application update downloaded user interface advising that an
* update, which requires elevation, has now been downloaded and a restart is
* necessary to complete the update.
*/
void showUpdateElevationRequired ();
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 nsIUpdatePrompt
[src]
const IID: nsIID
IID: nsIID = nsID(3471031648, 50532, 17151, [162, 191, 212, 66, 203, 21, 247, 92])
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 nsIUpdatePrompt
[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 nsIUpdatePrompt
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.