Struct xpcom::interfaces::nsIGeolocationProvider
[−]
[src]
#[repr(C)]pub struct nsIGeolocationProvider { /* fields omitted */ }
interface nsIGeolocationProvider : nsISupports
/**
* Interface provides location information to the nsGeolocator
* via the nsIDOMGeolocationCallback interface. After
* startup is called, any geo location change should call
* callback.update().
*/
Methods
impl nsIGeolocationProvider
[src]
pub fn coerce<T: nsIGeolocationProviderCoerce>(&self) -> &T
[src]
Cast this nsIGeolocationProvider
to one of its base interfaces.
impl nsIGeolocationProvider
[src]
pub unsafe fn Startup(&self) -> nsresult
[src]
/**
* Start up the provider. This is called before any other
* method. may be called multiple times.
*/
void startup ();
pub unsafe fn Watch(&self, callback: *const nsIGeolocationUpdate) -> nsresult
[src]
/**
* watch
* When a location change is observed, notify the callback.
*/
void watch (in nsIGeolocationUpdate callback);
pub unsafe fn Shutdown(&self) -> nsresult
[src]
/**
* shutdown
* Shuts down the location device.
*/
void shutdown ();
pub unsafe fn SetHighAccuracy(&self, enable: bool) -> nsresult
[src]
/**
* hint to provide to use any amount of power to provide a better result
*/
void setHighAccuracy (in boolean enable);
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 nsIGeolocationProvider
[src]
const IID: nsIID
IID: nsIID = nsID(2890535739, 40850, 20348, [179, 105, 212, 12, 182, 177, 118, 80])
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 nsIGeolocationProvider
[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 nsIGeolocationProvider
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.