Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIHTTPIndex.idl
3 : */
4 :
5 : #ifndef __gen_nsIHTTPIndex_h__
6 : #define __gen_nsIHTTPIndex_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIStreamListener; /* forward declaration */
18 :
19 : class nsIRDFDataSource; /* forward declaration */
20 :
21 : class nsIRDFNode; /* forward declaration */
22 :
23 : class nsIRDFResource; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIHTTPIndex */
27 : #define NS_IHTTPINDEX_IID_STR "6f2bdbd0-58c3-11d3-be36-00104bde6048"
28 :
29 : #define NS_IHTTPINDEX_IID \
30 : {0x6f2bdbd0, 0x58c3, 0x11d3, \
31 : { 0xbe, 0x36, 0x00, 0x10, 0x4b, 0xde, 0x60, 0x48 }}
32 :
33 0 : class NS_NO_VTABLE nsIHTTPIndex : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPINDEX_IID)
37 :
38 : /* readonly attribute string BaseURL; */
39 : NS_IMETHOD GetBaseURL(char * *aBaseURL) = 0;
40 :
41 : /* readonly attribute nsIRDFDataSource DataSource; */
42 : NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) = 0;
43 :
44 : /* attribute string encoding; */
45 : NS_IMETHOD GetEncoding(char * *aEncoding) = 0;
46 : NS_IMETHOD SetEncoding(const char * aEncoding) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHTTPIndex, NS_IHTTPINDEX_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSIHTTPINDEX \
54 : NS_IMETHOD GetBaseURL(char * *aBaseURL) override; \
55 : NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) override; \
56 : NS_IMETHOD GetEncoding(char * *aEncoding) override; \
57 : NS_IMETHOD SetEncoding(const char * aEncoding) override;
58 :
59 : /* Use this macro when declaring the members of this interface when the
60 : class doesn't implement the interface. This is useful for forwarding. */
61 : #define NS_DECL_NON_VIRTUAL_NSIHTTPINDEX \
62 : nsresult GetBaseURL(char * *aBaseURL); \
63 : nsresult GetDataSource(nsIRDFDataSource * *aDataSource); \
64 : nsresult GetEncoding(char * *aEncoding); \
65 : nsresult SetEncoding(const char * aEncoding);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSIHTTPINDEX(_to) \
69 : NS_IMETHOD GetBaseURL(char * *aBaseURL) override { return _to GetBaseURL(aBaseURL); } \
70 : NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) override { return _to GetDataSource(aDataSource); } \
71 : NS_IMETHOD GetEncoding(char * *aEncoding) override { return _to GetEncoding(aEncoding); } \
72 : NS_IMETHOD SetEncoding(const char * aEncoding) override { return _to SetEncoding(aEncoding); }
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
75 : #define NS_FORWARD_SAFE_NSIHTTPINDEX(_to) \
76 : NS_IMETHOD GetBaseURL(char * *aBaseURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseURL(aBaseURL); } \
77 : NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSource(aDataSource); } \
78 : NS_IMETHOD GetEncoding(char * *aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
79 : NS_IMETHOD SetEncoding(const char * aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); }
80 :
81 : #if 0
82 : /* Use the code below as a template for the implementation class for this interface. */
83 :
84 : /* Header file */
85 : class nsHTTPIndex : public nsIHTTPIndex
86 : {
87 : public:
88 : NS_DECL_ISUPPORTS
89 : NS_DECL_NSIHTTPINDEX
90 :
91 : nsHTTPIndex();
92 :
93 : private:
94 : ~nsHTTPIndex();
95 :
96 : protected:
97 : /* additional members */
98 : };
99 :
100 : /* Implementation file */
101 : NS_IMPL_ISUPPORTS(nsHTTPIndex, nsIHTTPIndex)
102 :
103 : nsHTTPIndex::nsHTTPIndex()
104 : {
105 : /* member initializers and constructor code */
106 : }
107 :
108 : nsHTTPIndex::~nsHTTPIndex()
109 : {
110 : /* destructor code */
111 : }
112 :
113 : /* readonly attribute string BaseURL; */
114 : NS_IMETHODIMP nsHTTPIndex::GetBaseURL(char * *aBaseURL)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* readonly attribute nsIRDFDataSource DataSource; */
120 : NS_IMETHODIMP nsHTTPIndex::GetDataSource(nsIRDFDataSource * *aDataSource)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* attribute string encoding; */
126 : NS_IMETHODIMP nsHTTPIndex::GetEncoding(char * *aEncoding)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 : NS_IMETHODIMP nsHTTPIndex::SetEncoding(const char * aEncoding)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : // {{2587e382-1324-11d4-a652-eadbb2be3484}
140 : #define NS_HTTPINDEX_SERVICE_CID \
141 : { 0x2587e382, 0x1324, 0x11d4, { 0xa6, 0x52, 0xea, 0xdb, 0xb2, 0xbe, 0x34, 0x84 } }
142 : #define NS_HTTPINDEX_SERVICE_CONTRACTID \
143 : "@mozilla.org/browser/httpindex-service;1"
144 : #define NS_HTTPINDEX_DATASOURCE_CONTRACTID \
145 : "@mozilla.org/rdf/datasource;1?name=httpindex"
146 :
147 : #endif /* __gen_nsIHTTPIndex_h__ */
|