Struct xpcom::interfaces::nsIDirIndex
[−]
[src]
#[repr(C)]pub struct nsIDirIndex { /* fields omitted */ }
interface nsIDirIndex : nsISupports
/** A class holding information about a directory index.
* These have no reference back to their original source -
* changing these attributes won't affect the directory
*/
Methods
impl nsIDirIndex
[src]
pub fn coerce<T: nsIDirIndexCoerce>(&self) -> &T
[src]
Cast this nsIDirIndex
to one of its base interfaces.
impl nsIDirIndex
[src]
pub const TYPE_UNKNOWN: i64
TYPE_UNKNOWN: i64 = 0
/**
* Entry's type is unknown
*/
pub const TYPE_DIRECTORY: i64
TYPE_DIRECTORY: i64 = 1
/**
* Entry is a directory
*/
pub const TYPE_FILE: i64
TYPE_FILE: i64 = 2
/**
* Entry is a file
*/
pub const TYPE_SYMLINK: i64
TYPE_SYMLINK: i64 = 3
/**
* Entry is a symlink
*/
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
/**
* The type of the entry - one of the constants above
*/
attribute unsigned long type;
pub unsafe fn SetType(&self, aType: uint32_t) -> nsresult
[src]
/**
* The type of the entry - one of the constants above
*/
attribute unsigned long type;
pub unsafe fn GetContentType(
&self,
aContentType: *mut *const c_char
) -> nsresult
[src]
&self,
aContentType: *mut *const c_char
) -> nsresult
/**
* The content type - may be null if it is unknown.
* Unspecified for directories
*/
attribute string contentType;
pub unsafe fn SetContentType(&self, aContentType: *const c_char) -> nsresult
[src]
/**
* The content type - may be null if it is unknown.
* Unspecified for directories
*/
attribute string contentType;
pub unsafe fn GetLocation(&self, aLocation: *mut *const c_char) -> nsresult
[src]
/**
* The fully qualified filename, expressed as a uri
*
* This is encoded with the encoding specified in
* the nsIDirIndexParser, and is also escaped.
*/
attribute string location;
pub unsafe fn SetLocation(&self, aLocation: *const c_char) -> nsresult
[src]
/**
* The fully qualified filename, expressed as a uri
*
* This is encoded with the encoding specified in
* the nsIDirIndexParser, and is also escaped.
*/
attribute string location;
pub unsafe fn GetDescription(
&self,
aDescription: *mut *const int16_t
) -> nsresult
[src]
&self,
aDescription: *mut *const int16_t
) -> nsresult
/**
* A description for the filename, which should be
* displayed by a viewer
*/
attribute wstring description;
pub unsafe fn SetDescription(&self, aDescription: *const int16_t) -> nsresult
[src]
/**
* A description for the filename, which should be
* displayed by a viewer
*/
attribute wstring description;
pub unsafe fn GetSize(&self, aSize: *mut int64_t) -> nsresult
[src]
/**
* File size, with -1 meaning "unknown"
*/
attribute long long size;
pub unsafe fn SetSize(&self, aSize: int64_t) -> nsresult
[src]
/**
* File size, with -1 meaning "unknown"
*/
attribute long long size;
pub unsafe fn GetLastModified(&self, aLastModified: *mut PRTime) -> nsresult
[src]
/**
* Last-modified time in seconds-since-epoch.
* -1 means unknown - this is valid, because there were no
* ftp servers in 1969
*/
attribute PRTime lastModified;
pub unsafe fn SetLastModified(&self, aLastModified: PRTime) -> nsresult
[src]
/**
* Last-modified time in seconds-since-epoch.
* -1 means unknown - this is valid, because there were no
* ftp servers in 1969
*/
attribute PRTime lastModified;
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 nsIDirIndex
[src]
const IID: nsIID
IID: nsIID = nsID(599501776, 7634, 4530, [134, 183, 170, 214, 138, 231, 215, 224])
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 nsIDirIndex
[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 nsIDirIndex
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.