Backed out 2 changesets (bug 1881078, bug 1879806) for causing dt failures @ devtools...
[gecko.git] / netwerk / streamconv / nsIDirIndex.idl
blob6f1df669a017a227be2f66212e60a872ccc80870
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
8 /** A class holding information about a directory index.
9 * These have no reference back to their original source -
10 * changing these attributes won't affect the directory
12 [scriptable, uuid(23bbabd0-1dd2-11b2-86b7-aad68ae7d7e0)]
13 interface nsIDirIndex : nsISupports
15 /**
16 * Entry's type is unknown
18 const unsigned long TYPE_UNKNOWN = 0;
20 /**
21 * Entry is a directory
23 const unsigned long TYPE_DIRECTORY = 1;
25 /**
26 * Entry is a file
28 const unsigned long TYPE_FILE = 2;
30 /**
31 * Entry is a symlink
33 const unsigned long TYPE_SYMLINK = 3;
35 /**
36 * The type of the entry - one of the constants above
38 attribute unsigned long type;
40 /**
41 * The fully qualified filename, expressed as a uri
43 * This is encoded with the encoding specified in
44 * the nsIDirIndexParser, and is also escaped.
46 attribute ACString location;
48 /**
49 * File size, with -1 meaning "unknown"
51 attribute long long size;
53 /**
54 * Last-modified time in seconds-since-epoch.
55 * -1 means unknown - this is valid, because there were no
56 * ftp servers in 1969
58 attribute PRTime lastModified;