Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFormAutoComplete.idl
3 : */
4 :
5 : #ifndef __gen_nsIFormAutoComplete_h__
6 : #define __gen_nsIFormAutoComplete_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 nsIFormAutoCompleteObserver; /* forward declaration */
20 :
21 : class nsIDOMHTMLInputElement; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIFormAutoComplete */
25 : #define NS_IFORMAUTOCOMPLETE_IID_STR "bfd9b82b-0ab3-4b6b-9e54-aa961ff4b732"
26 :
27 : #define NS_IFORMAUTOCOMPLETE_IID \
28 : {0xbfd9b82b, 0x0ab3, 0x4b6b, \
29 : { 0x9e, 0x54, 0xaa, 0x96, 0x1f, 0xf4, 0xb7, 0x32 }}
30 :
31 : class NS_NO_VTABLE nsIFormAutoComplete : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFORMAUTOCOMPLETE_IID)
35 :
36 : /* void autoCompleteSearchAsync (in AString aInputName, in AString aSearchString, in nsIDOMHTMLInputElement aField, in nsIAutoCompleteResult aPreviousResult, in nsIAutoCompleteResult aDatalistResult, in nsIFormAutoCompleteObserver aListener); */
37 : NS_IMETHOD AutoCompleteSearchAsync(const nsAString & aInputName, const nsAString & aSearchString, nsIDOMHTMLInputElement *aField, nsIAutoCompleteResult *aPreviousResult, nsIAutoCompleteResult *aDatalistResult, nsIFormAutoCompleteObserver *aListener) = 0;
38 :
39 : /* void stopAutoCompleteSearch (); */
40 : NS_IMETHOD StopAutoCompleteSearch(void) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFormAutoComplete, NS_IFORMAUTOCOMPLETE_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIFORMAUTOCOMPLETE \
48 : NS_IMETHOD AutoCompleteSearchAsync(const nsAString & aInputName, const nsAString & aSearchString, nsIDOMHTMLInputElement *aField, nsIAutoCompleteResult *aPreviousResult, nsIAutoCompleteResult *aDatalistResult, nsIFormAutoCompleteObserver *aListener) override; \
49 : NS_IMETHOD StopAutoCompleteSearch(void) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIFORMAUTOCOMPLETE \
54 : nsresult AutoCompleteSearchAsync(const nsAString & aInputName, const nsAString & aSearchString, nsIDOMHTMLInputElement *aField, nsIAutoCompleteResult *aPreviousResult, nsIAutoCompleteResult *aDatalistResult, nsIFormAutoCompleteObserver *aListener); \
55 : nsresult StopAutoCompleteSearch(void);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIFORMAUTOCOMPLETE(_to) \
59 : NS_IMETHOD AutoCompleteSearchAsync(const nsAString & aInputName, const nsAString & aSearchString, nsIDOMHTMLInputElement *aField, nsIAutoCompleteResult *aPreviousResult, nsIAutoCompleteResult *aDatalistResult, nsIFormAutoCompleteObserver *aListener) override { return _to AutoCompleteSearchAsync(aInputName, aSearchString, aField, aPreviousResult, aDatalistResult, aListener); } \
60 : NS_IMETHOD StopAutoCompleteSearch(void) override { return _to StopAutoCompleteSearch(); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIFORMAUTOCOMPLETE(_to) \
64 : NS_IMETHOD AutoCompleteSearchAsync(const nsAString & aInputName, const nsAString & aSearchString, nsIDOMHTMLInputElement *aField, nsIAutoCompleteResult *aPreviousResult, nsIAutoCompleteResult *aDatalistResult, nsIFormAutoCompleteObserver *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AutoCompleteSearchAsync(aInputName, aSearchString, aField, aPreviousResult, aDatalistResult, aListener); } \
65 : NS_IMETHOD StopAutoCompleteSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopAutoCompleteSearch(); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsFormAutoComplete : public nsIFormAutoComplete
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIFORMAUTOCOMPLETE
76 :
77 : nsFormAutoComplete();
78 :
79 : private:
80 : ~nsFormAutoComplete();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS(nsFormAutoComplete, nsIFormAutoComplete)
88 :
89 : nsFormAutoComplete::nsFormAutoComplete()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsFormAutoComplete::~nsFormAutoComplete()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* void autoCompleteSearchAsync (in AString aInputName, in AString aSearchString, in nsIDOMHTMLInputElement aField, in nsIAutoCompleteResult aPreviousResult, in nsIAutoCompleteResult aDatalistResult, in nsIFormAutoCompleteObserver aListener); */
100 : NS_IMETHODIMP nsFormAutoComplete::AutoCompleteSearchAsync(const nsAString & aInputName, const nsAString & aSearchString, nsIDOMHTMLInputElement *aField, nsIAutoCompleteResult *aPreviousResult, nsIAutoCompleteResult *aDatalistResult, nsIFormAutoCompleteObserver *aListener)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* void stopAutoCompleteSearch (); */
106 : NS_IMETHODIMP nsFormAutoComplete::StopAutoCompleteSearch()
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* End of implementation class template. */
112 : #endif
113 :
114 :
115 : /* starting interface: nsIFormAutoCompleteObserver */
116 : #define NS_IFORMAUTOCOMPLETEOBSERVER_IID_STR "604419ab-55a0-4831-9eca-1b9e67cc4751"
117 :
118 : #define NS_IFORMAUTOCOMPLETEOBSERVER_IID \
119 : {0x604419ab, 0x55a0, 0x4831, \
120 : { 0x9e, 0xca, 0x1b, 0x9e, 0x67, 0xcc, 0x47, 0x51 }}
121 :
122 3 : class NS_NO_VTABLE nsIFormAutoCompleteObserver : public nsISupports {
123 : public:
124 :
125 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFORMAUTOCOMPLETEOBSERVER_IID)
126 :
127 : /* void onSearchCompletion (in nsIAutoCompleteResult result); */
128 : NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) = 0;
129 :
130 : };
131 :
132 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFormAutoCompleteObserver, NS_IFORMAUTOCOMPLETEOBSERVER_IID)
133 :
134 : /* Use this macro when declaring classes that implement this interface. */
135 : #define NS_DECL_NSIFORMAUTOCOMPLETEOBSERVER \
136 : NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) override;
137 :
138 : /* Use this macro when declaring the members of this interface when the
139 : class doesn't implement the interface. This is useful for forwarding. */
140 : #define NS_DECL_NON_VIRTUAL_NSIFORMAUTOCOMPLETEOBSERVER \
141 : nsresult OnSearchCompletion(nsIAutoCompleteResult *result);
142 :
143 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
144 : #define NS_FORWARD_NSIFORMAUTOCOMPLETEOBSERVER(_to) \
145 : NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) override { return _to OnSearchCompletion(result); }
146 :
147 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
148 : #define NS_FORWARD_SAFE_NSIFORMAUTOCOMPLETEOBSERVER(_to) \
149 : NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchCompletion(result); }
150 :
151 : #if 0
152 : /* Use the code below as a template for the implementation class for this interface. */
153 :
154 : /* Header file */
155 : class nsFormAutoCompleteObserver : public nsIFormAutoCompleteObserver
156 : {
157 : public:
158 : NS_DECL_ISUPPORTS
159 : NS_DECL_NSIFORMAUTOCOMPLETEOBSERVER
160 :
161 : nsFormAutoCompleteObserver();
162 :
163 : private:
164 : ~nsFormAutoCompleteObserver();
165 :
166 : protected:
167 : /* additional members */
168 : };
169 :
170 : /* Implementation file */
171 : NS_IMPL_ISUPPORTS(nsFormAutoCompleteObserver, nsIFormAutoCompleteObserver)
172 :
173 : nsFormAutoCompleteObserver::nsFormAutoCompleteObserver()
174 : {
175 : /* member initializers and constructor code */
176 : }
177 :
178 : nsFormAutoCompleteObserver::~nsFormAutoCompleteObserver()
179 : {
180 : /* destructor code */
181 : }
182 :
183 : /* void onSearchCompletion (in nsIAutoCompleteResult result); */
184 : NS_IMETHODIMP nsFormAutoCompleteObserver::OnSearchCompletion(nsIAutoCompleteResult *result)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* End of implementation class template. */
190 : #endif
191 :
192 :
193 : #endif /* __gen_nsIFormAutoComplete_h__ */
|