Struct xpcom::interfaces::nsIRelativeFilePref
[−]
[src]
#[repr(C)]pub struct nsIRelativeFilePref { /* fields omitted */ }
interface nsIRelativeFilePref : nsISupports
/**
* The nsIRelativeFilePref interface is a wrapper for an nsIFile and
* and a directory service key. When used as a pref value, it stores a
* relative path to the file from the location pointed to by the directory
* service key. The path has the same syntax across all platforms.
*
* @see nsIPrefBranch::getComplexValue
* @see nsIPrefBranch::setComplexValue
*
*/
Methods
impl nsIRelativeFilePref
[src]
pub fn coerce<T: nsIRelativeFilePrefCoerce>(&self) -> &T
[src]
Cast this nsIRelativeFilePref
to one of its base interfaces.
impl nsIRelativeFilePref
[src]
pub unsafe fn GetFile(&self, aFile: *mut *const nsIFile) -> nsresult
[src]
/**
* file
*
* The file whose location is stored or retrieved.
*/
attribute nsIFile file;
pub unsafe fn SetFile(&self, aFile: *const nsIFile) -> nsresult
[src]
/**
* file
*
* The file whose location is stored or retrieved.
*/
attribute nsIFile file;
pub unsafe fn GetRelativeToKey(
&self,
aRelativeToKey: &mut nsACString
) -> nsresult
[src]
&self,
aRelativeToKey: &mut nsACString
) -> nsresult
/**
* relativeToKey
*
* A directory service key for the directory
* from which the file path is relative.
*/
attribute ACString relativeToKey;
pub unsafe fn SetRelativeToKey(&self, aRelativeToKey: &nsACString) -> nsresult
[src]
/**
* relativeToKey
*
* A directory service key for the directory
* from which the file path is relative.
*/
attribute ACString relativeToKey;
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 nsIRelativeFilePref
[src]
const IID: nsIID
IID: nsIID = nsID(798457166, 21637, 4564, [135, 226, 0, 16, 164, 231, 94, 242])
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 nsIRelativeFilePref
[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 nsIRelativeFilePref
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.