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
16 * Entry's type is unknown
18 const unsigned long TYPE_UNKNOWN
= 0;
21 * Entry is a directory
23 const unsigned long TYPE_DIRECTORY
= 1;
28 const unsigned long TYPE_FILE
= 2;
33 const unsigned long TYPE_SYMLINK
= 3;
36 * The type of the entry - one of the constants above
38 attribute
unsigned long type
;
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
;
49 * File size, with -1 meaning "unknown"
51 attribute
long long size
;
54 * Last-modified time in seconds-since-epoch.
55 * -1 means unknown - this is valid, because there were no
58 attribute PRTime lastModified
;