Struct xpcom::interfaces::nsIToolkitProfile
[−]
[src]
#[repr(C)]pub struct nsIToolkitProfile { /* fields omitted */ }
interface nsIToolkitProfile : nsISupports
/**
* A interface representing a profile.
* @note THIS INTERFACE SHOULD BE IMPLEMENTED BY THE TOOLKIT CODE ONLY! DON'T
* EVEN THINK ABOUT IMPLEMENTING THIS IN JAVASCRIPT!
*/
Methods
impl nsIToolkitProfile
[src]
pub fn coerce<T: nsIToolkitProfileCoerce>(&self) -> &T
[src]
Cast this nsIToolkitProfile
to one of its base interfaces.
impl nsIToolkitProfile
[src]
pub unsafe fn GetRootDir(&self, aRootDir: *mut *const nsIFile) -> nsresult
[src]
/**
* The location of the profile directory.
*/
readonly attribute nsIFile rootDir;
pub unsafe fn GetLocalDir(&self, aLocalDir: *mut *const nsIFile) -> nsresult
[src]
/**
* The location of the profile local directory, which may be the same as
* the root directory. See nsIProfileLock::localDirectory.
*/
readonly attribute nsIFile localDir;
pub unsafe fn GetName(&self, aName: &mut nsACString) -> nsresult
[src]
/**
* The name of the profile.
*/
attribute AUTF8String name;
pub unsafe fn SetName(&self, aName: &nsACString) -> nsresult
[src]
/**
* The name of the profile.
*/
attribute AUTF8String name;
pub unsafe fn Remove(&self, removeFiles: bool) -> nsresult
[src]
/**
* Removes the profile from the registry of profiles.
*
* @param removeFiles
* Indicates whether or not the profile directory should be
* removed in addition.
*/
void remove (in boolean removeFiles);
pub unsafe fn RemoveInBackground(&self) -> nsresult
[src]
/**
* Removes the profile from the registry of profiles.
* The profile directory is removed in the stream transport thread.
*/
void removeInBackground ();
pub unsafe fn Lock(
&self,
aUnlocker: *mut *const nsIProfileUnlocker,
_retval: *mut *const nsIProfileLock
) -> nsresult
[src]
&self,
aUnlocker: *mut *const nsIProfileUnlocker,
_retval: *mut *const nsIProfileLock
) -> nsresult
/**
* Lock this profile using platform-specific locking methods.
*
* @param lockFile If locking fails, this may return a lockFile object
* which can be used in platform-specific ways to
* determine which process has the file locked. Null
* may be passed.
* @return An interface which holds a profile lock as long as you reference
* it.
* @throws NS_ERROR_FILE_ACCESS_DENIED if the profile was already locked.
*/
nsIProfileLock lock (out nsIProfileUnlocker aUnlocker);
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 nsIToolkitProfile
[src]
const IID: nsIID
IID: nsIID = nsID(1948430480, 19078, 17415, [151, 46, 117, 70, 138, 98, 83, 136])
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 nsIToolkitProfile
[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 nsIToolkitProfile
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.