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]

[src]

Cast this nsIDirIndex to one of its base interfaces.

impl nsIDirIndex
[src]

TYPE_UNKNOWN: i64 = 0
/**
     * Entry's type is unknown
     */

TYPE_DIRECTORY: i64 = 1
/**
     * Entry is a directory
     */

TYPE_FILE: i64 = 2
/**
     * Entry is a file
     */
TYPE_SYMLINK: i64 = 3
/**
     * Entry is a symlink
     */

[src]

/**
     * The type of the entry - one of the constants above
     */

attribute unsigned long type;

[src]

/**
     * The type of the entry - one of the constants above
     */

attribute unsigned long type;

[src]

/**
     * The content type - may be null if it is unknown.
     * Unspecified for directories
     */

attribute string contentType;

[src]

/**
     * The content type - may be null if it is unknown.
     * Unspecified for directories
     */

attribute string contentType;

[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;

[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;

[src]

/**
     * A description for the filename, which should be
     * displayed by a viewer
     */

attribute wstring description;

[src]

/**
     * A description for the filename, which should be
     * displayed by a viewer
     */

attribute wstring description;

[src]

/**
     * File size, with -1 meaning "unknown"
     */

attribute long long size;

[src]

/**
     * File size, with -1 meaning "unknown"
     */

attribute long long size;

[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;

[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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDirIndex
[src]

IID: nsIID = nsID(599501776, 7634, 4530, [134, 183, 170, 214, 138, 231, 215, 224])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDirIndex
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.