xpfe/components/directory/nsIHTTPIndex.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpfe/components/directory/nsIHTTPIndex.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,50 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/*
    1.10 +
    1.11 +  The interface to an HTTP index
    1.12 +
    1.13 +*/
    1.14 +
    1.15 +#include "nsISupports.idl"
    1.16 +
    1.17 +interface nsIStreamListener;
    1.18 +interface nsIRDFDataSource;
    1.19 +interface nsIRDFNode;
    1.20 +interface nsIRDFResource;
    1.21 +
    1.22 +[scriptable, uuid(6F2BDBD0-58C3-11d3-BE36-00104BDE6048)]
    1.23 +interface nsIHTTPIndex : nsISupports
    1.24 +{
    1.25 +    /**
    1.26 +     * The base URL of the HTTP index
    1.27 +     */
    1.28 +    readonly attribute string BaseURL;
    1.29 +
    1.30 +    /**
    1.31 +     * The RDF datasource that contains the HTTP index information.
    1.32 +     */
    1.33 +    readonly attribute nsIRDFDataSource DataSource;
    1.34 +
    1.35 +    /**
    1.36 +     * The charset to use for decoding FTP filenames
    1.37 +     */
    1.38 +    attribute string encoding;
    1.39 +};
    1.40 +
    1.41 +%{C++
    1.42 +
    1.43 +// {{2587e382-1324-11d4-a652-eadbb2be3484}
    1.44 +#define NS_HTTPINDEX_SERVICE_CID \
    1.45 +{ 0x2587e382, 0x1324, 0x11d4, { 0xa6, 0x52, 0xea, 0xdb, 0xb2, 0xbe, 0x34, 0x84 } }
    1.46 +
    1.47 +#define NS_HTTPINDEX_SERVICE_CONTRACTID \
    1.48 +    "@mozilla.org/browser/httpindex-service;1"
    1.49 +
    1.50 +#define NS_HTTPINDEX_DATASOURCE_CONTRACTID \
    1.51 +    "@mozilla.org/rdf/datasource;1?name=httpindex"
    1.52 +
    1.53 +%}

mercurial