netwerk/streamconv/public/nsIDirIndex.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsISupports.idl"
michael@0 7
michael@0 8 /** A class holding information about a directory index.
michael@0 9 * These have no reference back to their original source -
michael@0 10 * changing these attributes won't affect the directory
michael@0 11 */
michael@0 12 [scriptable, uuid(23bbabd0-1dd2-11b2-86b7-aad68ae7d7e0)]
michael@0 13 interface nsIDirIndex : nsISupports
michael@0 14 {
michael@0 15 /**
michael@0 16 * Entry's type is unknown
michael@0 17 */
michael@0 18 const unsigned long TYPE_UNKNOWN = 0;
michael@0 19
michael@0 20 /**
michael@0 21 * Entry is a directory
michael@0 22 */
michael@0 23 const unsigned long TYPE_DIRECTORY = 1;
michael@0 24
michael@0 25 /**
michael@0 26 * Entry is a file
michael@0 27 */
michael@0 28 const unsigned long TYPE_FILE = 2;
michael@0 29
michael@0 30 /**
michael@0 31 * Entry is a symlink
michael@0 32 */
michael@0 33 const unsigned long TYPE_SYMLINK = 3;
michael@0 34
michael@0 35 /**
michael@0 36 * The type of the entry - one of the constants above
michael@0 37 */
michael@0 38 attribute unsigned long type;
michael@0 39
michael@0 40 /**
michael@0 41 * The content type - may be null if it is unknown.
michael@0 42 * Unspecified for directories
michael@0 43 */
michael@0 44 attribute string contentType;
michael@0 45
michael@0 46 /**
michael@0 47 * The fully qualified filename, expressed as a uri
michael@0 48 *
michael@0 49 * This is encoded with the encoding specified in
michael@0 50 * the nsIDirIndexParser, and is also escaped.
michael@0 51 */
michael@0 52 attribute string location;
michael@0 53
michael@0 54 /**
michael@0 55 * A description for the filename, which should be
michael@0 56 * displayed by a viewer
michael@0 57 */
michael@0 58 attribute wstring description;
michael@0 59
michael@0 60 /**
michael@0 61 * File size, with -1 meaning "unknown"
michael@0 62 */
michael@0 63 attribute long long size;
michael@0 64
michael@0 65 /**
michael@0 66 * Last-modified time in seconds-since-epoch.
michael@0 67 * -1 means unknown - this is valid, because there were no
michael@0 68 * ftp servers in 1969
michael@0 69 */
michael@0 70 attribute PRTime lastModified;
michael@0 71 };
michael@0 72
michael@0 73 %{C++
michael@0 74
michael@0 75 #define NS_DIRINDEX_CID \
michael@0 76 /* { f6913e2e-1dd1-11b2-84be-f455dee342af } */ \
michael@0 77 { 0xf6913e2e, \
michael@0 78 0x1dd1, \
michael@0 79 0x11b2, \
michael@0 80 { 0x84, 0xbe, 0xf4, 0x55, 0xde, 0xe3, 0x42, 0xaf } \
michael@0 81 }
michael@0 82 %}

mercurial