Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISHistory.idl
3 : */
4 :
5 : #ifndef __gen_nsISHistory_h__
6 : #define __gen_nsISHistory_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 nsISHEntry; /* forward declaration */
18 :
19 : class nsISHistoryListener; /* forward declaration */
20 :
21 : class nsISimpleEnumerator; /* forward declaration */
22 :
23 : class nsIPartialSHistoryListener; /* forward declaration */
24 :
25 : #define NS_SHISTORY_CID \
26 : {0x7b807041, 0xe60a, 0x4384, {0x93, 0x5f, 0xaf, 0x30, 0x61, 0xd8, 0xb8, 0x15}}
27 : #define NS_SHISTORY_CONTRACTID "@mozilla.org/browser/shistory;1"
28 :
29 : /* starting interface: nsISHistory */
30 : #define NS_ISHISTORY_IID_STR "7b807041-e60a-4384-935f-af3061d8b815"
31 :
32 : #define NS_ISHISTORY_IID \
33 : {0x7b807041, 0xe60a, 0x4384, \
34 : { 0x93, 0x5f, 0xaf, 0x30, 0x61, 0xd8, 0xb8, 0x15 }}
35 :
36 2 : class NS_NO_VTABLE nsISHistory : public nsISupports {
37 : public:
38 :
39 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHISTORY_IID)
40 :
41 : enum {
42 : VIEWER_WINDOW = 3
43 : };
44 :
45 : /* readonly attribute bool isPartial; */
46 : NS_IMETHOD GetIsPartial(bool *aIsPartial) = 0;
47 :
48 : /* readonly attribute long count; */
49 : NS_IMETHOD GetCount(int32_t *aCount) = 0;
50 :
51 : /* readonly attribute long globalCount; */
52 : NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) = 0;
53 :
54 : /* readonly attribute long globalIndexOffset; */
55 : NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) = 0;
56 :
57 : /* readonly attribute long index; */
58 : NS_IMETHOD GetIndex(int32_t *aIndex) = 0;
59 :
60 : /* readonly attribute long globalIndex; */
61 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) = 0;
62 :
63 : /* readonly attribute long requestedIndex; */
64 : NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) = 0;
65 :
66 : /* attribute long maxLength; */
67 : NS_IMETHOD GetMaxLength(int32_t *aMaxLength) = 0;
68 : NS_IMETHOD SetMaxLength(int32_t aMaxLength) = 0;
69 :
70 : /* nsISHEntry getEntryAtIndex (in long index, in boolean modifyIndex); */
71 : NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) = 0;
72 :
73 : /* void restoreToEntryAtIndex (in long index); */
74 : NS_IMETHOD RestoreToEntryAtIndex(int32_t index) = 0;
75 :
76 : /* void PurgeHistory (in long numEntries); */
77 : NS_IMETHOD PurgeHistory(int32_t numEntries) = 0;
78 :
79 : /* void addSHistoryListener (in nsISHistoryListener aListener); */
80 : NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) = 0;
81 :
82 : /* void removeSHistoryListener (in nsISHistoryListener aListener); */
83 : NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) = 0;
84 :
85 : /* void setPartialSHistoryListener (in nsIPartialSHistoryListener aListener); */
86 : NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) = 0;
87 :
88 : /* readonly attribute nsISimpleEnumerator SHistoryEnumerator; */
89 : NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) = 0;
90 :
91 : /* void reloadCurrentEntry (); */
92 : NS_IMETHOD ReloadCurrentEntry(void) = 0;
93 :
94 : /* long getIndexOfEntry (in nsISHEntry aEntry); */
95 : NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) = 0;
96 :
97 : /* void onPartialSHistoryActive (in long globalLength, in long targetIndex); */
98 : NS_IMETHOD OnPartialSHistoryActive(int32_t globalLength, int32_t targetIndex) = 0;
99 :
100 : /* void onPartialSHistoryDeactive (); */
101 : NS_IMETHOD OnPartialSHistoryDeactive(void) = 0;
102 :
103 : /* void onAttachGroupedSHistory (in long offset); */
104 : NS_IMETHOD OnAttachGroupedSHistory(int32_t offset) = 0;
105 :
106 : };
107 :
108 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISHistory, NS_ISHISTORY_IID)
109 :
110 : /* Use this macro when declaring classes that implement this interface. */
111 : #define NS_DECL_NSISHISTORY \
112 : NS_IMETHOD GetIsPartial(bool *aIsPartial) override; \
113 : NS_IMETHOD GetCount(int32_t *aCount) override; \
114 : NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) override; \
115 : NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) override; \
116 : NS_IMETHOD GetIndex(int32_t *aIndex) override; \
117 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override; \
118 : NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) override; \
119 : NS_IMETHOD GetMaxLength(int32_t *aMaxLength) override; \
120 : NS_IMETHOD SetMaxLength(int32_t aMaxLength) override; \
121 : NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) override; \
122 : NS_IMETHOD RestoreToEntryAtIndex(int32_t index) override; \
123 : NS_IMETHOD PurgeHistory(int32_t numEntries) override; \
124 : NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) override; \
125 : NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) override; \
126 : NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) override; \
127 : NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) override; \
128 : NS_IMETHOD ReloadCurrentEntry(void) override; \
129 : NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) override; \
130 : NS_IMETHOD OnPartialSHistoryActive(int32_t globalLength, int32_t targetIndex) override; \
131 : NS_IMETHOD OnPartialSHistoryDeactive(void) override; \
132 : NS_IMETHOD OnAttachGroupedSHistory(int32_t offset) override;
133 :
134 : /* Use this macro when declaring the members of this interface when the
135 : class doesn't implement the interface. This is useful for forwarding. */
136 : #define NS_DECL_NON_VIRTUAL_NSISHISTORY \
137 : nsresult GetIsPartial(bool *aIsPartial); \
138 : nsresult GetCount(int32_t *aCount); \
139 : nsresult GetGlobalCount(int32_t *aGlobalCount); \
140 : nsresult GetGlobalIndexOffset(int32_t *aGlobalIndexOffset); \
141 : nsresult GetIndex(int32_t *aIndex); \
142 : nsresult GetGlobalIndex(int32_t *aGlobalIndex); \
143 : nsresult GetRequestedIndex(int32_t *aRequestedIndex); \
144 : nsresult GetMaxLength(int32_t *aMaxLength); \
145 : nsresult SetMaxLength(int32_t aMaxLength); \
146 : nsresult GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval); \
147 : nsresult RestoreToEntryAtIndex(int32_t index); \
148 : nsresult PurgeHistory(int32_t numEntries); \
149 : nsresult AddSHistoryListener(nsISHistoryListener *aListener); \
150 : nsresult RemoveSHistoryListener(nsISHistoryListener *aListener); \
151 : nsresult SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener); \
152 : nsresult GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator); \
153 : nsresult ReloadCurrentEntry(void); \
154 : nsresult GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval); \
155 : nsresult OnPartialSHistoryActive(int32_t globalLength, int32_t targetIndex); \
156 : nsresult OnPartialSHistoryDeactive(void); \
157 : nsresult OnAttachGroupedSHistory(int32_t offset);
158 :
159 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
160 : #define NS_FORWARD_NSISHISTORY(_to) \
161 : NS_IMETHOD GetIsPartial(bool *aIsPartial) override { return _to GetIsPartial(aIsPartial); } \
162 : NS_IMETHOD GetCount(int32_t *aCount) override { return _to GetCount(aCount); } \
163 : NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) override { return _to GetGlobalCount(aGlobalCount); } \
164 : NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) override { return _to GetGlobalIndexOffset(aGlobalIndexOffset); } \
165 : NS_IMETHOD GetIndex(int32_t *aIndex) override { return _to GetIndex(aIndex); } \
166 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override { return _to GetGlobalIndex(aGlobalIndex); } \
167 : NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) override { return _to GetRequestedIndex(aRequestedIndex); } \
168 : NS_IMETHOD GetMaxLength(int32_t *aMaxLength) override { return _to GetMaxLength(aMaxLength); } \
169 : NS_IMETHOD SetMaxLength(int32_t aMaxLength) override { return _to SetMaxLength(aMaxLength); } \
170 : NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) override { return _to GetEntryAtIndex(index, modifyIndex, _retval); } \
171 : NS_IMETHOD RestoreToEntryAtIndex(int32_t index) override { return _to RestoreToEntryAtIndex(index); } \
172 : NS_IMETHOD PurgeHistory(int32_t numEntries) override { return _to PurgeHistory(numEntries); } \
173 : NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) override { return _to AddSHistoryListener(aListener); } \
174 : NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) override { return _to RemoveSHistoryListener(aListener); } \
175 : NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) override { return _to SetPartialSHistoryListener(aListener); } \
176 : NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) override { return _to GetSHistoryEnumerator(aSHistoryEnumerator); } \
177 : NS_IMETHOD ReloadCurrentEntry(void) override { return _to ReloadCurrentEntry(); } \
178 : NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) override { return _to GetIndexOfEntry(aEntry, _retval); } \
179 : NS_IMETHOD OnPartialSHistoryActive(int32_t globalLength, int32_t targetIndex) override { return _to OnPartialSHistoryActive(globalLength, targetIndex); } \
180 : NS_IMETHOD OnPartialSHistoryDeactive(void) override { return _to OnPartialSHistoryDeactive(); } \
181 : NS_IMETHOD OnAttachGroupedSHistory(int32_t offset) override { return _to OnAttachGroupedSHistory(offset); }
182 :
183 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
184 : #define NS_FORWARD_SAFE_NSISHISTORY(_to) \
185 : NS_IMETHOD GetIsPartial(bool *aIsPartial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPartial(aIsPartial); } \
186 : NS_IMETHOD GetCount(int32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
187 : NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalCount(aGlobalCount); } \
188 : NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndexOffset(aGlobalIndexOffset); } \
189 : NS_IMETHOD GetIndex(int32_t *aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
190 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndex(aGlobalIndex); } \
191 : NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \
192 : NS_IMETHOD GetMaxLength(int32_t *aMaxLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
193 : NS_IMETHOD SetMaxLength(int32_t aMaxLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
194 : NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \
195 : NS_IMETHOD RestoreToEntryAtIndex(int32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreToEntryAtIndex(index); } \
196 : NS_IMETHOD PurgeHistory(int32_t numEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgeHistory(numEntries); } \
197 : NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSHistoryListener(aListener); } \
198 : NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSHistoryListener(aListener); } \
199 : NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPartialSHistoryListener(aListener); } \
200 : NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSHistoryEnumerator(aSHistoryEnumerator); } \
201 : NS_IMETHOD ReloadCurrentEntry(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadCurrentEntry(); } \
202 : NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfEntry(aEntry, _retval); } \
203 : NS_IMETHOD OnPartialSHistoryActive(int32_t globalLength, int32_t targetIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPartialSHistoryActive(globalLength, targetIndex); } \
204 : NS_IMETHOD OnPartialSHistoryDeactive(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPartialSHistoryDeactive(); } \
205 : NS_IMETHOD OnAttachGroupedSHistory(int32_t offset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAttachGroupedSHistory(offset); }
206 :
207 : #if 0
208 : /* Use the code below as a template for the implementation class for this interface. */
209 :
210 : /* Header file */
211 : class nsSHistory : public nsISHistory
212 : {
213 : public:
214 : NS_DECL_ISUPPORTS
215 : NS_DECL_NSISHISTORY
216 :
217 : nsSHistory();
218 :
219 : private:
220 : ~nsSHistory();
221 :
222 : protected:
223 : /* additional members */
224 : };
225 :
226 : /* Implementation file */
227 : NS_IMPL_ISUPPORTS(nsSHistory, nsISHistory)
228 :
229 : nsSHistory::nsSHistory()
230 : {
231 : /* member initializers and constructor code */
232 : }
233 :
234 : nsSHistory::~nsSHistory()
235 : {
236 : /* destructor code */
237 : }
238 :
239 : /* readonly attribute bool isPartial; */
240 : NS_IMETHODIMP nsSHistory::GetIsPartial(bool *aIsPartial)
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 :
245 : /* readonly attribute long count; */
246 : NS_IMETHODIMP nsSHistory::GetCount(int32_t *aCount)
247 : {
248 : return NS_ERROR_NOT_IMPLEMENTED;
249 : }
250 :
251 : /* readonly attribute long globalCount; */
252 : NS_IMETHODIMP nsSHistory::GetGlobalCount(int32_t *aGlobalCount)
253 : {
254 : return NS_ERROR_NOT_IMPLEMENTED;
255 : }
256 :
257 : /* readonly attribute long globalIndexOffset; */
258 : NS_IMETHODIMP nsSHistory::GetGlobalIndexOffset(int32_t *aGlobalIndexOffset)
259 : {
260 : return NS_ERROR_NOT_IMPLEMENTED;
261 : }
262 :
263 : /* readonly attribute long index; */
264 : NS_IMETHODIMP nsSHistory::GetIndex(int32_t *aIndex)
265 : {
266 : return NS_ERROR_NOT_IMPLEMENTED;
267 : }
268 :
269 : /* readonly attribute long globalIndex; */
270 : NS_IMETHODIMP nsSHistory::GetGlobalIndex(int32_t *aGlobalIndex)
271 : {
272 : return NS_ERROR_NOT_IMPLEMENTED;
273 : }
274 :
275 : /* readonly attribute long requestedIndex; */
276 : NS_IMETHODIMP nsSHistory::GetRequestedIndex(int32_t *aRequestedIndex)
277 : {
278 : return NS_ERROR_NOT_IMPLEMENTED;
279 : }
280 :
281 : /* attribute long maxLength; */
282 : NS_IMETHODIMP nsSHistory::GetMaxLength(int32_t *aMaxLength)
283 : {
284 : return NS_ERROR_NOT_IMPLEMENTED;
285 : }
286 : NS_IMETHODIMP nsSHistory::SetMaxLength(int32_t aMaxLength)
287 : {
288 : return NS_ERROR_NOT_IMPLEMENTED;
289 : }
290 :
291 : /* nsISHEntry getEntryAtIndex (in long index, in boolean modifyIndex); */
292 : NS_IMETHODIMP nsSHistory::GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval)
293 : {
294 : return NS_ERROR_NOT_IMPLEMENTED;
295 : }
296 :
297 : /* void restoreToEntryAtIndex (in long index); */
298 : NS_IMETHODIMP nsSHistory::RestoreToEntryAtIndex(int32_t index)
299 : {
300 : return NS_ERROR_NOT_IMPLEMENTED;
301 : }
302 :
303 : /* void PurgeHistory (in long numEntries); */
304 : NS_IMETHODIMP nsSHistory::PurgeHistory(int32_t numEntries)
305 : {
306 : return NS_ERROR_NOT_IMPLEMENTED;
307 : }
308 :
309 : /* void addSHistoryListener (in nsISHistoryListener aListener); */
310 : NS_IMETHODIMP nsSHistory::AddSHistoryListener(nsISHistoryListener *aListener)
311 : {
312 : return NS_ERROR_NOT_IMPLEMENTED;
313 : }
314 :
315 : /* void removeSHistoryListener (in nsISHistoryListener aListener); */
316 : NS_IMETHODIMP nsSHistory::RemoveSHistoryListener(nsISHistoryListener *aListener)
317 : {
318 : return NS_ERROR_NOT_IMPLEMENTED;
319 : }
320 :
321 : /* void setPartialSHistoryListener (in nsIPartialSHistoryListener aListener); */
322 : NS_IMETHODIMP nsSHistory::SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener)
323 : {
324 : return NS_ERROR_NOT_IMPLEMENTED;
325 : }
326 :
327 : /* readonly attribute nsISimpleEnumerator SHistoryEnumerator; */
328 : NS_IMETHODIMP nsSHistory::GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator)
329 : {
330 : return NS_ERROR_NOT_IMPLEMENTED;
331 : }
332 :
333 : /* void reloadCurrentEntry (); */
334 : NS_IMETHODIMP nsSHistory::ReloadCurrentEntry()
335 : {
336 : return NS_ERROR_NOT_IMPLEMENTED;
337 : }
338 :
339 : /* long getIndexOfEntry (in nsISHEntry aEntry); */
340 : NS_IMETHODIMP nsSHistory::GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval)
341 : {
342 : return NS_ERROR_NOT_IMPLEMENTED;
343 : }
344 :
345 : /* void onPartialSHistoryActive (in long globalLength, in long targetIndex); */
346 : NS_IMETHODIMP nsSHistory::OnPartialSHistoryActive(int32_t globalLength, int32_t targetIndex)
347 : {
348 : return NS_ERROR_NOT_IMPLEMENTED;
349 : }
350 :
351 : /* void onPartialSHistoryDeactive (); */
352 : NS_IMETHODIMP nsSHistory::OnPartialSHistoryDeactive()
353 : {
354 : return NS_ERROR_NOT_IMPLEMENTED;
355 : }
356 :
357 : /* void onAttachGroupedSHistory (in long offset); */
358 : NS_IMETHODIMP nsSHistory::OnAttachGroupedSHistory(int32_t offset)
359 : {
360 : return NS_ERROR_NOT_IMPLEMENTED;
361 : }
362 :
363 : /* End of implementation class template. */
364 : #endif
365 :
366 :
367 : #endif /* __gen_nsISHistory_h__ */
|