1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/autocomplete/nsIAutoCompleteResult.idl
3 : */
4 :
5 : #ifndef __gen_nsIAutoCompleteResult_h__
6 : #define __gen_nsIAutoCompleteResult_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 :
18 : /* starting interface: nsIAutoCompleteResult */
19 : #define NS_IAUTOCOMPLETERESULT_IID_STR "7b43fad1-c735-4b45-9383-c3f057fed20d"
20 :
21 : #define NS_IAUTOCOMPLETERESULT_IID \
22 : {0x7b43fad1, 0xc735, 0x4b45, \
23 : { 0x93, 0x83, 0xc3, 0xf0, 0x57, 0xfe, 0xd2, 0x0d }}
24 :
25 218 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteResult : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETERESULT_IID)
29 :
30 : enum {
31 : RESULT_IGNORED = 1U,
32 : RESULT_FAILURE = 2U,
33 : RESULT_NOMATCH = 3U,
34 : RESULT_SUCCESS = 4U,
35 : RESULT_NOMATCH_ONGOING = 5U,
36 : RESULT_SUCCESS_ONGOING = 6U
37 : };
38 :
39 : /* readonly attribute AString searchString; */
40 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) = 0;
41 :
42 : /* readonly attribute unsigned short searchResult; */
43 : NS_SCRIPTABLE NS_IMETHOD GetSearchResult(PRUint16 *aSearchResult) = 0;
44 :
45 : /* readonly attribute long defaultIndex; */
46 : NS_SCRIPTABLE NS_IMETHOD GetDefaultIndex(PRInt32 *aDefaultIndex) = 0;
47 :
48 : /* readonly attribute AString errorDescription; */
49 : NS_SCRIPTABLE NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription) = 0;
50 :
51 : /* readonly attribute unsigned long matchCount; */
52 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) = 0;
53 :
54 : /* readonly attribute boolean typeAheadResult; */
55 : NS_SCRIPTABLE NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult) = 0;
56 :
57 : /* AString getValueAt (in long index); */
58 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
59 :
60 : /* AString getLabelAt (in long index); */
61 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
62 :
63 : /* AString getCommentAt (in long index); */
64 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
65 :
66 : /* AString getStyleAt (in long index); */
67 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
68 :
69 : /* AString getImageAt (in long index); */
70 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) = 0;
71 :
72 : /* void removeValueAt (in long rowIndex, in boolean removeFromDb); */
73 : NS_SCRIPTABLE NS_IMETHOD RemoveValueAt(PRInt32 rowIndex, bool removeFromDb) = 0;
74 :
75 : };
76 :
77 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteResult, NS_IAUTOCOMPLETERESULT_IID)
78 :
79 : /* Use this macro when declaring classes that implement this interface. */
80 : #define NS_DECL_NSIAUTOCOMPLETERESULT \
81 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString); \
82 : NS_SCRIPTABLE NS_IMETHOD GetSearchResult(PRUint16 *aSearchResult); \
83 : NS_SCRIPTABLE NS_IMETHOD GetDefaultIndex(PRInt32 *aDefaultIndex); \
84 : NS_SCRIPTABLE NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription); \
85 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount); \
86 : NS_SCRIPTABLE NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult); \
87 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
88 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
89 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
90 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
91 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM); \
92 : NS_SCRIPTABLE NS_IMETHOD RemoveValueAt(PRInt32 rowIndex, bool removeFromDb);
93 :
94 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
95 : #define NS_FORWARD_NSIAUTOCOMPLETERESULT(_to) \
96 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) { return _to GetSearchString(aSearchString); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetSearchResult(PRUint16 *aSearchResult) { return _to GetSearchResult(aSearchResult); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetDefaultIndex(PRInt32 *aDefaultIndex) { return _to GetDefaultIndex(aDefaultIndex); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription) { return _to GetErrorDescription(aErrorDescription); } \
100 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) { return _to GetMatchCount(aMatchCount); } \
101 : NS_SCRIPTABLE NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult) { return _to GetTypeAheadResult(aTypeAheadResult); } \
102 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetValueAt(index, _retval); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetLabelAt(index, _retval); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetCommentAt(index, _retval); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetStyleAt(index, _retval); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return _to GetImageAt(index, _retval); } \
107 : NS_SCRIPTABLE NS_IMETHOD RemoveValueAt(PRInt32 rowIndex, bool removeFromDb) { return _to RemoveValueAt(rowIndex, removeFromDb); }
108 :
109 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
110 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETERESULT(_to) \
111 : NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetSearchResult(PRUint16 *aSearchResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchResult(aSearchResult); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetDefaultIndex(PRInt32 *aDefaultIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultIndex(aDefaultIndex); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorDescription(aErrorDescription); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCount(aMatchCount); } \
116 : NS_SCRIPTABLE NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeAheadResult(aTypeAheadResult); } \
117 : NS_SCRIPTABLE NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueAt(index, _retval); } \
118 : NS_SCRIPTABLE NS_IMETHOD GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabelAt(index, _retval); } \
119 : NS_SCRIPTABLE NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommentAt(index, _retval); } \
120 : NS_SCRIPTABLE NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleAt(index, _retval); } \
121 : NS_SCRIPTABLE NS_IMETHOD GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageAt(index, _retval); } \
122 : NS_SCRIPTABLE NS_IMETHOD RemoveValueAt(PRInt32 rowIndex, bool removeFromDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveValueAt(rowIndex, removeFromDb); }
123 :
124 : #if 0
125 : /* Use the code below as a template for the implementation class for this interface. */
126 :
127 : /* Header file */
128 : class nsAutoCompleteResult : public nsIAutoCompleteResult
129 : {
130 : public:
131 : NS_DECL_ISUPPORTS
132 : NS_DECL_NSIAUTOCOMPLETERESULT
133 :
134 : nsAutoCompleteResult();
135 :
136 : private:
137 : ~nsAutoCompleteResult();
138 :
139 : protected:
140 : /* additional members */
141 : };
142 :
143 : /* Implementation file */
144 : NS_IMPL_ISUPPORTS1(nsAutoCompleteResult, nsIAutoCompleteResult)
145 :
146 : nsAutoCompleteResult::nsAutoCompleteResult()
147 : {
148 : /* member initializers and constructor code */
149 : }
150 :
151 : nsAutoCompleteResult::~nsAutoCompleteResult()
152 : {
153 : /* destructor code */
154 : }
155 :
156 : /* readonly attribute AString searchString; */
157 : NS_IMETHODIMP nsAutoCompleteResult::GetSearchString(nsAString & aSearchString)
158 : {
159 : return NS_ERROR_NOT_IMPLEMENTED;
160 : }
161 :
162 : /* readonly attribute unsigned short searchResult; */
163 : NS_IMETHODIMP nsAutoCompleteResult::GetSearchResult(PRUint16 *aSearchResult)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* readonly attribute long defaultIndex; */
169 : NS_IMETHODIMP nsAutoCompleteResult::GetDefaultIndex(PRInt32 *aDefaultIndex)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 :
174 : /* readonly attribute AString errorDescription; */
175 : NS_IMETHODIMP nsAutoCompleteResult::GetErrorDescription(nsAString & aErrorDescription)
176 : {
177 : return NS_ERROR_NOT_IMPLEMENTED;
178 : }
179 :
180 : /* readonly attribute unsigned long matchCount; */
181 : NS_IMETHODIMP nsAutoCompleteResult::GetMatchCount(PRUint32 *aMatchCount)
182 : {
183 : return NS_ERROR_NOT_IMPLEMENTED;
184 : }
185 :
186 : /* readonly attribute boolean typeAheadResult; */
187 : NS_IMETHODIMP nsAutoCompleteResult::GetTypeAheadResult(bool *aTypeAheadResult)
188 : {
189 : return NS_ERROR_NOT_IMPLEMENTED;
190 : }
191 :
192 : /* AString getValueAt (in long index); */
193 : NS_IMETHODIMP nsAutoCompleteResult::GetValueAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 :
198 : /* AString getLabelAt (in long index); */
199 : NS_IMETHODIMP nsAutoCompleteResult::GetLabelAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
200 : {
201 : return NS_ERROR_NOT_IMPLEMENTED;
202 : }
203 :
204 : /* AString getCommentAt (in long index); */
205 : NS_IMETHODIMP nsAutoCompleteResult::GetCommentAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* AString getStyleAt (in long index); */
211 : NS_IMETHODIMP nsAutoCompleteResult::GetStyleAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* AString getImageAt (in long index); */
217 : NS_IMETHODIMP nsAutoCompleteResult::GetImageAt(PRInt32 index, nsAString & _retval NS_OUTPARAM)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* void removeValueAt (in long rowIndex, in boolean removeFromDb); */
223 : NS_IMETHODIMP nsAutoCompleteResult::RemoveValueAt(PRInt32 rowIndex, bool removeFromDb)
224 : {
225 : return NS_ERROR_NOT_IMPLEMENTED;
226 : }
227 :
228 : /* End of implementation class template. */
229 : #endif
230 :
231 :
232 : #endif /* __gen_nsIAutoCompleteResult_h__ */
|