Struct xpcom::interfaces::nsIDirectoryServiceProvider2
[−]
[src]
#[repr(C)]pub struct nsIDirectoryServiceProvider2 { /* fields omitted */ }
interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
/**
* nsIDirectoryServiceProvider2
*
* An extension of nsIDirectoryServiceProvider which allows
* multiple files to be returned for the given key.
*/
Methods
impl nsIDirectoryServiceProvider2
[src]
pub fn coerce<T: nsIDirectoryServiceProvider2Coerce>(&self) -> &T
[src]
Cast this nsIDirectoryServiceProvider2
to one of its base interfaces.
impl nsIDirectoryServiceProvider2
[src]
pub unsafe fn GetFiles(
&self,
prop: *const c_char,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
[src]
&self,
prop: *const c_char,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
/**
* getFiles
*
* Directory Service calls this when it gets a request for
* a prop and the requested type is nsISimpleEnumerator.
*
* @param prop The symbolic name of the file list.
*
* @return An enumerator for a list of file locations.
* The elements in the enumeration are nsIFile
* @returnCode NS_SUCCESS_AGGREGATE_RESULT if this result should be
* aggregated with other "lower" providers.
*/
nsISimpleEnumerator getFiles (in string prop);
Methods from Deref<Target = nsIDirectoryServiceProvider>
pub fn coerce<T: nsIDirectoryServiceProviderCoerce>(&self) -> &T
[src]
Cast this nsIDirectoryServiceProvider
to one of its base interfaces.
pub unsafe fn GetFile(
&self,
prop: *const c_char,
persistent: *mut bool,
_retval: *mut *const nsIFile
) -> nsresult
[src]
&self,
prop: *const c_char,
persistent: *mut bool,
_retval: *mut *const nsIFile
) -> nsresult
/**
* getFile
*
* Directory Service calls this when it gets the first request for
* a prop or on every request if the prop is not persistent.
*
* @param prop The symbolic name of the file.
* @param persistent TRUE - The returned file will be cached by Directory
* Service. Subsequent requests for this prop will
* bypass the provider and use the cache.
* FALSE - The provider will be asked for this prop
* each time it is requested.
*
* @return The file represented by the property.
*
*/
nsIFile getFile (in string prop, out boolean persistent);
Trait Implementations
impl XpCom for nsIDirectoryServiceProvider2
[src]
const IID: nsIID
IID: nsIID = nsID(798457163, 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 nsIDirectoryServiceProvider2
[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 nsIDirectoryServiceProvider2
[src]
type Target = nsIDirectoryServiceProvider
The resulting type after dereferencing.
fn deref(&self) -> &nsIDirectoryServiceProvider
[src]
Dereferences the value.