Struct xpcom::interfaces::amIAddonPathService
[−]
[src]
#[repr(C)]pub struct amIAddonPathService { /* fields omitted */ }
interface amIAddonPathService : nsISupports
/**
* This service maps file system paths where add-ons reside to the ID
* of the add-on. Paths are added by the add-on manager. They can
* looked up by anyone.
*/
Methods
impl amIAddonPathService
[src]
pub fn coerce<T: amIAddonPathServiceCoerce>(&self) -> &T
[src]
Cast this amIAddonPathService
to one of its base interfaces.
impl amIAddonPathService
[src]
pub unsafe fn FindAddonId(
&self,
path: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
path: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* Given a path to a file, return the ID of the add-on that the file belongs
* to. Returns an empty string if there is no add-on there. Note that if an
* add-on is located at /a/b/c, then looking up the path /a/b/c/d will return
* that add-on.
*/
AString findAddonId (in AString path);
pub unsafe fn InsertPath(
&self,
path: &nsAString,
addonId: &nsAString
) -> nsresult
[src]
&self,
path: &nsAString,
addonId: &nsAString
) -> nsresult
/**
* Call this function to inform the service that the given file system path is
* associated with the given add-on ID.
*/
void insertPath (in AString path, in AString addonId);
pub unsafe fn MapURIToAddonId(
&self,
aURI: *const nsIURI,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
_retval: &mut nsAString
) -> nsresult
/**
* Given a URI to a file, return the ID of the add-on that the file belongs
* to. Returns an empty string if there is no add-on there.
*/
AString mapURIToAddonId (in nsIURI aURI);
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 amIAddonPathService
[src]
const IID: nsIID
IID: nsIID = nsID(4242137712, 57265, 4579, [139, 104, 8, 0, 32, 12, 154, 102])
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 amIAddonPathService
[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 amIAddonPathService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.