Struct xpcom::interfaces::nsIUpdateChecker
[−]
[src]
#[repr(C)]pub struct nsIUpdateChecker { /* fields omitted */ }
interface nsIUpdateChecker : nsISupports
/**
* An interface describing an object that knows how to check for updates.
*/
Methods
impl nsIUpdateChecker
[src]
pub fn coerce<T: nsIUpdateCheckerCoerce>(&self) -> &T
[src]
Cast this nsIUpdateChecker
to one of its base interfaces.
impl nsIUpdateChecker
[src]
pub const CURRENT_CHECK: i64
CURRENT_CHECK: i64 = 1
/**
* Constants for the |stopChecking| function that tell the Checker how long
* to stop checking:
*
* CURRENT_CHECK: Stops the current (active) check only
* CURRENT_SESSION: Stops all checking for the current session
* ANY_CHECKS: Stops all checking, any session from now on
* (disables update checking preferences)
*/
pub const CURRENT_SESSION: i64
CURRENT_SESSION: i64 = 2
pub const ANY_CHECKS: i64
ANY_CHECKS: i64 = 3
pub unsafe fn CheckForUpdates(
&self,
listener: *const nsIUpdateCheckListener,
force: bool
) -> nsresult
[src]
&self,
listener: *const nsIUpdateCheckListener,
force: bool
) -> nsresult
/**
* Checks for available updates, notifying a listener of the results.
* @param listener
* An object implementing nsIUpdateCheckListener which is notified
* of the results of an update check.
* @param force
* Forces the checker to check for updates, regardless of the
* current value of the user's update settings. This is used by
* any piece of UI that offers the user the imperative option to
* check for updates now, regardless of their update settings.
* force will not work if the system administrator has locked
* the app.update.enabled preference.
*/
void checkForUpdates (in nsIUpdateCheckListener listener, in boolean force);
pub unsafe fn StopChecking(&self, duration: uint16_t) -> nsresult
[src]
/**
* Ends any pending update check.
* @param duration
* A value representing the set of checks to stop doing.
*/
void stopChecking (in unsigned short duration);
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 nsIUpdateChecker
[src]
const IID: nsIID
IID: nsIID = nsID(2272972325, 35781, 17706, [133, 134, 156, 28, 242, 135, 25, 148])
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 nsIUpdateChecker
[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 nsIUpdateChecker
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.