tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsIDirIndex.idl (1540B)


      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/. */
      5 
      6 #include "nsISupports.idl"
      7 
      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
     11 */
     12 [scriptable, uuid(23bbabd0-1dd2-11b2-86b7-aad68ae7d7e0)]
     13 interface nsIDirIndex : nsISupports
     14 {
     15    /**
     16     * Entry's type is unknown
     17     */
     18    const unsigned long TYPE_UNKNOWN = 0;
     19 
     20    /**
     21     * Entry is a directory
     22     */
     23    const unsigned long TYPE_DIRECTORY = 1;
     24 
     25    /**
     26     * Entry is a file
     27     */
     28    const unsigned long TYPE_FILE = 2;
     29 
     30    /**
     31     * Entry is a symlink
     32     */
     33    const unsigned long TYPE_SYMLINK = 3;
     34 
     35    /**
     36     * The type of the entry - one of the constants above
     37     */
     38    attribute unsigned long type;
     39 
     40    /**
     41     * The fully qualified filename, expressed as a uri
     42     *
     43     * This is encoded with the encoding specified in
     44     * the nsIDirIndexParser, and is also escaped.
     45     */
     46    attribute ACString location;
     47 
     48    /**
     49     * File size, with -1 meaning "unknown"
     50     */
     51    attribute long long size;
     52 
     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
     57     */
     58    attribute PRTime lastModified;
     59 };