Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAutoCompleteSearch.idl
3 : */
4 :
5 : #ifndef __gen_nsIAutoCompleteSearch_h__
6 : #define __gen_nsIAutoCompleteSearch_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 nsIAutoCompleteResult; /* forward declaration */
18 :
19 : class nsIAutoCompleteObserver; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIAutoCompleteSearch */
23 : #define NS_IAUTOCOMPLETESEARCH_IID_STR "de8db85f-c1de-4d87-94ba-7844890f91fe"
24 :
25 : #define NS_IAUTOCOMPLETESEARCH_IID \
26 : {0xde8db85f, 0xc1de, 0x4d87, \
27 : { 0x94, 0xba, 0x78, 0x44, 0x89, 0x0f, 0x91, 0xfe }}
28 :
29 3 : class NS_NO_VTABLE nsIAutoCompleteSearch : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCH_IID)
33 :
34 : /* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
35 : NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) = 0;
36 :
37 : /* void stopSearch (); */
38 : NS_IMETHOD StopSearch(void) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSearch, NS_IAUTOCOMPLETESEARCH_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIAUTOCOMPLETESEARCH \
46 : NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) override; \
47 : NS_IMETHOD StopSearch(void) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETESEARCH \
52 : nsresult StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener); \
53 : nsresult StopSearch(void);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIAUTOCOMPLETESEARCH(_to) \
57 : NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) override { return _to StartSearch(searchString, searchParam, previousResult, listener); } \
58 : NS_IMETHOD StopSearch(void) override { return _to StopSearch(); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCH(_to) \
62 : NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString, searchParam, previousResult, listener); } \
63 : NS_IMETHOD StopSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopSearch(); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsAutoCompleteSearch : public nsIAutoCompleteSearch
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSIAUTOCOMPLETESEARCH
74 :
75 : nsAutoCompleteSearch();
76 :
77 : private:
78 : ~nsAutoCompleteSearch();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS(nsAutoCompleteSearch, nsIAutoCompleteSearch)
86 :
87 : nsAutoCompleteSearch::nsAutoCompleteSearch()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsAutoCompleteSearch::~nsAutoCompleteSearch()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
98 : NS_IMETHODIMP nsAutoCompleteSearch::StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* void stopSearch (); */
104 : NS_IMETHODIMP nsAutoCompleteSearch::StopSearch()
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 :
113 : /* starting interface: nsIAutoCompleteObserver */
114 : #define NS_IAUTOCOMPLETEOBSERVER_IID_STR "8bd1dbbc-dcce-4007-9afa-b551eb687b61"
115 :
116 : #define NS_IAUTOCOMPLETEOBSERVER_IID \
117 : {0x8bd1dbbc, 0xdcce, 0x4007, \
118 : { 0x9a, 0xfa, 0xb5, 0x51, 0xeb, 0x68, 0x7b, 0x61 }}
119 :
120 3 : class NS_NO_VTABLE nsIAutoCompleteObserver : public nsISupports {
121 : public:
122 :
123 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETEOBSERVER_IID)
124 :
125 : /* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
126 : NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
127 :
128 : /* void onUpdateSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
129 : NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
130 :
131 : };
132 :
133 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteObserver, NS_IAUTOCOMPLETEOBSERVER_IID)
134 :
135 : /* Use this macro when declaring classes that implement this interface. */
136 : #define NS_DECL_NSIAUTOCOMPLETEOBSERVER \
137 : NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override; \
138 : NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override;
139 :
140 : /* Use this macro when declaring the members of this interface when the
141 : class doesn't implement the interface. This is useful for forwarding. */
142 : #define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETEOBSERVER \
143 : nsresult OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result); \
144 : nsresult OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result);
145 :
146 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
147 : #define NS_FORWARD_NSIAUTOCOMPLETEOBSERVER(_to) \
148 : NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return _to OnSearchResult(search, result); } \
149 : NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return _to OnUpdateSearchResult(search, result); }
150 :
151 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
152 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETEOBSERVER(_to) \
153 : NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchResult(search, result); } \
154 : NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUpdateSearchResult(search, result); }
155 :
156 : #if 0
157 : /* Use the code below as a template for the implementation class for this interface. */
158 :
159 : /* Header file */
160 : class nsAutoCompleteObserver : public nsIAutoCompleteObserver
161 : {
162 : public:
163 : NS_DECL_ISUPPORTS
164 : NS_DECL_NSIAUTOCOMPLETEOBSERVER
165 :
166 : nsAutoCompleteObserver();
167 :
168 : private:
169 : ~nsAutoCompleteObserver();
170 :
171 : protected:
172 : /* additional members */
173 : };
174 :
175 : /* Implementation file */
176 : NS_IMPL_ISUPPORTS(nsAutoCompleteObserver, nsIAutoCompleteObserver)
177 :
178 : nsAutoCompleteObserver::nsAutoCompleteObserver()
179 : {
180 : /* member initializers and constructor code */
181 : }
182 :
183 : nsAutoCompleteObserver::~nsAutoCompleteObserver()
184 : {
185 : /* destructor code */
186 : }
187 :
188 : /* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
189 : NS_IMETHODIMP nsAutoCompleteObserver::OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* void onUpdateSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
195 : NS_IMETHODIMP nsAutoCompleteObserver::OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
196 : {
197 : return NS_ERROR_NOT_IMPLEMENTED;
198 : }
199 :
200 : /* End of implementation class template. */
201 : #endif
202 :
203 :
204 : /* starting interface: nsIAutoCompleteSearchDescriptor */
205 : #define NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID_STR "4c3e7462-fbfb-4310-8f4b-239238392b75"
206 :
207 : #define NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID \
208 : {0x4c3e7462, 0xfbfb, 0x4310, \
209 : { 0x8f, 0x4b, 0x23, 0x92, 0x38, 0x39, 0x2b, 0x75 }}
210 :
211 : class NS_NO_VTABLE nsIAutoCompleteSearchDescriptor : public nsISupports {
212 : public:
213 :
214 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID)
215 :
216 : enum {
217 : SEARCH_TYPE_DELAYED = 0U,
218 : SEARCH_TYPE_IMMEDIATE = 1U
219 : };
220 :
221 : /* readonly attribute unsigned short searchType; */
222 : NS_IMETHOD GetSearchType(uint16_t *aSearchType) = 0;
223 :
224 : /* readonly attribute boolean clearingAutoFillSearchesAgain; */
225 : NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) = 0;
226 :
227 : };
228 :
229 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSearchDescriptor, NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID)
230 :
231 : /* Use this macro when declaring classes that implement this interface. */
232 : #define NS_DECL_NSIAUTOCOMPLETESEARCHDESCRIPTOR \
233 : NS_IMETHOD GetSearchType(uint16_t *aSearchType) override; \
234 : NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) override;
235 :
236 : /* Use this macro when declaring the members of this interface when the
237 : class doesn't implement the interface. This is useful for forwarding. */
238 : #define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETESEARCHDESCRIPTOR \
239 : nsresult GetSearchType(uint16_t *aSearchType); \
240 : nsresult GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain);
241 :
242 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
243 : #define NS_FORWARD_NSIAUTOCOMPLETESEARCHDESCRIPTOR(_to) \
244 : NS_IMETHOD GetSearchType(uint16_t *aSearchType) override { return _to GetSearchType(aSearchType); } \
245 : NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) override { return _to GetClearingAutoFillSearchesAgain(aClearingAutoFillSearchesAgain); }
246 :
247 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
248 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCHDESCRIPTOR(_to) \
249 : NS_IMETHOD GetSearchType(uint16_t *aSearchType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchType(aSearchType); } \
250 : NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClearingAutoFillSearchesAgain(aClearingAutoFillSearchesAgain); }
251 :
252 : #if 0
253 : /* Use the code below as a template for the implementation class for this interface. */
254 :
255 : /* Header file */
256 : class nsAutoCompleteSearchDescriptor : public nsIAutoCompleteSearchDescriptor
257 : {
258 : public:
259 : NS_DECL_ISUPPORTS
260 : NS_DECL_NSIAUTOCOMPLETESEARCHDESCRIPTOR
261 :
262 : nsAutoCompleteSearchDescriptor();
263 :
264 : private:
265 : ~nsAutoCompleteSearchDescriptor();
266 :
267 : protected:
268 : /* additional members */
269 : };
270 :
271 : /* Implementation file */
272 : NS_IMPL_ISUPPORTS(nsAutoCompleteSearchDescriptor, nsIAutoCompleteSearchDescriptor)
273 :
274 : nsAutoCompleteSearchDescriptor::nsAutoCompleteSearchDescriptor()
275 : {
276 : /* member initializers and constructor code */
277 : }
278 :
279 : nsAutoCompleteSearchDescriptor::~nsAutoCompleteSearchDescriptor()
280 : {
281 : /* destructor code */
282 : }
283 :
284 : /* readonly attribute unsigned short searchType; */
285 : NS_IMETHODIMP nsAutoCompleteSearchDescriptor::GetSearchType(uint16_t *aSearchType)
286 : {
287 : return NS_ERROR_NOT_IMPLEMENTED;
288 : }
289 :
290 : /* readonly attribute boolean clearingAutoFillSearchesAgain; */
291 : NS_IMETHODIMP nsAutoCompleteSearchDescriptor::GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain)
292 : {
293 : return NS_ERROR_NOT_IMPLEMENTED;
294 : }
295 :
296 : /* End of implementation class template. */
297 : #endif
298 :
299 :
300 : #endif /* __gen_nsIAutoCompleteSearch_h__ */
|