Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
nsDirIndex Class Reference

#include <nsDirIndex.h>

Inheritance diagram for nsDirIndex:
Inheritance graph
[legend]
Collaboration diagram for nsDirIndex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsDirIndex ()
 ~nsDirIndex ()

Public Attributes

const unsigned long TYPE_UNKNOWN = 0
 Entry's type is unknown.
const unsigned long TYPE_DIRECTORY = 1
 Entry is a directory.
const unsigned long TYPE_FILE = 2
 Entry is a file.
const unsigned long TYPE_SYMLINK = 3
 Entry is a symlink.
attribute unsigned long type
 The type of the entry - one of the constants above.
attribute string contentType
 The content type - may be null if it is unknown.
attribute string location
 The fully qualified filename, expressed as a uri.
attribute wstring description
 A description for the filename, which should be displayed by a viewer.
attribute long long size
 File size, with -1 meaning "unknown".
attribute PRTime lastModified
 Last-modified time in seconds-since-epoch.

Protected Attributes

PRUint32 mType
nsXPIDLCString mContentType
nsXPIDLCString mLocation
nsString mDescription
PRInt64 mSize
PRInt64 mLastModified

Detailed Description

Definition at line 44 of file nsDirIndex.h.


Constructor & Destructor Documentation

Definition at line 52 of file nsDirIndex.cpp.

{}

Member Data Documentation

The content type - may be null if it is unknown.

Unspecified for directories

Definition at line 77 of file nsIDirIndex.idl.

attribute wstring nsIDirIndex::description [inherited]

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

Definition at line 91 of file nsIDirIndex.idl.

Last-modified time in seconds-since-epoch.

-1 means unknown - this is valid, because there were no ftp servers in 1969

Definition at line 103 of file nsIDirIndex.idl.

The fully qualified filename, expressed as a uri.

This is encoded with the encoding specified in the nsIDirIndexParser, and is also escaped.

Definition at line 85 of file nsIDirIndex.idl.

Definition at line 54 of file nsDirIndex.h.

Definition at line 56 of file nsDirIndex.h.

Definition at line 58 of file nsDirIndex.h.

Definition at line 55 of file nsDirIndex.h.

Definition at line 57 of file nsDirIndex.h.

Definition at line 53 of file nsDirIndex.h.

File size, with -1 meaning "unknown".

Definition at line 96 of file nsIDirIndex.idl.

attribute unsigned long nsIDirIndex::type [inherited]

The type of the entry - one of the constants above.

Definition at line 71 of file nsIDirIndex.idl.

const unsigned long nsIDirIndex::TYPE_DIRECTORY = 1 [inherited]

Entry is a directory.

Definition at line 56 of file nsIDirIndex.idl.

const unsigned long nsIDirIndex::TYPE_FILE = 2 [inherited]

Entry is a file.

Definition at line 61 of file nsIDirIndex.idl.

const unsigned long nsIDirIndex::TYPE_SYMLINK = 3 [inherited]

Entry is a symlink.

Definition at line 66 of file nsIDirIndex.idl.

const unsigned long nsIDirIndex::TYPE_UNKNOWN = 0 [inherited]

Entry's type is unknown.

Definition at line 51 of file nsIDirIndex.idl.


The documentation for this class was generated from the following files: