1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/autocomplete/nsIAutoCompleteController.idl
3 : */
4 :
5 : #ifndef __gen_nsIAutoCompleteController_h__
6 : #define __gen_nsIAutoCompleteController_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 nsIAutoCompleteInput; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIAutoCompleteController */
21 : #define NS_IAUTOCOMPLETECONTROLLER_IID_STR "dd2c4489-e4bd-4702-86bc-e1691744e556"
22 :
23 : #define NS_IAUTOCOMPLETECONTROLLER_IID \
24 : {0xdd2c4489, 0xe4bd, 0x4702, \
25 : { 0x86, 0xbc, 0xe1, 0x69, 0x17, 0x44, 0xe5, 0x56 }}
26 :
27 41 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteController : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETECONTROLLER_IID)
31 :
32 : enum {
33 : STATUS_NONE = 1U,
34 : STATUS_SEARCHING = 2U,
35 : STATUS_COMPLETE_NO_MATCH = 3U,
36 : STATUS_COMPLETE_MATCH = 4U
37 : };
38 :
39 : /* attribute nsIAutoCompleteInput input; */
40 : NS_SCRIPTABLE NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput) = 0;
41 : NS_SCRIPTABLE NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) = 0;
42 :
43 : /* readonly attribute unsigned short searchStatus; */
44 : NS_SCRIPTABLE NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus) = 0;
45 :
46 : /* readonly attribute unsigned long matchCount; */
47 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) = 0;
48 :
49 : /* void startSearch (in AString searchString); */
50 : NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString) = 0;
51 :
52 : /* void stopSearch (); */
53 : NS_SCRIPTABLE NS_IMETHOD StopSearch(void) = 0;
54 :
55 : /* void handleText (); */
56 : NS_SCRIPTABLE NS_IMETHOD HandleText(void) = 0;
57 :
58 : /* boolean handleEnter (in boolean aIsPopupSelection); */
59 : NS_SCRIPTABLE NS_IMETHOD HandleEnter(bool aIsPopupSelection, bool *_retval NS_OUTPARAM) = 0;
60 :
61 : /* boolean handleEscape (); */
62 : NS_SCRIPTABLE NS_IMETHOD HandleEscape(bool *_retval NS_OUTPARAM) = 0;
63 :
64 : /* void handleStartComposition (); */
65 : NS_SCRIPTABLE NS_IMETHOD HandleStartComposition(void) = 0;
66 :
67 : /* void handleEndComposition (); */
68 : NS_SCRIPTABLE NS_IMETHOD HandleEndComposition(void) = 0;
69 :
70 : /* void handleTab (); */
71 : NS_SCRIPTABLE NS_IMETHOD HandleTab(void) = 0;
72 :
73 : /* boolean handleKeyNavigation (in unsigned long key); */
74 : NS_SCRIPTABLE NS_IMETHOD HandleKeyNavigation(PRUint32 key, bool *_retval NS_OUTPARAM) = 0;
75 :
76 : /* boolean handleDelete (); */
77 : NS_SCRIPTABLE NS_IMETHOD HandleDelete(bool *_retval NS_OUTPARAM) = 0;
78 :
79 : /* AString getValueAt (in long index); */
80 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
81 :
82 : /* AString getLabelAt (in long index); */
83 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
84 :
85 : /* AString getCommentAt (in long index); */
86 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
87 :
88 : /* AString getStyleAt (in long index); */
89 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
90 :
91 : /* AString getImageAt (in long index); */
92 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
93 :
94 : /* attribute AString searchString; */
95 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) = 0;
96 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString) = 0;
97 :
98 : };
99 :
100 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteController, NS_IAUTOCOMPLETECONTROLLER_IID)
101 :
102 : /* Use this macro when declaring classes that implement this interface. */
103 : #define NS_DECL_NSIAUTOCOMPLETECONTROLLER \
104 : NS_SCRIPTABLE NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput); \
105 : NS_SCRIPTABLE NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput); \
106 : NS_SCRIPTABLE NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus); \
107 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount); \
108 : NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString); \
109 : NS_SCRIPTABLE NS_IMETHOD StopSearch(void); \
110 : NS_SCRIPTABLE NS_IMETHOD HandleText(void); \
111 : NS_SCRIPTABLE NS_IMETHOD HandleEnter(bool aIsPopupSelection, bool *_retval NS_OUTPARAM); \
112 : NS_SCRIPTABLE NS_IMETHOD HandleEscape(bool *_retval NS_OUTPARAM); \
113 : NS_SCRIPTABLE NS_IMETHOD HandleStartComposition(void); \
114 : NS_SCRIPTABLE NS_IMETHOD HandleEndComposition(void); \
115 : NS_SCRIPTABLE NS_IMETHOD HandleTab(void); \
116 : NS_SCRIPTABLE NS_IMETHOD HandleKeyNavigation(PRUint32 key, bool *_retval NS_OUTPARAM); \
117 : NS_SCRIPTABLE NS_IMETHOD HandleDelete(bool *_retval NS_OUTPARAM); \
118 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
119 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
120 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
121 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
122 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
123 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString); \
124 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString);
125 :
126 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
127 : #define NS_FORWARD_NSIAUTOCOMPLETECONTROLLER(_to) \
128 : NS_SCRIPTABLE NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput) { return _to GetInput(aInput); } \
129 : NS_SCRIPTABLE NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) { return _to SetInput(aInput); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus) { return _to GetSearchStatus(aSearchStatus); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) { return _to GetMatchCount(aMatchCount); } \
132 : NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString) { return _to StartSearch(searchString); } \
133 : NS_SCRIPTABLE NS_IMETHOD StopSearch(void) { return _to StopSearch(); } \
134 : NS_SCRIPTABLE NS_IMETHOD HandleText(void) { return _to HandleText(); } \
135 : NS_SCRIPTABLE NS_IMETHOD HandleEnter(bool aIsPopupSelection, bool *_retval NS_OUTPARAM) { return _to HandleEnter(aIsPopupSelection, _retval); } \
136 : NS_SCRIPTABLE NS_IMETHOD HandleEscape(bool *_retval NS_OUTPARAM) { return _to HandleEscape(_retval); } \
137 : NS_SCRIPTABLE NS_IMETHOD HandleStartComposition(void) { return _to HandleStartComposition(); } \
138 : NS_SCRIPTABLE NS_IMETHOD HandleEndComposition(void) { return _to HandleEndComposition(); } \
139 : NS_SCRIPTABLE NS_IMETHOD HandleTab(void) { return _to HandleTab(); } \
140 : NS_SCRIPTABLE NS_IMETHOD HandleKeyNavigation(PRUint32 key, bool *_retval NS_OUTPARAM) { return _to HandleKeyNavigation(key, _retval); } \
141 : NS_SCRIPTABLE NS_IMETHOD HandleDelete(bool *_retval NS_OUTPARAM) { return _to HandleDelete(_retval); } \
142 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetValueAt(index, _retval); } \
143 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetLabelAt(index, _retval); } \
144 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetCommentAt(index, _retval); } \
145 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetStyleAt(index, _retval); } \
146 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetImageAt(index, _retval); } \
147 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) { return _to GetSearchString(aSearchString); } \
148 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString) { return _to SetSearchString(aSearchString); }
149 :
150 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
151 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETECONTROLLER(_to) \
152 : NS_SCRIPTABLE NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInput(aInput); } \
153 : NS_SCRIPTABLE NS_IMETHOD SetInput(nsIAutoCompleteInput *aInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInput(aInput); } \
154 : NS_SCRIPTABLE NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchStatus(aSearchStatus); } \
155 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCount(aMatchCount); } \
156 : NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString); } \
157 : NS_SCRIPTABLE NS_IMETHOD StopSearch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopSearch(); } \
158 : NS_SCRIPTABLE NS_IMETHOD HandleText(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleText(); } \
159 : NS_SCRIPTABLE NS_IMETHOD HandleEnter(bool aIsPopupSelection, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEnter(aIsPopupSelection, _retval); } \
160 : NS_SCRIPTABLE NS_IMETHOD HandleEscape(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEscape(_retval); } \
161 : NS_SCRIPTABLE NS_IMETHOD HandleStartComposition(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartComposition(); } \
162 : NS_SCRIPTABLE NS_IMETHOD HandleEndComposition(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEndComposition(); } \
163 : NS_SCRIPTABLE NS_IMETHOD HandleTab(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleTab(); } \
164 : NS_SCRIPTABLE NS_IMETHOD HandleKeyNavigation(PRUint32 key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleKeyNavigation(key, _retval); } \
165 : NS_SCRIPTABLE NS_IMETHOD HandleDelete(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleDelete(_retval); } \
166 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueAt(index, _retval); } \
167 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabelAt(index, _retval); } \
168 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommentAt(index, _retval); } \
169 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleAt(index, _retval); } \
170 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageAt(index, _retval); } \
171 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
172 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); }
173 :
174 : #if 0
175 : /* Use the code below as a template for the implementation class for this interface. */
176 :
177 : /* Header file */
178 : class nsAutoCompleteController : public nsIAutoCompleteController
179 : {
180 : public:
181 : NS_DECL_ISUPPORTS
182 : NS_DECL_NSIAUTOCOMPLETECONTROLLER
183 :
184 : nsAutoCompleteController();
185 :
186 : private:
187 : ~nsAutoCompleteController();
188 :
189 : protected:
190 : /* additional members */
191 : };
192 :
193 : /* Implementation file */
194 : NS_IMPL_ISUPPORTS1(nsAutoCompleteController, nsIAutoCompleteController)
195 :
196 : nsAutoCompleteController::nsAutoCompleteController()
197 : {
198 : /* member initializers and constructor code */
199 : }
200 :
201 : nsAutoCompleteController::~nsAutoCompleteController()
202 : {
203 : /* destructor code */
204 : }
205 :
206 : /* attribute nsIAutoCompleteInput input; */
207 : NS_IMETHODIMP nsAutoCompleteController::GetInput(nsIAutoCompleteInput * *aInput)
208 : {
209 : return NS_ERROR_NOT_IMPLEMENTED;
210 : }
211 : NS_IMETHODIMP nsAutoCompleteController::SetInput(nsIAutoCompleteInput *aInput)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* readonly attribute unsigned short searchStatus; */
217 : NS_IMETHODIMP nsAutoCompleteController::GetSearchStatus(PRUint16 *aSearchStatus)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* readonly attribute unsigned long matchCount; */
223 : NS_IMETHODIMP nsAutoCompleteController::GetMatchCount(PRUint32 *aMatchCount)
224 : {
225 : return NS_ERROR_NOT_IMPLEMENTED;
226 : }
227 :
228 : /* void startSearch (in AString searchString); */
229 : NS_IMETHODIMP nsAutoCompleteController::StartSearch(const nsAString & searchString)
230 : {
231 : return NS_ERROR_NOT_IMPLEMENTED;
232 : }
233 :
234 : /* void stopSearch (); */
235 : NS_IMETHODIMP nsAutoCompleteController::StopSearch()
236 : {
237 : return NS_ERROR_NOT_IMPLEMENTED;
238 : }
239 :
240 : /* void handleText (); */
241 : NS_IMETHODIMP nsAutoCompleteController::HandleText()
242 : {
243 : return NS_ERROR_NOT_IMPLEMENTED;
244 : }
245 :
246 : /* boolean handleEnter (in boolean aIsPopupSelection); */
247 : NS_IMETHODIMP nsAutoCompleteController::HandleEnter(bool aIsPopupSelection, bool *_retval NS_OUTPARAM)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 :
252 : /* boolean handleEscape (); */
253 : NS_IMETHODIMP nsAutoCompleteController::HandleEscape(bool *_retval NS_OUTPARAM)
254 : {
255 : return NS_ERROR_NOT_IMPLEMENTED;
256 : }
257 :
258 : /* void handleStartComposition (); */
259 : NS_IMETHODIMP nsAutoCompleteController::HandleStartComposition()
260 : {
261 : return NS_ERROR_NOT_IMPLEMENTED;
262 : }
263 :
264 : /* void handleEndComposition (); */
265 : NS_IMETHODIMP nsAutoCompleteController::HandleEndComposition()
266 : {
267 : return NS_ERROR_NOT_IMPLEMENTED;
268 : }
269 :
270 : /* void handleTab (); */
271 : NS_IMETHODIMP nsAutoCompleteController::HandleTab()
272 : {
273 : return NS_ERROR_NOT_IMPLEMENTED;
274 : }
275 :
276 : /* boolean handleKeyNavigation (in unsigned long key); */
277 : NS_IMETHODIMP nsAutoCompleteController::HandleKeyNavigation(PRUint32 key, bool *_retval NS_OUTPARAM)
278 : {
279 : return NS_ERROR_NOT_IMPLEMENTED;
280 : }
281 :
282 : /* boolean handleDelete (); */
283 : NS_IMETHODIMP nsAutoCompleteController::HandleDelete(bool *_retval NS_OUTPARAM)
284 : {
285 : return NS_ERROR_NOT_IMPLEMENTED;
286 : }
287 :
288 : /* AString getValueAt (in long index); */
289 : NS_IMETHODIMP nsAutoCompleteController::GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
290 : {
291 : return NS_ERROR_NOT_IMPLEMENTED;
292 : }
293 :
294 : /* AString getLabelAt (in long index); */
295 : NS_IMETHODIMP nsAutoCompleteController::GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
296 : {
297 : return NS_ERROR_NOT_IMPLEMENTED;
298 : }
299 :
300 : /* AString getCommentAt (in long index); */
301 : NS_IMETHODIMP nsAutoCompleteController::GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
302 : {
303 : return NS_ERROR_NOT_IMPLEMENTED;
304 : }
305 :
306 : /* AString getStyleAt (in long index); */
307 : NS_IMETHODIMP nsAutoCompleteController::GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
308 : {
309 : return NS_ERROR_NOT_IMPLEMENTED;
310 : }
311 :
312 : /* AString getImageAt (in long index); */
313 : NS_IMETHODIMP nsAutoCompleteController::GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
314 : {
315 : return NS_ERROR_NOT_IMPLEMENTED;
316 : }
317 :
318 : /* attribute AString searchString; */
319 : NS_IMETHODIMP nsAutoCompleteController::GetSearchString(nsAString & aSearchString)
320 : {
321 : return NS_ERROR_NOT_IMPLEMENTED;
322 : }
323 : NS_IMETHODIMP nsAutoCompleteController::SetSearchString(const nsAString & aSearchString)
324 : {
325 : return NS_ERROR_NOT_IMPLEMENTED;
326 : }
327 :
328 : /* End of implementation class template. */
329 : #endif
330 :
331 :
332 : #endif /* __gen_nsIAutoCompleteController_h__ */
|