1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/autocomplete/nsIAutoCompleteSimpleResult.idl
3 : */
4 :
5 : #ifndef __gen_nsIAutoCompleteSimpleResult_h__
6 : #define __gen_nsIAutoCompleteSimpleResult_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIAutoCompleteResult_h__
14 : #include "nsIAutoCompleteResult.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsIAutoCompleteSimpleResultListener; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIAutoCompleteSimpleResult */
25 : #define NS_IAUTOCOMPLETESIMPLERESULT_IID_STR "c738dc26-aa71-4561-a3fd-b5a0e4aa80d2"
26 :
27 : #define NS_IAUTOCOMPLETESIMPLERESULT_IID \
28 : {0xc738dc26, 0xaa71, 0x4561, \
29 : { 0xa3, 0xfd, 0xb5, 0xa0, 0xe4, 0xaa, 0x80, 0xd2 }}
30 :
31 218 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteSimpleResult : public nsIAutoCompleteResult {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESIMPLERESULT_IID)
35 :
36 : /* void setSearchString (in AString aSearchString); */
37 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString) = 0;
38 :
39 : /* void setErrorDescription (in AString aErrorDescription); */
40 : NS_SCRIPTABLE NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) = 0;
41 :
42 : /* void setDefaultIndex (in long aDefaultIndex); */
43 : NS_SCRIPTABLE NS_IMETHOD SetDefaultIndex(PRInt32 aDefaultIndex) = 0;
44 :
45 : /* void setSearchResult (in unsigned short aSearchResult); */
46 : NS_SCRIPTABLE NS_IMETHOD SetSearchResult(PRUint16 aSearchResult) = 0;
47 :
48 : /* void setTypeAheadResult (in boolean aHidden); */
49 : NS_SCRIPTABLE NS_IMETHOD SetTypeAheadResult(bool aHidden) = 0;
50 :
51 : /* void appendMatch (in AString aValue, in AString aComment, [optional] in AString aImage, [optional] in AString aStyle); */
52 : NS_SCRIPTABLE NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle) = 0;
53 :
54 : /* void setListener (in nsIAutoCompleteSimpleResultListener aListener); */
55 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) = 0;
56 :
57 : };
58 :
59 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSimpleResult, NS_IAUTOCOMPLETESIMPLERESULT_IID)
60 :
61 : /* Use this macro when declaring classes that implement this interface. */
62 : #define NS_DECL_NSIAUTOCOMPLETESIMPLERESULT \
63 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString); \
64 : NS_SCRIPTABLE NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription); \
65 : NS_SCRIPTABLE NS_IMETHOD SetDefaultIndex(PRInt32 aDefaultIndex); \
66 : NS_SCRIPTABLE NS_IMETHOD SetSearchResult(PRUint16 aSearchResult); \
67 : NS_SCRIPTABLE NS_IMETHOD SetTypeAheadResult(bool aHidden); \
68 : NS_SCRIPTABLE NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle); \
69 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSIAUTOCOMPLETESIMPLERESULT(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString) { return _to SetSearchString(aSearchString); } \
74 : NS_SCRIPTABLE NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) { return _to SetErrorDescription(aErrorDescription); } \
75 : NS_SCRIPTABLE NS_IMETHOD SetDefaultIndex(PRInt32 aDefaultIndex) { return _to SetDefaultIndex(aDefaultIndex); } \
76 : NS_SCRIPTABLE NS_IMETHOD SetSearchResult(PRUint16 aSearchResult) { return _to SetSearchResult(aSearchResult); } \
77 : NS_SCRIPTABLE NS_IMETHOD SetTypeAheadResult(bool aHidden) { return _to SetTypeAheadResult(aHidden); } \
78 : NS_SCRIPTABLE NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle) { return _to AppendMatch(aValue, aComment, aImage, aStyle); } \
79 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) { return _to SetListener(aListener); }
80 :
81 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
82 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESIMPLERESULT(_to) \
83 : NS_SCRIPTABLE NS_IMETHOD SetSearchString(const nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); } \
84 : NS_SCRIPTABLE NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorDescription(aErrorDescription); } \
85 : NS_SCRIPTABLE NS_IMETHOD SetDefaultIndex(PRInt32 aDefaultIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultIndex(aDefaultIndex); } \
86 : NS_SCRIPTABLE NS_IMETHOD SetSearchResult(PRUint16 aSearchResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchResult(aSearchResult); } \
87 : NS_SCRIPTABLE NS_IMETHOD SetTypeAheadResult(bool aHidden) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTypeAheadResult(aHidden); } \
88 : NS_SCRIPTABLE NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMatch(aValue, aComment, aImage, aStyle); } \
89 : NS_SCRIPTABLE NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); }
90 :
91 : #if 0
92 : /* Use the code below as a template for the implementation class for this interface. */
93 :
94 : /* Header file */
95 : class nsAutoCompleteSimpleResult : public nsIAutoCompleteSimpleResult
96 : {
97 : public:
98 : NS_DECL_ISUPPORTS
99 : NS_DECL_NSIAUTOCOMPLETESIMPLERESULT
100 :
101 : nsAutoCompleteSimpleResult();
102 :
103 : private:
104 : ~nsAutoCompleteSimpleResult();
105 :
106 : protected:
107 : /* additional members */
108 : };
109 :
110 : /* Implementation file */
111 : NS_IMPL_ISUPPORTS1(nsAutoCompleteSimpleResult, nsIAutoCompleteSimpleResult)
112 :
113 : nsAutoCompleteSimpleResult::nsAutoCompleteSimpleResult()
114 : {
115 : /* member initializers and constructor code */
116 : }
117 :
118 : nsAutoCompleteSimpleResult::~nsAutoCompleteSimpleResult()
119 : {
120 : /* destructor code */
121 : }
122 :
123 : /* void setSearchString (in AString aSearchString); */
124 : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetSearchString(const nsAString & aSearchString)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* void setErrorDescription (in AString aErrorDescription); */
130 : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetErrorDescription(const nsAString & aErrorDescription)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* void setDefaultIndex (in long aDefaultIndex); */
136 : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetDefaultIndex(PRInt32 aDefaultIndex)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void setSearchResult (in unsigned short aSearchResult); */
142 : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetSearchResult(PRUint16 aSearchResult)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void setTypeAheadResult (in boolean aHidden); */
148 : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetTypeAheadResult(bool aHidden)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* void appendMatch (in AString aValue, in AString aComment, [optional] in AString aImage, [optional] in AString aStyle); */
154 : NS_IMETHODIMP nsAutoCompleteSimpleResult::AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* void setListener (in nsIAutoCompleteSimpleResultListener aListener); */
160 : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetListener(nsIAutoCompleteSimpleResultListener *aListener)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* End of implementation class template. */
166 : #endif
167 :
168 :
169 : /* starting interface: nsIAutoCompleteSimpleResultListener */
170 : #define NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID_STR "004efdc5-1989-4874-8a7a-345bf2fa33af"
171 :
172 : #define NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID \
173 : {0x004efdc5, 0x1989, 0x4874, \
174 : { 0x8a, 0x7a, 0x34, 0x5b, 0xf2, 0xfa, 0x33, 0xaf }}
175 :
176 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteSimpleResultListener : public nsISupports {
177 : public:
178 :
179 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID)
180 :
181 : /* void onValueRemoved (in nsIAutoCompleteSimpleResult aResult, in AString aValue, in boolean aRemoveFromDb); */
182 : NS_SCRIPTABLE NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) = 0;
183 :
184 : };
185 :
186 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSimpleResultListener, NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID)
187 :
188 : /* Use this macro when declaring classes that implement this interface. */
189 : #define NS_DECL_NSIAUTOCOMPLETESIMPLERESULTLISTENER \
190 : NS_SCRIPTABLE NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb);
191 :
192 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
193 : #define NS_FORWARD_NSIAUTOCOMPLETESIMPLERESULTLISTENER(_to) \
194 : NS_SCRIPTABLE NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) { return _to OnValueRemoved(aResult, aValue, aRemoveFromDb); }
195 :
196 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
197 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESIMPLERESULTLISTENER(_to) \
198 : NS_SCRIPTABLE NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnValueRemoved(aResult, aValue, aRemoveFromDb); }
199 :
200 : #if 0
201 : /* Use the code below as a template for the implementation class for this interface. */
202 :
203 : /* Header file */
204 : class nsAutoCompleteSimpleResultListener : public nsIAutoCompleteSimpleResultListener
205 : {
206 : public:
207 : NS_DECL_ISUPPORTS
208 : NS_DECL_NSIAUTOCOMPLETESIMPLERESULTLISTENER
209 :
210 : nsAutoCompleteSimpleResultListener();
211 :
212 : private:
213 : ~nsAutoCompleteSimpleResultListener();
214 :
215 : protected:
216 : /* additional members */
217 : };
218 :
219 : /* Implementation file */
220 : NS_IMPL_ISUPPORTS1(nsAutoCompleteSimpleResultListener, nsIAutoCompleteSimpleResultListener)
221 :
222 : nsAutoCompleteSimpleResultListener::nsAutoCompleteSimpleResultListener()
223 : {
224 : /* member initializers and constructor code */
225 : }
226 :
227 : nsAutoCompleteSimpleResultListener::~nsAutoCompleteSimpleResultListener()
228 : {
229 : /* destructor code */
230 : }
231 :
232 : /* void onValueRemoved (in nsIAutoCompleteSimpleResult aResult, in AString aValue, in boolean aRemoveFromDb); */
233 : NS_IMETHODIMP nsAutoCompleteSimpleResultListener::OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 :
238 : /* End of implementation class template. */
239 : #endif
240 :
241 :
242 : #endif /* __gen_nsIAutoCompleteSimpleResult_h__ */
|