|
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 /* |
|
7 |
|
8 The interface to an HTTP index |
|
9 |
|
10 */ |
|
11 |
|
12 #include "nsISupports.idl" |
|
13 |
|
14 interface nsIStreamListener; |
|
15 interface nsIRDFDataSource; |
|
16 interface nsIRDFNode; |
|
17 interface nsIRDFResource; |
|
18 |
|
19 [scriptable, uuid(6F2BDBD0-58C3-11d3-BE36-00104BDE6048)] |
|
20 interface nsIHTTPIndex : nsISupports |
|
21 { |
|
22 /** |
|
23 * The base URL of the HTTP index |
|
24 */ |
|
25 readonly attribute string BaseURL; |
|
26 |
|
27 /** |
|
28 * The RDF datasource that contains the HTTP index information. |
|
29 */ |
|
30 readonly attribute nsIRDFDataSource DataSource; |
|
31 |
|
32 /** |
|
33 * The charset to use for decoding FTP filenames |
|
34 */ |
|
35 attribute string encoding; |
|
36 }; |
|
37 |
|
38 %{C++ |
|
39 |
|
40 // {{2587e382-1324-11d4-a652-eadbb2be3484} |
|
41 #define NS_HTTPINDEX_SERVICE_CID \ |
|
42 { 0x2587e382, 0x1324, 0x11d4, { 0xa6, 0x52, 0xea, 0xdb, 0xb2, 0xbe, 0x34, 0x84 } } |
|
43 |
|
44 #define NS_HTTPINDEX_SERVICE_CONTRACTID \ |
|
45 "@mozilla.org/browser/httpindex-service;1" |
|
46 |
|
47 #define NS_HTTPINDEX_DATASOURCE_CONTRACTID \ |
|
48 "@mozilla.org/rdf/datasource;1?name=httpindex" |
|
49 |
|
50 %} |