Struct xpcom::interfaces::nsIOfflineCacheUpdateObserver
[−]
[src]
#[repr(C)]pub struct nsIOfflineCacheUpdateObserver { /* fields omitted */ }
interface nsIOfflineCacheUpdateObserver : nsISupports
Methods
impl nsIOfflineCacheUpdateObserver
[src]
pub fn coerce<T: nsIOfflineCacheUpdateObserverCoerce>(&self) -> &T
[src]
Cast this nsIOfflineCacheUpdateObserver
to one of its base interfaces.
impl nsIOfflineCacheUpdateObserver
[src]
pub const STATE_ERROR: i64
STATE_ERROR: i64 = 1
pub const STATE_CHECKING: i64
STATE_CHECKING: i64 = 2
pub const STATE_NOUPDATE: i64
STATE_NOUPDATE: i64 = 3
pub const STATE_OBSOLETE: i64
STATE_OBSOLETE: i64 = 4
pub const STATE_DOWNLOADING: i64
STATE_DOWNLOADING: i64 = 5
pub const STATE_ITEMSTARTED: i64
STATE_ITEMSTARTED: i64 = 6
pub const STATE_ITEMCOMPLETED: i64
STATE_ITEMCOMPLETED: i64 = 7
pub const STATE_ITEMPROGRESS: i64
STATE_ITEMPROGRESS: i64 = 8
pub const STATE_FINISHED: i64
STATE_FINISHED: i64 = 10
pub unsafe fn UpdateStateChanged(
&self,
aUpdate: *const nsIOfflineCacheUpdate,
state: uint32_t
) -> nsresult
[src]
&self,
aUpdate: *const nsIOfflineCacheUpdate,
state: uint32_t
) -> nsresult
/**
* aUpdate has changed its state.
*
* @param aUpdate
* The nsIOfflineCacheUpdate being processed.
* @param event
* See enumeration above
*/
void updateStateChanged (in nsIOfflineCacheUpdate aUpdate, in uint32_t state);
pub unsafe fn ApplicationCacheAvailable(
&self,
applicationCache: *const nsIApplicationCache
) -> nsresult
[src]
&self,
applicationCache: *const nsIApplicationCache
) -> nsresult
/**
* Informs the observer about an application being available to associate.
*
* @param applicationCache
* The application cache instance that has been created or found by the
* update to associate with
*/
void applicationCacheAvailable (in nsIApplicationCache applicationCache);
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 nsIOfflineCacheUpdateObserver
[src]
const IID: nsIID
IID: nsIID = nsID(1194724695, 36596, 19037, [136, 101, 26, 39, 167, 57, 173, 26])
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 nsIOfflineCacheUpdateObserver
[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 nsIOfflineCacheUpdateObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.