1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/places/nsINavHistoryService.idl
3 : */
4 :
5 : #ifndef __gen_nsINavHistoryService_h__
6 : #define __gen_nsINavHistoryService_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 nsIArray; /* forward declaration */
18 :
19 : class nsIURI; /* forward declaration */
20 :
21 : class nsIVariant; /* forward declaration */
22 :
23 : class nsIFile; /* forward declaration */
24 :
25 : class nsINavHistoryContainerResultNode; /* forward declaration */
26 :
27 : class nsINavHistoryQueryResultNode; /* forward declaration */
28 :
29 : class nsINavHistoryQuery; /* forward declaration */
30 :
31 : class nsINavHistoryQueryOptions; /* forward declaration */
32 :
33 : class nsINavHistoryResult; /* forward declaration */
34 :
35 : class nsINavHistoryBatchCallback; /* forward declaration */
36 :
37 :
38 : /* starting interface: nsINavHistoryResultNode */
39 : #define NS_INAVHISTORYRESULTNODE_IID_STR "081452e5-be5c-4038-a5ea-f1f34cb6fd81"
40 :
41 : #define NS_INAVHISTORYRESULTNODE_IID \
42 : {0x081452e5, 0xbe5c, 0x4038, \
43 : { 0xa5, 0xea, 0xf1, 0xf3, 0x4c, 0xb6, 0xfd, 0x81 }}
44 :
45 9290 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryResultNode : public nsISupports {
46 : public:
47 :
48 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULTNODE_IID)
49 :
50 : /* readonly attribute nsINavHistoryContainerResultNode parent; */
51 : NS_SCRIPTABLE NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) = 0;
52 :
53 : /* readonly attribute nsINavHistoryResult parentResult; */
54 : NS_SCRIPTABLE NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) = 0;
55 :
56 : /* readonly attribute AUTF8String uri; */
57 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsACString & aUri) = 0;
58 :
59 : enum {
60 : RESULT_TYPE_URI = 0U,
61 : RESULT_TYPE_VISIT = 1U,
62 : RESULT_TYPE_FULL_VISIT = 2U,
63 : RESULT_TYPE_DYNAMIC_CONTAINER = 4U,
64 : RESULT_TYPE_QUERY = 5U,
65 : RESULT_TYPE_FOLDER = 6U,
66 : RESULT_TYPE_SEPARATOR = 7U,
67 : RESULT_TYPE_FOLDER_SHORTCUT = 9U
68 : };
69 :
70 : /* readonly attribute unsigned long type; */
71 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) = 0;
72 :
73 : /* readonly attribute AUTF8String title; */
74 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsACString & aTitle) = 0;
75 :
76 : /* readonly attribute unsigned long accessCount; */
77 : NS_SCRIPTABLE NS_IMETHOD GetAccessCount(PRUint32 *aAccessCount) = 0;
78 :
79 : /* readonly attribute PRTime time; */
80 : NS_SCRIPTABLE NS_IMETHOD GetTime(PRTime *aTime) = 0;
81 :
82 : /* readonly attribute AUTF8String icon; */
83 : NS_SCRIPTABLE NS_IMETHOD GetIcon(nsACString & aIcon) = 0;
84 :
85 : /* readonly attribute long indentLevel; */
86 : NS_SCRIPTABLE NS_IMETHOD GetIndentLevel(PRInt32 *aIndentLevel) = 0;
87 :
88 : /* readonly attribute long bookmarkIndex; */
89 : NS_SCRIPTABLE NS_IMETHOD GetBookmarkIndex(PRInt32 *aBookmarkIndex) = 0;
90 :
91 : /* readonly attribute long long itemId; */
92 : NS_SCRIPTABLE NS_IMETHOD GetItemId(PRInt64 *aItemId) = 0;
93 :
94 : /* readonly attribute PRTime dateAdded; */
95 : NS_SCRIPTABLE NS_IMETHOD GetDateAdded(PRTime *aDateAdded) = 0;
96 :
97 : /* readonly attribute PRTime lastModified; */
98 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified) = 0;
99 :
100 : /* readonly attribute AString tags; */
101 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsAString & aTags) = 0;
102 :
103 : };
104 :
105 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResultNode, NS_INAVHISTORYRESULTNODE_IID)
106 :
107 : /* Use this macro when declaring classes that implement this interface. */
108 : #define NS_DECL_NSINAVHISTORYRESULTNODE \
109 : NS_SCRIPTABLE NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent); \
110 : NS_SCRIPTABLE NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult); \
111 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsACString & aUri); \
112 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType); \
113 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsACString & aTitle); \
114 : NS_SCRIPTABLE NS_IMETHOD GetAccessCount(PRUint32 *aAccessCount); \
115 : NS_SCRIPTABLE NS_IMETHOD GetTime(PRTime *aTime); \
116 : NS_SCRIPTABLE NS_IMETHOD GetIcon(nsACString & aIcon); \
117 : NS_SCRIPTABLE NS_IMETHOD GetIndentLevel(PRInt32 *aIndentLevel); \
118 : NS_SCRIPTABLE NS_IMETHOD GetBookmarkIndex(PRInt32 *aBookmarkIndex); \
119 : NS_SCRIPTABLE NS_IMETHOD GetItemId(PRInt64 *aItemId); \
120 : NS_SCRIPTABLE NS_IMETHOD GetDateAdded(PRTime *aDateAdded); \
121 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified); \
122 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsAString & aTags);
123 :
124 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
125 : #define NS_FORWARD_NSINAVHISTORYRESULTNODE(_to) \
126 : NS_SCRIPTABLE NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) { return _to GetParent(aParent); } \
127 : NS_SCRIPTABLE NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) { return _to GetParentResult(aParentResult); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsACString & aUri) { return _to GetUri(aUri); } \
129 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return _to GetType(aType); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsACString & aTitle) { return _to GetTitle(aTitle); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetAccessCount(PRUint32 *aAccessCount) { return _to GetAccessCount(aAccessCount); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetTime(PRTime *aTime) { return _to GetTime(aTime); } \
133 : NS_SCRIPTABLE NS_IMETHOD GetIcon(nsACString & aIcon) { return _to GetIcon(aIcon); } \
134 : NS_SCRIPTABLE NS_IMETHOD GetIndentLevel(PRInt32 *aIndentLevel) { return _to GetIndentLevel(aIndentLevel); } \
135 : NS_SCRIPTABLE NS_IMETHOD GetBookmarkIndex(PRInt32 *aBookmarkIndex) { return _to GetBookmarkIndex(aBookmarkIndex); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetItemId(PRInt64 *aItemId) { return _to GetItemId(aItemId); } \
137 : NS_SCRIPTABLE NS_IMETHOD GetDateAdded(PRTime *aDateAdded) { return _to GetDateAdded(aDateAdded); } \
138 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified) { return _to GetLastModified(aLastModified); } \
139 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsAString & aTags) { return _to GetTags(aTags); }
140 :
141 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
142 : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULTNODE(_to) \
143 : NS_SCRIPTABLE NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
144 : NS_SCRIPTABLE NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentResult(aParentResult); } \
145 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsACString & aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
146 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
147 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsACString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
148 : NS_SCRIPTABLE NS_IMETHOD GetAccessCount(PRUint32 *aAccessCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessCount(aAccessCount); } \
149 : NS_SCRIPTABLE NS_IMETHOD GetTime(PRTime *aTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTime(aTime); } \
150 : NS_SCRIPTABLE NS_IMETHOD GetIcon(nsACString & aIcon) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcon(aIcon); } \
151 : NS_SCRIPTABLE NS_IMETHOD GetIndentLevel(PRInt32 *aIndentLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndentLevel(aIndentLevel); } \
152 : NS_SCRIPTABLE NS_IMETHOD GetBookmarkIndex(PRInt32 *aBookmarkIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBookmarkIndex(aBookmarkIndex); } \
153 : NS_SCRIPTABLE NS_IMETHOD GetItemId(PRInt64 *aItemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemId(aItemId); } \
154 : NS_SCRIPTABLE NS_IMETHOD GetDateAdded(PRTime *aDateAdded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateAdded(aDateAdded); } \
155 : NS_SCRIPTABLE NS_IMETHOD GetLastModified(PRTime *aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
156 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsAString & aTags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTags(aTags); }
157 :
158 : #if 0
159 : /* Use the code below as a template for the implementation class for this interface. */
160 :
161 : /* Header file */
162 : class nsNavHistoryResultNode : public nsINavHistoryResultNode
163 : {
164 : public:
165 : NS_DECL_ISUPPORTS
166 : NS_DECL_NSINAVHISTORYRESULTNODE
167 :
168 : nsNavHistoryResultNode();
169 :
170 : private:
171 : ~nsNavHistoryResultNode();
172 :
173 : protected:
174 : /* additional members */
175 : };
176 :
177 : /* Implementation file */
178 : NS_IMPL_ISUPPORTS1(nsNavHistoryResultNode, nsINavHistoryResultNode)
179 :
180 : nsNavHistoryResultNode::nsNavHistoryResultNode()
181 : {
182 : /* member initializers and constructor code */
183 : }
184 :
185 : nsNavHistoryResultNode::~nsNavHistoryResultNode()
186 : {
187 : /* destructor code */
188 : }
189 :
190 : /* readonly attribute nsINavHistoryContainerResultNode parent; */
191 : NS_IMETHODIMP nsNavHistoryResultNode::GetParent(nsINavHistoryContainerResultNode * *aParent)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* readonly attribute nsINavHistoryResult parentResult; */
197 : NS_IMETHODIMP nsNavHistoryResultNode::GetParentResult(nsINavHistoryResult * *aParentResult)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* readonly attribute AUTF8String uri; */
203 : NS_IMETHODIMP nsNavHistoryResultNode::GetUri(nsACString & aUri)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* readonly attribute unsigned long type; */
209 : NS_IMETHODIMP nsNavHistoryResultNode::GetType(PRUint32 *aType)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 :
214 : /* readonly attribute AUTF8String title; */
215 : NS_IMETHODIMP nsNavHistoryResultNode::GetTitle(nsACString & aTitle)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* readonly attribute unsigned long accessCount; */
221 : NS_IMETHODIMP nsNavHistoryResultNode::GetAccessCount(PRUint32 *aAccessCount)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 :
226 : /* readonly attribute PRTime time; */
227 : NS_IMETHODIMP nsNavHistoryResultNode::GetTime(PRTime *aTime)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 :
232 : /* readonly attribute AUTF8String icon; */
233 : NS_IMETHODIMP nsNavHistoryResultNode::GetIcon(nsACString & aIcon)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 :
238 : /* readonly attribute long indentLevel; */
239 : NS_IMETHODIMP nsNavHistoryResultNode::GetIndentLevel(PRInt32 *aIndentLevel)
240 : {
241 : return NS_ERROR_NOT_IMPLEMENTED;
242 : }
243 :
244 : /* readonly attribute long bookmarkIndex; */
245 : NS_IMETHODIMP nsNavHistoryResultNode::GetBookmarkIndex(PRInt32 *aBookmarkIndex)
246 : {
247 : return NS_ERROR_NOT_IMPLEMENTED;
248 : }
249 :
250 : /* readonly attribute long long itemId; */
251 : NS_IMETHODIMP nsNavHistoryResultNode::GetItemId(PRInt64 *aItemId)
252 : {
253 : return NS_ERROR_NOT_IMPLEMENTED;
254 : }
255 :
256 : /* readonly attribute PRTime dateAdded; */
257 : NS_IMETHODIMP nsNavHistoryResultNode::GetDateAdded(PRTime *aDateAdded)
258 : {
259 : return NS_ERROR_NOT_IMPLEMENTED;
260 : }
261 :
262 : /* readonly attribute PRTime lastModified; */
263 : NS_IMETHODIMP nsNavHistoryResultNode::GetLastModified(PRTime *aLastModified)
264 : {
265 : return NS_ERROR_NOT_IMPLEMENTED;
266 : }
267 :
268 : /* readonly attribute AString tags; */
269 : NS_IMETHODIMP nsNavHistoryResultNode::GetTags(nsAString & aTags)
270 : {
271 : return NS_ERROR_NOT_IMPLEMENTED;
272 : }
273 :
274 : /* End of implementation class template. */
275 : #endif
276 :
277 :
278 : /* starting interface: nsINavHistoryVisitResultNode */
279 : #define NS_INAVHISTORYVISITRESULTNODE_IID_STR "8e2c5a86-b33d-4fa6-944b-559af7e95fcd"
280 :
281 : #define NS_INAVHISTORYVISITRESULTNODE_IID \
282 : {0x8e2c5a86, 0xb33d, 0x4fa6, \
283 : { 0x94, 0x4b, 0x55, 0x9a, 0xf7, 0xe9, 0x5f, 0xcd }}
284 :
285 191 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryVisitResultNode : public nsINavHistoryResultNode {
286 : public:
287 :
288 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYVISITRESULTNODE_IID)
289 :
290 : /* readonly attribute long long sessionId; */
291 : NS_SCRIPTABLE NS_IMETHOD GetSessionId(PRInt64 *aSessionId) = 0;
292 :
293 : };
294 :
295 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryVisitResultNode, NS_INAVHISTORYVISITRESULTNODE_IID)
296 :
297 : /* Use this macro when declaring classes that implement this interface. */
298 : #define NS_DECL_NSINAVHISTORYVISITRESULTNODE \
299 : NS_SCRIPTABLE NS_IMETHOD GetSessionId(PRInt64 *aSessionId);
300 :
301 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
302 : #define NS_FORWARD_NSINAVHISTORYVISITRESULTNODE(_to) \
303 : NS_SCRIPTABLE NS_IMETHOD GetSessionId(PRInt64 *aSessionId) { return _to GetSessionId(aSessionId); }
304 :
305 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
306 : #define NS_FORWARD_SAFE_NSINAVHISTORYVISITRESULTNODE(_to) \
307 : NS_SCRIPTABLE NS_IMETHOD GetSessionId(PRInt64 *aSessionId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionId(aSessionId); }
308 :
309 : #if 0
310 : /* Use the code below as a template for the implementation class for this interface. */
311 :
312 : /* Header file */
313 : class nsNavHistoryVisitResultNode : public nsINavHistoryVisitResultNode
314 : {
315 : public:
316 : NS_DECL_ISUPPORTS
317 : NS_DECL_NSINAVHISTORYVISITRESULTNODE
318 :
319 : nsNavHistoryVisitResultNode();
320 :
321 : private:
322 : ~nsNavHistoryVisitResultNode();
323 :
324 : protected:
325 : /* additional members */
326 : };
327 :
328 : /* Implementation file */
329 : NS_IMPL_ISUPPORTS1(nsNavHistoryVisitResultNode, nsINavHistoryVisitResultNode)
330 :
331 : nsNavHistoryVisitResultNode::nsNavHistoryVisitResultNode()
332 : {
333 : /* member initializers and constructor code */
334 : }
335 :
336 : nsNavHistoryVisitResultNode::~nsNavHistoryVisitResultNode()
337 : {
338 : /* destructor code */
339 : }
340 :
341 : /* readonly attribute long long sessionId; */
342 : NS_IMETHODIMP nsNavHistoryVisitResultNode::GetSessionId(PRInt64 *aSessionId)
343 : {
344 : return NS_ERROR_NOT_IMPLEMENTED;
345 : }
346 :
347 : /* End of implementation class template. */
348 : #endif
349 :
350 :
351 : /* starting interface: nsINavHistoryFullVisitResultNode */
352 : #define NS_INAVHISTORYFULLVISITRESULTNODE_IID_STR "c49fd9d5-56e2-43eb-932c-f933f28cba85"
353 :
354 : #define NS_INAVHISTORYFULLVISITRESULTNODE_IID \
355 : {0xc49fd9d5, 0x56e2, 0x43eb, \
356 : { 0x93, 0x2c, 0xf9, 0x33, 0xf2, 0x8c, 0xba, 0x85 }}
357 :
358 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryFullVisitResultNode : public nsINavHistoryVisitResultNode {
359 : public:
360 :
361 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYFULLVISITRESULTNODE_IID)
362 :
363 : /* readonly attribute long long visitId; */
364 : NS_SCRIPTABLE NS_IMETHOD GetVisitId(PRInt64 *aVisitId) = 0;
365 :
366 : /* readonly attribute long long referringVisitId; */
367 : NS_SCRIPTABLE NS_IMETHOD GetReferringVisitId(PRInt64 *aReferringVisitId) = 0;
368 :
369 : /* readonly attribute long transitionType; */
370 : NS_SCRIPTABLE NS_IMETHOD GetTransitionType(PRInt32 *aTransitionType) = 0;
371 :
372 : };
373 :
374 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryFullVisitResultNode, NS_INAVHISTORYFULLVISITRESULTNODE_IID)
375 :
376 : /* Use this macro when declaring classes that implement this interface. */
377 : #define NS_DECL_NSINAVHISTORYFULLVISITRESULTNODE \
378 : NS_SCRIPTABLE NS_IMETHOD GetVisitId(PRInt64 *aVisitId); \
379 : NS_SCRIPTABLE NS_IMETHOD GetReferringVisitId(PRInt64 *aReferringVisitId); \
380 : NS_SCRIPTABLE NS_IMETHOD GetTransitionType(PRInt32 *aTransitionType);
381 :
382 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
383 : #define NS_FORWARD_NSINAVHISTORYFULLVISITRESULTNODE(_to) \
384 : NS_SCRIPTABLE NS_IMETHOD GetVisitId(PRInt64 *aVisitId) { return _to GetVisitId(aVisitId); } \
385 : NS_SCRIPTABLE NS_IMETHOD GetReferringVisitId(PRInt64 *aReferringVisitId) { return _to GetReferringVisitId(aReferringVisitId); } \
386 : NS_SCRIPTABLE NS_IMETHOD GetTransitionType(PRInt32 *aTransitionType) { return _to GetTransitionType(aTransitionType); }
387 :
388 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
389 : #define NS_FORWARD_SAFE_NSINAVHISTORYFULLVISITRESULTNODE(_to) \
390 : NS_SCRIPTABLE NS_IMETHOD GetVisitId(PRInt64 *aVisitId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitId(aVisitId); } \
391 : NS_SCRIPTABLE NS_IMETHOD GetReferringVisitId(PRInt64 *aReferringVisitId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferringVisitId(aReferringVisitId); } \
392 : NS_SCRIPTABLE NS_IMETHOD GetTransitionType(PRInt32 *aTransitionType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransitionType(aTransitionType); }
393 :
394 : #if 0
395 : /* Use the code below as a template for the implementation class for this interface. */
396 :
397 : /* Header file */
398 : class nsNavHistoryFullVisitResultNode : public nsINavHistoryFullVisitResultNode
399 : {
400 : public:
401 : NS_DECL_ISUPPORTS
402 : NS_DECL_NSINAVHISTORYFULLVISITRESULTNODE
403 :
404 : nsNavHistoryFullVisitResultNode();
405 :
406 : private:
407 : ~nsNavHistoryFullVisitResultNode();
408 :
409 : protected:
410 : /* additional members */
411 : };
412 :
413 : /* Implementation file */
414 : NS_IMPL_ISUPPORTS1(nsNavHistoryFullVisitResultNode, nsINavHistoryFullVisitResultNode)
415 :
416 : nsNavHistoryFullVisitResultNode::nsNavHistoryFullVisitResultNode()
417 : {
418 : /* member initializers and constructor code */
419 : }
420 :
421 : nsNavHistoryFullVisitResultNode::~nsNavHistoryFullVisitResultNode()
422 : {
423 : /* destructor code */
424 : }
425 :
426 : /* readonly attribute long long visitId; */
427 : NS_IMETHODIMP nsNavHistoryFullVisitResultNode::GetVisitId(PRInt64 *aVisitId)
428 : {
429 : return NS_ERROR_NOT_IMPLEMENTED;
430 : }
431 :
432 : /* readonly attribute long long referringVisitId; */
433 : NS_IMETHODIMP nsNavHistoryFullVisitResultNode::GetReferringVisitId(PRInt64 *aReferringVisitId)
434 : {
435 : return NS_ERROR_NOT_IMPLEMENTED;
436 : }
437 :
438 : /* readonly attribute long transitionType; */
439 : NS_IMETHODIMP nsNavHistoryFullVisitResultNode::GetTransitionType(PRInt32 *aTransitionType)
440 : {
441 : return NS_ERROR_NOT_IMPLEMENTED;
442 : }
443 :
444 : /* End of implementation class template. */
445 : #endif
446 :
447 :
448 : /* starting interface: nsINavHistoryContainerResultNode */
449 : #define NS_INAVHISTORYCONTAINERRESULTNODE_IID_STR "62534d3c-1b3f-401e-b3ba-b911f57f8a29"
450 :
451 : #define NS_INAVHISTORYCONTAINERRESULTNODE_IID \
452 : {0x62534d3c, 0x1b3f, 0x401e, \
453 : { 0xb3, 0xba, 0xb9, 0x11, 0xf5, 0x7f, 0x8a, 0x29 }}
454 :
455 4600 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryContainerResultNode : public nsINavHistoryResultNode {
456 : public:
457 :
458 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYCONTAINERRESULTNODE_IID)
459 :
460 : /* attribute boolean containerOpen; */
461 : NS_SCRIPTABLE NS_IMETHOD GetContainerOpen(bool *aContainerOpen) = 0;
462 : NS_SCRIPTABLE NS_IMETHOD SetContainerOpen(bool aContainerOpen) = 0;
463 :
464 : /* readonly attribute unsigned short state; */
465 : NS_SCRIPTABLE NS_IMETHOD GetState(PRUint16 *aState) = 0;
466 :
467 : enum {
468 : STATE_CLOSED = 0U,
469 : STATE_LOADING = 1U,
470 : STATE_OPENED = 2U
471 : };
472 :
473 : /* readonly attribute boolean hasChildren; */
474 : NS_SCRIPTABLE NS_IMETHOD GetHasChildren(bool *aHasChildren) = 0;
475 :
476 : /* readonly attribute unsigned long childCount; */
477 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRUint32 *aChildCount) = 0;
478 :
479 : /* nsINavHistoryResultNode getChild (in unsigned long aIndex); */
480 : NS_SCRIPTABLE NS_IMETHOD GetChild(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM) = 0;
481 :
482 : /* unsigned long getChildIndex (in nsINavHistoryResultNode aNode); */
483 : NS_SCRIPTABLE NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM) = 0;
484 :
485 : /* nsINavHistoryResultNode findNodeByDetails (in AUTF8String aURIString, in PRTime aTime, in long long aItemId, in boolean aRecursive); */
486 : NS_SCRIPTABLE NS_IMETHOD FindNodeByDetails(const nsACString & aURIString, PRTime aTime, PRInt64 aItemId, bool aRecursive, nsINavHistoryResultNode * *_retval NS_OUTPARAM) = 0;
487 :
488 : /* readonly attribute boolean childrenReadOnly; */
489 : NS_SCRIPTABLE NS_IMETHOD GetChildrenReadOnly(bool *aChildrenReadOnly) = 0;
490 :
491 : };
492 :
493 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryContainerResultNode, NS_INAVHISTORYCONTAINERRESULTNODE_IID)
494 :
495 : /* Use this macro when declaring classes that implement this interface. */
496 : #define NS_DECL_NSINAVHISTORYCONTAINERRESULTNODE \
497 : NS_SCRIPTABLE NS_IMETHOD GetContainerOpen(bool *aContainerOpen); \
498 : NS_SCRIPTABLE NS_IMETHOD SetContainerOpen(bool aContainerOpen); \
499 : NS_SCRIPTABLE NS_IMETHOD GetState(PRUint16 *aState); \
500 : NS_SCRIPTABLE NS_IMETHOD GetHasChildren(bool *aHasChildren); \
501 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRUint32 *aChildCount); \
502 : NS_SCRIPTABLE NS_IMETHOD GetChild(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM); \
503 : NS_SCRIPTABLE NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM); \
504 : NS_SCRIPTABLE NS_IMETHOD FindNodeByDetails(const nsACString & aURIString, PRTime aTime, PRInt64 aItemId, bool aRecursive, nsINavHistoryResultNode * *_retval NS_OUTPARAM); \
505 : NS_SCRIPTABLE NS_IMETHOD GetChildrenReadOnly(bool *aChildrenReadOnly);
506 :
507 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
508 : #define NS_FORWARD_NSINAVHISTORYCONTAINERRESULTNODE(_to) \
509 : NS_SCRIPTABLE NS_IMETHOD GetContainerOpen(bool *aContainerOpen) { return _to GetContainerOpen(aContainerOpen); } \
510 : NS_SCRIPTABLE NS_IMETHOD SetContainerOpen(bool aContainerOpen) { return _to SetContainerOpen(aContainerOpen); } \
511 : NS_SCRIPTABLE NS_IMETHOD GetState(PRUint16 *aState) { return _to GetState(aState); } \
512 : NS_SCRIPTABLE NS_IMETHOD GetHasChildren(bool *aHasChildren) { return _to GetHasChildren(aHasChildren); } \
513 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRUint32 *aChildCount) { return _to GetChildCount(aChildCount); } \
514 : NS_SCRIPTABLE NS_IMETHOD GetChild(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM) { return _to GetChild(aIndex, _retval); } \
515 : NS_SCRIPTABLE NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM) { return _to GetChildIndex(aNode, _retval); } \
516 : NS_SCRIPTABLE NS_IMETHOD FindNodeByDetails(const nsACString & aURIString, PRTime aTime, PRInt64 aItemId, bool aRecursive, nsINavHistoryResultNode * *_retval NS_OUTPARAM) { return _to FindNodeByDetails(aURIString, aTime, aItemId, aRecursive, _retval); } \
517 : NS_SCRIPTABLE NS_IMETHOD GetChildrenReadOnly(bool *aChildrenReadOnly) { return _to GetChildrenReadOnly(aChildrenReadOnly); }
518 :
519 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
520 : #define NS_FORWARD_SAFE_NSINAVHISTORYCONTAINERRESULTNODE(_to) \
521 : NS_SCRIPTABLE NS_IMETHOD GetContainerOpen(bool *aContainerOpen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainerOpen(aContainerOpen); } \
522 : NS_SCRIPTABLE NS_IMETHOD SetContainerOpen(bool aContainerOpen) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContainerOpen(aContainerOpen); } \
523 : NS_SCRIPTABLE NS_IMETHOD GetState(PRUint16 *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
524 : NS_SCRIPTABLE NS_IMETHOD GetHasChildren(bool *aHasChildren) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasChildren(aHasChildren); } \
525 : NS_SCRIPTABLE NS_IMETHOD GetChildCount(PRUint32 *aChildCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
526 : NS_SCRIPTABLE NS_IMETHOD GetChild(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChild(aIndex, _retval); } \
527 : NS_SCRIPTABLE NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildIndex(aNode, _retval); } \
528 : NS_SCRIPTABLE NS_IMETHOD FindNodeByDetails(const nsACString & aURIString, PRTime aTime, PRInt64 aItemId, bool aRecursive, nsINavHistoryResultNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindNodeByDetails(aURIString, aTime, aItemId, aRecursive, _retval); } \
529 : NS_SCRIPTABLE NS_IMETHOD GetChildrenReadOnly(bool *aChildrenReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildrenReadOnly(aChildrenReadOnly); }
530 :
531 : #if 0
532 : /* Use the code below as a template for the implementation class for this interface. */
533 :
534 : /* Header file */
535 : class nsNavHistoryContainerResultNode : public nsINavHistoryContainerResultNode
536 : {
537 : public:
538 : NS_DECL_ISUPPORTS
539 : NS_DECL_NSINAVHISTORYCONTAINERRESULTNODE
540 :
541 : nsNavHistoryContainerResultNode();
542 :
543 : private:
544 : ~nsNavHistoryContainerResultNode();
545 :
546 : protected:
547 : /* additional members */
548 : };
549 :
550 : /* Implementation file */
551 : NS_IMPL_ISUPPORTS1(nsNavHistoryContainerResultNode, nsINavHistoryContainerResultNode)
552 :
553 : nsNavHistoryContainerResultNode::nsNavHistoryContainerResultNode()
554 : {
555 : /* member initializers and constructor code */
556 : }
557 :
558 : nsNavHistoryContainerResultNode::~nsNavHistoryContainerResultNode()
559 : {
560 : /* destructor code */
561 : }
562 :
563 : /* attribute boolean containerOpen; */
564 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetContainerOpen(bool *aContainerOpen)
565 : {
566 : return NS_ERROR_NOT_IMPLEMENTED;
567 : }
568 : NS_IMETHODIMP nsNavHistoryContainerResultNode::SetContainerOpen(bool aContainerOpen)
569 : {
570 : return NS_ERROR_NOT_IMPLEMENTED;
571 : }
572 :
573 : /* readonly attribute unsigned short state; */
574 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetState(PRUint16 *aState)
575 : {
576 : return NS_ERROR_NOT_IMPLEMENTED;
577 : }
578 :
579 : /* readonly attribute boolean hasChildren; */
580 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetHasChildren(bool *aHasChildren)
581 : {
582 : return NS_ERROR_NOT_IMPLEMENTED;
583 : }
584 :
585 : /* readonly attribute unsigned long childCount; */
586 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChildCount(PRUint32 *aChildCount)
587 : {
588 : return NS_ERROR_NOT_IMPLEMENTED;
589 : }
590 :
591 : /* nsINavHistoryResultNode getChild (in unsigned long aIndex); */
592 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChild(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM)
593 : {
594 : return NS_ERROR_NOT_IMPLEMENTED;
595 : }
596 :
597 : /* unsigned long getChildIndex (in nsINavHistoryResultNode aNode); */
598 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChildIndex(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM)
599 : {
600 : return NS_ERROR_NOT_IMPLEMENTED;
601 : }
602 :
603 : /* nsINavHistoryResultNode findNodeByDetails (in AUTF8String aURIString, in PRTime aTime, in long long aItemId, in boolean aRecursive); */
604 : NS_IMETHODIMP nsNavHistoryContainerResultNode::FindNodeByDetails(const nsACString & aURIString, PRTime aTime, PRInt64 aItemId, bool aRecursive, nsINavHistoryResultNode * *_retval NS_OUTPARAM)
605 : {
606 : return NS_ERROR_NOT_IMPLEMENTED;
607 : }
608 :
609 : /* readonly attribute boolean childrenReadOnly; */
610 : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChildrenReadOnly(bool *aChildrenReadOnly)
611 : {
612 : return NS_ERROR_NOT_IMPLEMENTED;
613 : }
614 :
615 : /* End of implementation class template. */
616 : #endif
617 :
618 :
619 : /* starting interface: nsINavHistoryQueryResultNode */
620 : #define NS_INAVHISTORYQUERYRESULTNODE_IID_STR "ea17745a-1852-4155-a98f-d1dd1763b3df"
621 :
622 : #define NS_INAVHISTORYQUERYRESULTNODE_IID \
623 : {0xea17745a, 0x1852, 0x4155, \
624 : { 0xa9, 0x8f, 0xd1, 0xdd, 0x17, 0x63, 0xb3, 0xdf }}
625 :
626 2300 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryQueryResultNode : public nsINavHistoryContainerResultNode {
627 : public:
628 :
629 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYQUERYRESULTNODE_IID)
630 :
631 : /* void getQueries ([optional] out unsigned long queryCount, [array, size_is (queryCount), retval] out nsINavHistoryQuery queries); */
632 : NS_SCRIPTABLE NS_IMETHOD GetQueries(PRUint32 *queryCount NS_OUTPARAM, nsINavHistoryQuery * **queries NS_OUTPARAM) = 0;
633 :
634 : /* readonly attribute nsINavHistoryQueryOptions queryOptions; */
635 : NS_SCRIPTABLE NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) = 0;
636 :
637 : /* readonly attribute long long folderItemId; */
638 : NS_SCRIPTABLE NS_IMETHOD GetFolderItemId(PRInt64 *aFolderItemId) = 0;
639 :
640 : };
641 :
642 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryQueryResultNode, NS_INAVHISTORYQUERYRESULTNODE_IID)
643 :
644 : /* Use this macro when declaring classes that implement this interface. */
645 : #define NS_DECL_NSINAVHISTORYQUERYRESULTNODE \
646 : NS_SCRIPTABLE NS_IMETHOD GetQueries(PRUint32 *queryCount NS_OUTPARAM, nsINavHistoryQuery * **queries NS_OUTPARAM); \
647 : NS_SCRIPTABLE NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions); \
648 : NS_SCRIPTABLE NS_IMETHOD GetFolderItemId(PRInt64 *aFolderItemId);
649 :
650 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
651 : #define NS_FORWARD_NSINAVHISTORYQUERYRESULTNODE(_to) \
652 : NS_SCRIPTABLE NS_IMETHOD GetQueries(PRUint32 *queryCount NS_OUTPARAM, nsINavHistoryQuery * **queries NS_OUTPARAM) { return _to GetQueries(queryCount, queries); } \
653 : NS_SCRIPTABLE NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) { return _to GetQueryOptions(aQueryOptions); } \
654 : NS_SCRIPTABLE NS_IMETHOD GetFolderItemId(PRInt64 *aFolderItemId) { return _to GetFolderItemId(aFolderItemId); }
655 :
656 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
657 : #define NS_FORWARD_SAFE_NSINAVHISTORYQUERYRESULTNODE(_to) \
658 : NS_SCRIPTABLE NS_IMETHOD GetQueries(PRUint32 *queryCount NS_OUTPARAM, nsINavHistoryQuery * **queries NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueries(queryCount, queries); } \
659 : NS_SCRIPTABLE NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueryOptions(aQueryOptions); } \
660 : NS_SCRIPTABLE NS_IMETHOD GetFolderItemId(PRInt64 *aFolderItemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderItemId(aFolderItemId); }
661 :
662 : #if 0
663 : /* Use the code below as a template for the implementation class for this interface. */
664 :
665 : /* Header file */
666 : class nsNavHistoryQueryResultNode : public nsINavHistoryQueryResultNode
667 : {
668 : public:
669 : NS_DECL_ISUPPORTS
670 : NS_DECL_NSINAVHISTORYQUERYRESULTNODE
671 :
672 : nsNavHistoryQueryResultNode();
673 :
674 : private:
675 : ~nsNavHistoryQueryResultNode();
676 :
677 : protected:
678 : /* additional members */
679 : };
680 :
681 : /* Implementation file */
682 : NS_IMPL_ISUPPORTS1(nsNavHistoryQueryResultNode, nsINavHistoryQueryResultNode)
683 :
684 : nsNavHistoryQueryResultNode::nsNavHistoryQueryResultNode()
685 : {
686 : /* member initializers and constructor code */
687 : }
688 :
689 : nsNavHistoryQueryResultNode::~nsNavHistoryQueryResultNode()
690 : {
691 : /* destructor code */
692 : }
693 :
694 : /* void getQueries ([optional] out unsigned long queryCount, [array, size_is (queryCount), retval] out nsINavHistoryQuery queries); */
695 : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetQueries(PRUint32 *queryCount NS_OUTPARAM, nsINavHistoryQuery * **queries NS_OUTPARAM)
696 : {
697 : return NS_ERROR_NOT_IMPLEMENTED;
698 : }
699 :
700 : /* readonly attribute nsINavHistoryQueryOptions queryOptions; */
701 : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions)
702 : {
703 : return NS_ERROR_NOT_IMPLEMENTED;
704 : }
705 :
706 : /* readonly attribute long long folderItemId; */
707 : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetFolderItemId(PRInt64 *aFolderItemId)
708 : {
709 : return NS_ERROR_NOT_IMPLEMENTED;
710 : }
711 :
712 : /* End of implementation class template. */
713 : #endif
714 :
715 :
716 : /* starting interface: nsINavHistoryResultObserver */
717 : #define NS_INAVHISTORYRESULTOBSERVER_IID_STR "547102c4-ab84-4058-b9d4-6f99f6c80893"
718 :
719 : #define NS_INAVHISTORYRESULTOBSERVER_IID \
720 : {0x547102c4, 0xab84, 0x4058, \
721 : { 0xb9, 0xd4, 0x6f, 0x99, 0xf6, 0xc8, 0x08, 0x93 }}
722 :
723 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryResultObserver : public nsISupports {
724 : public:
725 :
726 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULTOBSERVER_IID)
727 :
728 : /* void nodeInserted (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex); */
729 : NS_SCRIPTABLE NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, PRUint32 aNewIndex) = 0;
730 :
731 : /* void nodeRemoved (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aItem, in unsigned long aOldIndex); */
732 : NS_SCRIPTABLE NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, PRUint32 aOldIndex) = 0;
733 :
734 : /* void nodeMoved (in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex); */
735 : NS_SCRIPTABLE NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, PRUint32 aOldIndex, nsINavHistoryContainerResultNode *aNewParent, PRUint32 aNewIndex) = 0;
736 :
737 : /* void nodeTitleChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle); */
738 : NS_SCRIPTABLE NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) = 0;
739 :
740 : /* void nodeURIChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewURI); */
741 : NS_SCRIPTABLE NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewURI) = 0;
742 :
743 : /* void nodeIconChanged (in nsINavHistoryResultNode aNode); */
744 : NS_SCRIPTABLE NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) = 0;
745 :
746 : /* void nodeHistoryDetailsChanged (in nsINavHistoryResultNode aNode, in PRTime aNewVisitDate, in unsigned long aNewAccessCount); */
747 : NS_SCRIPTABLE NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aNewVisitDate, PRUint32 aNewAccessCount) = 0;
748 :
749 : /* void nodeTagsChanged (in nsINavHistoryResultNode aNode); */
750 : NS_SCRIPTABLE NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) = 0;
751 :
752 : /* void nodeKeywordChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword); */
753 : NS_SCRIPTABLE NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) = 0;
754 :
755 : /* void nodeAnnotationChanged (in nsINavHistoryResultNode aNode, in AUTF8String aAnnoName); */
756 : NS_SCRIPTABLE NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) = 0;
757 :
758 : /* void nodeDateAddedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
759 : NS_SCRIPTABLE NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) = 0;
760 :
761 : /* void nodeLastModifiedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
762 : NS_SCRIPTABLE NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) = 0;
763 :
764 : /* void nodeReplaced (in nsINavHistoryContainerResultNode aParentNode, in nsINavHistoryResultNode aOldNode, in nsINavHistoryResultNode aNewNode, in unsigned long aIndex); */
765 : NS_SCRIPTABLE NS_IMETHOD NodeReplaced(nsINavHistoryContainerResultNode *aParentNode, nsINavHistoryResultNode *aOldNode, nsINavHistoryResultNode *aNewNode, PRUint32 aIndex) = 0;
766 :
767 : /* void containerStateChanged (in nsINavHistoryContainerResultNode aContainerNode, in unsigned long aOldState, in unsigned long aNewState); */
768 : NS_SCRIPTABLE NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, PRUint32 aOldState, PRUint32 aNewState) = 0;
769 :
770 : /* void invalidateContainer (in nsINavHistoryContainerResultNode aContainerNode); */
771 : NS_SCRIPTABLE NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) = 0;
772 :
773 : /* void sortingChanged (in unsigned short sortingMode); */
774 : NS_SCRIPTABLE NS_IMETHOD SortingChanged(PRUint16 sortingMode) = 0;
775 :
776 : /* void batching (in boolean aToggleMode); */
777 : NS_SCRIPTABLE NS_IMETHOD Batching(bool aToggleMode) = 0;
778 :
779 : /* attribute nsINavHistoryResult result; */
780 : NS_SCRIPTABLE NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) = 0;
781 : NS_SCRIPTABLE NS_IMETHOD SetResult(nsINavHistoryResult *aResult) = 0;
782 :
783 : };
784 :
785 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResultObserver, NS_INAVHISTORYRESULTOBSERVER_IID)
786 :
787 : /* Use this macro when declaring classes that implement this interface. */
788 : #define NS_DECL_NSINAVHISTORYRESULTOBSERVER \
789 : NS_SCRIPTABLE NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, PRUint32 aNewIndex); \
790 : NS_SCRIPTABLE NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, PRUint32 aOldIndex); \
791 : NS_SCRIPTABLE NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, PRUint32 aOldIndex, nsINavHistoryContainerResultNode *aNewParent, PRUint32 aNewIndex); \
792 : NS_SCRIPTABLE NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle); \
793 : NS_SCRIPTABLE NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewURI); \
794 : NS_SCRIPTABLE NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode); \
795 : NS_SCRIPTABLE NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aNewVisitDate, PRUint32 aNewAccessCount); \
796 : NS_SCRIPTABLE NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode); \
797 : NS_SCRIPTABLE NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword); \
798 : NS_SCRIPTABLE NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName); \
799 : NS_SCRIPTABLE NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue); \
800 : NS_SCRIPTABLE NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue); \
801 : NS_SCRIPTABLE NS_IMETHOD NodeReplaced(nsINavHistoryContainerResultNode *aParentNode, nsINavHistoryResultNode *aOldNode, nsINavHistoryResultNode *aNewNode, PRUint32 aIndex); \
802 : NS_SCRIPTABLE NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, PRUint32 aOldState, PRUint32 aNewState); \
803 : NS_SCRIPTABLE NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode); \
804 : NS_SCRIPTABLE NS_IMETHOD SortingChanged(PRUint16 sortingMode); \
805 : NS_SCRIPTABLE NS_IMETHOD Batching(bool aToggleMode); \
806 : NS_SCRIPTABLE NS_IMETHOD GetResult(nsINavHistoryResult * *aResult); \
807 : NS_SCRIPTABLE NS_IMETHOD SetResult(nsINavHistoryResult *aResult);
808 :
809 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
810 : #define NS_FORWARD_NSINAVHISTORYRESULTOBSERVER(_to) \
811 : NS_SCRIPTABLE NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, PRUint32 aNewIndex) { return _to NodeInserted(aParent, aNode, aNewIndex); } \
812 : NS_SCRIPTABLE NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, PRUint32 aOldIndex) { return _to NodeRemoved(aParent, aItem, aOldIndex); } \
813 : NS_SCRIPTABLE NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, PRUint32 aOldIndex, nsINavHistoryContainerResultNode *aNewParent, PRUint32 aNewIndex) { return _to NodeMoved(aNode, aOldParent, aOldIndex, aNewParent, aNewIndex); } \
814 : NS_SCRIPTABLE NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) { return _to NodeTitleChanged(aNode, aNewTitle); } \
815 : NS_SCRIPTABLE NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewURI) { return _to NodeURIChanged(aNode, aNewURI); } \
816 : NS_SCRIPTABLE NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) { return _to NodeIconChanged(aNode); } \
817 : NS_SCRIPTABLE NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aNewVisitDate, PRUint32 aNewAccessCount) { return _to NodeHistoryDetailsChanged(aNode, aNewVisitDate, aNewAccessCount); } \
818 : NS_SCRIPTABLE NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) { return _to NodeTagsChanged(aNode); } \
819 : NS_SCRIPTABLE NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) { return _to NodeKeywordChanged(aNode, aNewKeyword); } \
820 : NS_SCRIPTABLE NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) { return _to NodeAnnotationChanged(aNode, aAnnoName); } \
821 : NS_SCRIPTABLE NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) { return _to NodeDateAddedChanged(aNode, aNewValue); } \
822 : NS_SCRIPTABLE NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) { return _to NodeLastModifiedChanged(aNode, aNewValue); } \
823 : NS_SCRIPTABLE NS_IMETHOD NodeReplaced(nsINavHistoryContainerResultNode *aParentNode, nsINavHistoryResultNode *aOldNode, nsINavHistoryResultNode *aNewNode, PRUint32 aIndex) { return _to NodeReplaced(aParentNode, aOldNode, aNewNode, aIndex); } \
824 : NS_SCRIPTABLE NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, PRUint32 aOldState, PRUint32 aNewState) { return _to ContainerStateChanged(aContainerNode, aOldState, aNewState); } \
825 : NS_SCRIPTABLE NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) { return _to InvalidateContainer(aContainerNode); } \
826 : NS_SCRIPTABLE NS_IMETHOD SortingChanged(PRUint16 sortingMode) { return _to SortingChanged(sortingMode); } \
827 : NS_SCRIPTABLE NS_IMETHOD Batching(bool aToggleMode) { return _to Batching(aToggleMode); } \
828 : NS_SCRIPTABLE NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) { return _to GetResult(aResult); } \
829 : NS_SCRIPTABLE NS_IMETHOD SetResult(nsINavHistoryResult *aResult) { return _to SetResult(aResult); }
830 :
831 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
832 : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULTOBSERVER(_to) \
833 : NS_SCRIPTABLE NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, PRUint32 aNewIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeInserted(aParent, aNode, aNewIndex); } \
834 : NS_SCRIPTABLE NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, PRUint32 aOldIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeRemoved(aParent, aItem, aOldIndex); } \
835 : NS_SCRIPTABLE NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, PRUint32 aOldIndex, nsINavHistoryContainerResultNode *aNewParent, PRUint32 aNewIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeMoved(aNode, aOldParent, aOldIndex, aNewParent, aNewIndex); } \
836 : NS_SCRIPTABLE NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeTitleChanged(aNode, aNewTitle); } \
837 : NS_SCRIPTABLE NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeURIChanged(aNode, aNewURI); } \
838 : NS_SCRIPTABLE NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeIconChanged(aNode); } \
839 : NS_SCRIPTABLE NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aNewVisitDate, PRUint32 aNewAccessCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeHistoryDetailsChanged(aNode, aNewVisitDate, aNewAccessCount); } \
840 : NS_SCRIPTABLE NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeTagsChanged(aNode); } \
841 : NS_SCRIPTABLE NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeKeywordChanged(aNode, aNewKeyword); } \
842 : NS_SCRIPTABLE NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeAnnotationChanged(aNode, aAnnoName); } \
843 : NS_SCRIPTABLE NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeDateAddedChanged(aNode, aNewValue); } \
844 : NS_SCRIPTABLE NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeLastModifiedChanged(aNode, aNewValue); } \
845 : NS_SCRIPTABLE NS_IMETHOD NodeReplaced(nsINavHistoryContainerResultNode *aParentNode, nsINavHistoryResultNode *aOldNode, nsINavHistoryResultNode *aNewNode, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeReplaced(aParentNode, aOldNode, aNewNode, aIndex); } \
846 : NS_SCRIPTABLE NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, PRUint32 aOldState, PRUint32 aNewState) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainerStateChanged(aContainerNode, aOldState, aNewState); } \
847 : NS_SCRIPTABLE NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateContainer(aContainerNode); } \
848 : NS_SCRIPTABLE NS_IMETHOD SortingChanged(PRUint16 sortingMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SortingChanged(sortingMode); } \
849 : NS_SCRIPTABLE NS_IMETHOD Batching(bool aToggleMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->Batching(aToggleMode); } \
850 : NS_SCRIPTABLE NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
851 : NS_SCRIPTABLE NS_IMETHOD SetResult(nsINavHistoryResult *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResult(aResult); }
852 :
853 : #if 0
854 : /* Use the code below as a template for the implementation class for this interface. */
855 :
856 : /* Header file */
857 : class nsNavHistoryResultObserver : public nsINavHistoryResultObserver
858 : {
859 : public:
860 : NS_DECL_ISUPPORTS
861 : NS_DECL_NSINAVHISTORYRESULTOBSERVER
862 :
863 : nsNavHistoryResultObserver();
864 :
865 : private:
866 : ~nsNavHistoryResultObserver();
867 :
868 : protected:
869 : /* additional members */
870 : };
871 :
872 : /* Implementation file */
873 : NS_IMPL_ISUPPORTS1(nsNavHistoryResultObserver, nsINavHistoryResultObserver)
874 :
875 : nsNavHistoryResultObserver::nsNavHistoryResultObserver()
876 : {
877 : /* member initializers and constructor code */
878 : }
879 :
880 : nsNavHistoryResultObserver::~nsNavHistoryResultObserver()
881 : {
882 : /* destructor code */
883 : }
884 :
885 : /* void nodeInserted (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex); */
886 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, PRUint32 aNewIndex)
887 : {
888 : return NS_ERROR_NOT_IMPLEMENTED;
889 : }
890 :
891 : /* void nodeRemoved (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aItem, in unsigned long aOldIndex); */
892 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, PRUint32 aOldIndex)
893 : {
894 : return NS_ERROR_NOT_IMPLEMENTED;
895 : }
896 :
897 : /* void nodeMoved (in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex); */
898 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, PRUint32 aOldIndex, nsINavHistoryContainerResultNode *aNewParent, PRUint32 aNewIndex)
899 : {
900 : return NS_ERROR_NOT_IMPLEMENTED;
901 : }
902 :
903 : /* void nodeTitleChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle); */
904 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle)
905 : {
906 : return NS_ERROR_NOT_IMPLEMENTED;
907 : }
908 :
909 : /* void nodeURIChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewURI); */
910 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewURI)
911 : {
912 : return NS_ERROR_NOT_IMPLEMENTED;
913 : }
914 :
915 : /* void nodeIconChanged (in nsINavHistoryResultNode aNode); */
916 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeIconChanged(nsINavHistoryResultNode *aNode)
917 : {
918 : return NS_ERROR_NOT_IMPLEMENTED;
919 : }
920 :
921 : /* void nodeHistoryDetailsChanged (in nsINavHistoryResultNode aNode, in PRTime aNewVisitDate, in unsigned long aNewAccessCount); */
922 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aNewVisitDate, PRUint32 aNewAccessCount)
923 : {
924 : return NS_ERROR_NOT_IMPLEMENTED;
925 : }
926 :
927 : /* void nodeTagsChanged (in nsINavHistoryResultNode aNode); */
928 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeTagsChanged(nsINavHistoryResultNode *aNode)
929 : {
930 : return NS_ERROR_NOT_IMPLEMENTED;
931 : }
932 :
933 : /* void nodeKeywordChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword); */
934 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword)
935 : {
936 : return NS_ERROR_NOT_IMPLEMENTED;
937 : }
938 :
939 : /* void nodeAnnotationChanged (in nsINavHistoryResultNode aNode, in AUTF8String aAnnoName); */
940 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName)
941 : {
942 : return NS_ERROR_NOT_IMPLEMENTED;
943 : }
944 :
945 : /* void nodeDateAddedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
946 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue)
947 : {
948 : return NS_ERROR_NOT_IMPLEMENTED;
949 : }
950 :
951 : /* void nodeLastModifiedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
952 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue)
953 : {
954 : return NS_ERROR_NOT_IMPLEMENTED;
955 : }
956 :
957 : /* void nodeReplaced (in nsINavHistoryContainerResultNode aParentNode, in nsINavHistoryResultNode aOldNode, in nsINavHistoryResultNode aNewNode, in unsigned long aIndex); */
958 : NS_IMETHODIMP nsNavHistoryResultObserver::NodeReplaced(nsINavHistoryContainerResultNode *aParentNode, nsINavHistoryResultNode *aOldNode, nsINavHistoryResultNode *aNewNode, PRUint32 aIndex)
959 : {
960 : return NS_ERROR_NOT_IMPLEMENTED;
961 : }
962 :
963 : /* void containerStateChanged (in nsINavHistoryContainerResultNode aContainerNode, in unsigned long aOldState, in unsigned long aNewState); */
964 : NS_IMETHODIMP nsNavHistoryResultObserver::ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, PRUint32 aOldState, PRUint32 aNewState)
965 : {
966 : return NS_ERROR_NOT_IMPLEMENTED;
967 : }
968 :
969 : /* void invalidateContainer (in nsINavHistoryContainerResultNode aContainerNode); */
970 : NS_IMETHODIMP nsNavHistoryResultObserver::InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode)
971 : {
972 : return NS_ERROR_NOT_IMPLEMENTED;
973 : }
974 :
975 : /* void sortingChanged (in unsigned short sortingMode); */
976 : NS_IMETHODIMP nsNavHistoryResultObserver::SortingChanged(PRUint16 sortingMode)
977 : {
978 : return NS_ERROR_NOT_IMPLEMENTED;
979 : }
980 :
981 : /* void batching (in boolean aToggleMode); */
982 : NS_IMETHODIMP nsNavHistoryResultObserver::Batching(bool aToggleMode)
983 : {
984 : return NS_ERROR_NOT_IMPLEMENTED;
985 : }
986 :
987 : /* attribute nsINavHistoryResult result; */
988 : NS_IMETHODIMP nsNavHistoryResultObserver::GetResult(nsINavHistoryResult * *aResult)
989 : {
990 : return NS_ERROR_NOT_IMPLEMENTED;
991 : }
992 : NS_IMETHODIMP nsNavHistoryResultObserver::SetResult(nsINavHistoryResult *aResult)
993 : {
994 : return NS_ERROR_NOT_IMPLEMENTED;
995 : }
996 :
997 : /* End of implementation class template. */
998 : #endif
999 :
1000 :
1001 : /* starting interface: nsINavHistoryResultTreeViewer */
1002 : #define NS_INAVHISTORYRESULTTREEVIEWER_IID_STR "f8b518c0-1faf-11df-8a39-0800200c9a66"
1003 :
1004 : #define NS_INAVHISTORYRESULTTREEVIEWER_IID \
1005 : {0xf8b518c0, 0x1faf, 0x11df, \
1006 : { 0x8a, 0x39, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
1007 :
1008 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryResultTreeViewer : public nsINavHistoryResultObserver {
1009 : public:
1010 :
1011 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULTTREEVIEWER_IID)
1012 :
1013 : /* nsINavHistoryResultNode nodeForTreeIndex (in unsigned long aIndex); */
1014 : NS_SCRIPTABLE NS_IMETHOD NodeForTreeIndex(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM) = 0;
1015 :
1016 : enum {
1017 : INDEX_INVISIBLE = 4294967295U
1018 : };
1019 :
1020 : /* unsigned long treeIndexForNode (in nsINavHistoryResultNode aNode); */
1021 : NS_SCRIPTABLE NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM) = 0;
1022 :
1023 : };
1024 :
1025 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResultTreeViewer, NS_INAVHISTORYRESULTTREEVIEWER_IID)
1026 :
1027 : /* Use this macro when declaring classes that implement this interface. */
1028 : #define NS_DECL_NSINAVHISTORYRESULTTREEVIEWER \
1029 : NS_SCRIPTABLE NS_IMETHOD NodeForTreeIndex(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM); \
1030 : NS_SCRIPTABLE NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM);
1031 :
1032 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1033 : #define NS_FORWARD_NSINAVHISTORYRESULTTREEVIEWER(_to) \
1034 : NS_SCRIPTABLE NS_IMETHOD NodeForTreeIndex(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM) { return _to NodeForTreeIndex(aIndex, _retval); } \
1035 : NS_SCRIPTABLE NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM) { return _to TreeIndexForNode(aNode, _retval); }
1036 :
1037 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1038 : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULTTREEVIEWER(_to) \
1039 : NS_SCRIPTABLE NS_IMETHOD NodeForTreeIndex(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeForTreeIndex(aIndex, _retval); } \
1040 : NS_SCRIPTABLE NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TreeIndexForNode(aNode, _retval); }
1041 :
1042 : #if 0
1043 : /* Use the code below as a template for the implementation class for this interface. */
1044 :
1045 : /* Header file */
1046 : class nsNavHistoryResultTreeViewer : public nsINavHistoryResultTreeViewer
1047 : {
1048 : public:
1049 : NS_DECL_ISUPPORTS
1050 : NS_DECL_NSINAVHISTORYRESULTTREEVIEWER
1051 :
1052 : nsNavHistoryResultTreeViewer();
1053 :
1054 : private:
1055 : ~nsNavHistoryResultTreeViewer();
1056 :
1057 : protected:
1058 : /* additional members */
1059 : };
1060 :
1061 : /* Implementation file */
1062 : NS_IMPL_ISUPPORTS1(nsNavHistoryResultTreeViewer, nsINavHistoryResultTreeViewer)
1063 :
1064 : nsNavHistoryResultTreeViewer::nsNavHistoryResultTreeViewer()
1065 : {
1066 : /* member initializers and constructor code */
1067 : }
1068 :
1069 : nsNavHistoryResultTreeViewer::~nsNavHistoryResultTreeViewer()
1070 : {
1071 : /* destructor code */
1072 : }
1073 :
1074 : /* nsINavHistoryResultNode nodeForTreeIndex (in unsigned long aIndex); */
1075 : NS_IMETHODIMP nsNavHistoryResultTreeViewer::NodeForTreeIndex(PRUint32 aIndex, nsINavHistoryResultNode * *_retval NS_OUTPARAM)
1076 : {
1077 : return NS_ERROR_NOT_IMPLEMENTED;
1078 : }
1079 :
1080 : /* unsigned long treeIndexForNode (in nsINavHistoryResultNode aNode); */
1081 : NS_IMETHODIMP nsNavHistoryResultTreeViewer::TreeIndexForNode(nsINavHistoryResultNode *aNode, PRUint32 *_retval NS_OUTPARAM)
1082 : {
1083 : return NS_ERROR_NOT_IMPLEMENTED;
1084 : }
1085 :
1086 : /* End of implementation class template. */
1087 : #endif
1088 :
1089 :
1090 : /* starting interface: nsINavHistoryResult */
1091 : #define NS_INAVHISTORYRESULT_IID_STR "c2229ce3-2159-4001-859c-7013c52f7619"
1092 :
1093 : #define NS_INAVHISTORYRESULT_IID \
1094 : {0xc2229ce3, 0x2159, 0x4001, \
1095 : { 0x85, 0x9c, 0x70, 0x13, 0xc5, 0x2f, 0x76, 0x19 }}
1096 :
1097 873 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryResult : public nsISupports {
1098 : public:
1099 :
1100 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULT_IID)
1101 :
1102 : /* attribute unsigned short sortingMode; */
1103 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode) = 0;
1104 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode) = 0;
1105 :
1106 : /* attribute AUTF8String sortingAnnotation; */
1107 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) = 0;
1108 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) = 0;
1109 :
1110 : /* attribute boolean suppressNotifications; */
1111 : NS_SCRIPTABLE NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) = 0;
1112 : NS_SCRIPTABLE NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) = 0;
1113 :
1114 : /* void addObserver (in nsINavHistoryResultObserver aObserver, in boolean aOwnsWeak); */
1115 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) = 0;
1116 :
1117 : /* void removeObserver (in nsINavHistoryResultObserver aObserver); */
1118 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) = 0;
1119 :
1120 : /* readonly attribute nsINavHistoryContainerResultNode root; */
1121 : NS_SCRIPTABLE NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) = 0;
1122 :
1123 : };
1124 :
1125 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResult, NS_INAVHISTORYRESULT_IID)
1126 :
1127 : /* Use this macro when declaring classes that implement this interface. */
1128 : #define NS_DECL_NSINAVHISTORYRESULT \
1129 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode); \
1130 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode); \
1131 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation); \
1132 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation); \
1133 : NS_SCRIPTABLE NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications); \
1134 : NS_SCRIPTABLE NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications); \
1135 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak); \
1136 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver); \
1137 : NS_SCRIPTABLE NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot);
1138 :
1139 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1140 : #define NS_FORWARD_NSINAVHISTORYRESULT(_to) \
1141 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode) { return _to GetSortingMode(aSortingMode); } \
1142 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode) { return _to SetSortingMode(aSortingMode); } \
1143 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) { return _to GetSortingAnnotation(aSortingAnnotation); } \
1144 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) { return _to SetSortingAnnotation(aSortingAnnotation); } \
1145 : NS_SCRIPTABLE NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) { return _to GetSuppressNotifications(aSuppressNotifications); } \
1146 : NS_SCRIPTABLE NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) { return _to SetSuppressNotifications(aSuppressNotifications); } \
1147 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) { return _to AddObserver(aObserver, aOwnsWeak); } \
1148 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) { return _to RemoveObserver(aObserver); } \
1149 : NS_SCRIPTABLE NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) { return _to GetRoot(aRoot); }
1150 :
1151 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1152 : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULT(_to) \
1153 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingMode(aSortingMode); } \
1154 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingMode(aSortingMode); } \
1155 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingAnnotation(aSortingAnnotation); } \
1156 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingAnnotation(aSortingAnnotation); } \
1157 : NS_SCRIPTABLE NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressNotifications(aSuppressNotifications); } \
1158 : NS_SCRIPTABLE NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressNotifications(aSuppressNotifications); } \
1159 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver, aOwnsWeak); } \
1160 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
1161 : NS_SCRIPTABLE NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); }
1162 :
1163 : #if 0
1164 : /* Use the code below as a template for the implementation class for this interface. */
1165 :
1166 : /* Header file */
1167 : class nsNavHistoryResult : public nsINavHistoryResult
1168 : {
1169 : public:
1170 : NS_DECL_ISUPPORTS
1171 : NS_DECL_NSINAVHISTORYRESULT
1172 :
1173 : nsNavHistoryResult();
1174 :
1175 : private:
1176 : ~nsNavHistoryResult();
1177 :
1178 : protected:
1179 : /* additional members */
1180 : };
1181 :
1182 : /* Implementation file */
1183 : NS_IMPL_ISUPPORTS1(nsNavHistoryResult, nsINavHistoryResult)
1184 :
1185 : nsNavHistoryResult::nsNavHistoryResult()
1186 : {
1187 : /* member initializers and constructor code */
1188 : }
1189 :
1190 : nsNavHistoryResult::~nsNavHistoryResult()
1191 : {
1192 : /* destructor code */
1193 : }
1194 :
1195 : /* attribute unsigned short sortingMode; */
1196 : NS_IMETHODIMP nsNavHistoryResult::GetSortingMode(PRUint16 *aSortingMode)
1197 : {
1198 : return NS_ERROR_NOT_IMPLEMENTED;
1199 : }
1200 : NS_IMETHODIMP nsNavHistoryResult::SetSortingMode(PRUint16 aSortingMode)
1201 : {
1202 : return NS_ERROR_NOT_IMPLEMENTED;
1203 : }
1204 :
1205 : /* attribute AUTF8String sortingAnnotation; */
1206 : NS_IMETHODIMP nsNavHistoryResult::GetSortingAnnotation(nsACString & aSortingAnnotation)
1207 : {
1208 : return NS_ERROR_NOT_IMPLEMENTED;
1209 : }
1210 : NS_IMETHODIMP nsNavHistoryResult::SetSortingAnnotation(const nsACString & aSortingAnnotation)
1211 : {
1212 : return NS_ERROR_NOT_IMPLEMENTED;
1213 : }
1214 :
1215 : /* attribute boolean suppressNotifications; */
1216 : NS_IMETHODIMP nsNavHistoryResult::GetSuppressNotifications(bool *aSuppressNotifications)
1217 : {
1218 : return NS_ERROR_NOT_IMPLEMENTED;
1219 : }
1220 : NS_IMETHODIMP nsNavHistoryResult::SetSuppressNotifications(bool aSuppressNotifications)
1221 : {
1222 : return NS_ERROR_NOT_IMPLEMENTED;
1223 : }
1224 :
1225 : /* void addObserver (in nsINavHistoryResultObserver aObserver, in boolean aOwnsWeak); */
1226 : NS_IMETHODIMP nsNavHistoryResult::AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak)
1227 : {
1228 : return NS_ERROR_NOT_IMPLEMENTED;
1229 : }
1230 :
1231 : /* void removeObserver (in nsINavHistoryResultObserver aObserver); */
1232 : NS_IMETHODIMP nsNavHistoryResult::RemoveObserver(nsINavHistoryResultObserver *aObserver)
1233 : {
1234 : return NS_ERROR_NOT_IMPLEMENTED;
1235 : }
1236 :
1237 : /* readonly attribute nsINavHistoryContainerResultNode root; */
1238 : NS_IMETHODIMP nsNavHistoryResult::GetRoot(nsINavHistoryContainerResultNode * *aRoot)
1239 : {
1240 : return NS_ERROR_NOT_IMPLEMENTED;
1241 : }
1242 :
1243 : /* End of implementation class template. */
1244 : #endif
1245 :
1246 :
1247 : /* starting interface: nsINavHistoryObserver */
1248 : #define NS_INAVHISTORYOBSERVER_IID_STR "c837f6ba-6ad7-4810-a425-8ce29e05d17e"
1249 :
1250 : #define NS_INAVHISTORYOBSERVER_IID \
1251 : {0xc837f6ba, 0x6ad7, 0x4810, \
1252 : { 0xa4, 0x25, 0x8c, 0xe2, 0x9e, 0x05, 0xd1, 0x7e }}
1253 :
1254 1102 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryObserver : public nsISupports {
1255 : public:
1256 :
1257 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYOBSERVER_IID)
1258 :
1259 : /* void onBeginUpdateBatch (); */
1260 : NS_SCRIPTABLE NS_IMETHOD OnBeginUpdateBatch(void) = 0;
1261 :
1262 : /* void onEndUpdateBatch (); */
1263 : NS_SCRIPTABLE NS_IMETHOD OnEndUpdateBatch(void) = 0;
1264 :
1265 : /* void onVisit (in nsIURI aURI, in long long aVisitID, in PRTime aTime, in long long aSessionID, in long long aReferringID, in unsigned long aTransitionType, in ACString aGUID, out unsigned long aAdded); */
1266 : NS_SCRIPTABLE NS_IMETHOD OnVisit(nsIURI *aURI, PRInt64 aVisitID, PRTime aTime, PRInt64 aSessionID, PRInt64 aReferringID, PRUint32 aTransitionType, const nsACString & aGUID, PRUint32 *aAdded NS_OUTPARAM) = 0;
1267 :
1268 : /* void onTitleChanged (in nsIURI aURI, in AString aPageTitle, in ACString aGUID); */
1269 : NS_SCRIPTABLE NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) = 0;
1270 :
1271 : enum {
1272 : REASON_DELETED = 0U,
1273 : REASON_EXPIRED = 1U
1274 : };
1275 :
1276 : /* void onBeforeDeleteURI (in nsIURI aURI, in ACString aGUID, in unsigned short aReason); */
1277 : NS_SCRIPTABLE NS_IMETHOD OnBeforeDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason) = 0;
1278 :
1279 : /* void onDeleteURI (in nsIURI aURI, in ACString aGUID, in unsigned short aReason); */
1280 : NS_SCRIPTABLE NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason) = 0;
1281 :
1282 : /* void onClearHistory (); */
1283 : NS_SCRIPTABLE NS_IMETHOD OnClearHistory(void) = 0;
1284 :
1285 : enum {
1286 : ATTRIBUTE_FAVICON = 3U
1287 : };
1288 :
1289 : /* void onPageChanged (in nsIURI aURI, in unsigned long aChangedAttribute, in AString aNewValue, in ACString aGUID); */
1290 : NS_SCRIPTABLE NS_IMETHOD OnPageChanged(nsIURI *aURI, PRUint32 aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) = 0;
1291 :
1292 : /* void onDeleteVisits (in nsIURI aURI, in PRTime aVisitTime, in ACString aGUID, in unsigned short aReason); */
1293 : NS_SCRIPTABLE NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, PRUint16 aReason) = 0;
1294 :
1295 : };
1296 :
1297 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryObserver, NS_INAVHISTORYOBSERVER_IID)
1298 :
1299 : /* Use this macro when declaring classes that implement this interface. */
1300 : #define NS_DECL_NSINAVHISTORYOBSERVER \
1301 : NS_SCRIPTABLE NS_IMETHOD OnBeginUpdateBatch(void); \
1302 : NS_SCRIPTABLE NS_IMETHOD OnEndUpdateBatch(void); \
1303 : NS_SCRIPTABLE NS_IMETHOD OnVisit(nsIURI *aURI, PRInt64 aVisitID, PRTime aTime, PRInt64 aSessionID, PRInt64 aReferringID, PRUint32 aTransitionType, const nsACString & aGUID, PRUint32 *aAdded NS_OUTPARAM); \
1304 : NS_SCRIPTABLE NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID); \
1305 : NS_SCRIPTABLE NS_IMETHOD OnBeforeDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason); \
1306 : NS_SCRIPTABLE NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason); \
1307 : NS_SCRIPTABLE NS_IMETHOD OnClearHistory(void); \
1308 : NS_SCRIPTABLE NS_IMETHOD OnPageChanged(nsIURI *aURI, PRUint32 aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID); \
1309 : NS_SCRIPTABLE NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, PRUint16 aReason);
1310 :
1311 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1312 : #define NS_FORWARD_NSINAVHISTORYOBSERVER(_to) \
1313 : NS_SCRIPTABLE NS_IMETHOD OnBeginUpdateBatch(void) { return _to OnBeginUpdateBatch(); } \
1314 : NS_SCRIPTABLE NS_IMETHOD OnEndUpdateBatch(void) { return _to OnEndUpdateBatch(); } \
1315 : NS_SCRIPTABLE NS_IMETHOD OnVisit(nsIURI *aURI, PRInt64 aVisitID, PRTime aTime, PRInt64 aSessionID, PRInt64 aReferringID, PRUint32 aTransitionType, const nsACString & aGUID, PRUint32 *aAdded NS_OUTPARAM) { return _to OnVisit(aURI, aVisitID, aTime, aSessionID, aReferringID, aTransitionType, aGUID, aAdded); } \
1316 : NS_SCRIPTABLE NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) { return _to OnTitleChanged(aURI, aPageTitle, aGUID); } \
1317 : NS_SCRIPTABLE NS_IMETHOD OnBeforeDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason) { return _to OnBeforeDeleteURI(aURI, aGUID, aReason); } \
1318 : NS_SCRIPTABLE NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason) { return _to OnDeleteURI(aURI, aGUID, aReason); } \
1319 : NS_SCRIPTABLE NS_IMETHOD OnClearHistory(void) { return _to OnClearHistory(); } \
1320 : NS_SCRIPTABLE NS_IMETHOD OnPageChanged(nsIURI *aURI, PRUint32 aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) { return _to OnPageChanged(aURI, aChangedAttribute, aNewValue, aGUID); } \
1321 : NS_SCRIPTABLE NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, PRUint16 aReason) { return _to OnDeleteVisits(aURI, aVisitTime, aGUID, aReason); }
1322 :
1323 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1324 : #define NS_FORWARD_SAFE_NSINAVHISTORYOBSERVER(_to) \
1325 : NS_SCRIPTABLE NS_IMETHOD OnBeginUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginUpdateBatch(); } \
1326 : NS_SCRIPTABLE NS_IMETHOD OnEndUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndUpdateBatch(); } \
1327 : NS_SCRIPTABLE NS_IMETHOD OnVisit(nsIURI *aURI, PRInt64 aVisitID, PRTime aTime, PRInt64 aSessionID, PRInt64 aReferringID, PRUint32 aTransitionType, const nsACString & aGUID, PRUint32 *aAdded NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnVisit(aURI, aVisitID, aTime, aSessionID, aReferringID, aTransitionType, aGUID, aAdded); } \
1328 : NS_SCRIPTABLE NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTitleChanged(aURI, aPageTitle, aGUID); } \
1329 : NS_SCRIPTABLE NS_IMETHOD OnBeforeDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeforeDeleteURI(aURI, aGUID, aReason); } \
1330 : NS_SCRIPTABLE NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteURI(aURI, aGUID, aReason); } \
1331 : NS_SCRIPTABLE NS_IMETHOD OnClearHistory(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClearHistory(); } \
1332 : NS_SCRIPTABLE NS_IMETHOD OnPageChanged(nsIURI *aURI, PRUint32 aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPageChanged(aURI, aChangedAttribute, aNewValue, aGUID); } \
1333 : NS_SCRIPTABLE NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, PRUint16 aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteVisits(aURI, aVisitTime, aGUID, aReason); }
1334 :
1335 : #if 0
1336 : /* Use the code below as a template for the implementation class for this interface. */
1337 :
1338 : /* Header file */
1339 : class nsNavHistoryObserver : public nsINavHistoryObserver
1340 : {
1341 : public:
1342 : NS_DECL_ISUPPORTS
1343 : NS_DECL_NSINAVHISTORYOBSERVER
1344 :
1345 : nsNavHistoryObserver();
1346 :
1347 : private:
1348 : ~nsNavHistoryObserver();
1349 :
1350 : protected:
1351 : /* additional members */
1352 : };
1353 :
1354 : /* Implementation file */
1355 : NS_IMPL_ISUPPORTS1(nsNavHistoryObserver, nsINavHistoryObserver)
1356 :
1357 : nsNavHistoryObserver::nsNavHistoryObserver()
1358 : {
1359 : /* member initializers and constructor code */
1360 : }
1361 :
1362 : nsNavHistoryObserver::~nsNavHistoryObserver()
1363 : {
1364 : /* destructor code */
1365 : }
1366 :
1367 : /* void onBeginUpdateBatch (); */
1368 : NS_IMETHODIMP nsNavHistoryObserver::OnBeginUpdateBatch()
1369 : {
1370 : return NS_ERROR_NOT_IMPLEMENTED;
1371 : }
1372 :
1373 : /* void onEndUpdateBatch (); */
1374 : NS_IMETHODIMP nsNavHistoryObserver::OnEndUpdateBatch()
1375 : {
1376 : return NS_ERROR_NOT_IMPLEMENTED;
1377 : }
1378 :
1379 : /* void onVisit (in nsIURI aURI, in long long aVisitID, in PRTime aTime, in long long aSessionID, in long long aReferringID, in unsigned long aTransitionType, in ACString aGUID, out unsigned long aAdded); */
1380 : NS_IMETHODIMP nsNavHistoryObserver::OnVisit(nsIURI *aURI, PRInt64 aVisitID, PRTime aTime, PRInt64 aSessionID, PRInt64 aReferringID, PRUint32 aTransitionType, const nsACString & aGUID, PRUint32 *aAdded NS_OUTPARAM)
1381 : {
1382 : return NS_ERROR_NOT_IMPLEMENTED;
1383 : }
1384 :
1385 : /* void onTitleChanged (in nsIURI aURI, in AString aPageTitle, in ACString aGUID); */
1386 : NS_IMETHODIMP nsNavHistoryObserver::OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID)
1387 : {
1388 : return NS_ERROR_NOT_IMPLEMENTED;
1389 : }
1390 :
1391 : /* void onBeforeDeleteURI (in nsIURI aURI, in ACString aGUID, in unsigned short aReason); */
1392 : NS_IMETHODIMP nsNavHistoryObserver::OnBeforeDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason)
1393 : {
1394 : return NS_ERROR_NOT_IMPLEMENTED;
1395 : }
1396 :
1397 : /* void onDeleteURI (in nsIURI aURI, in ACString aGUID, in unsigned short aReason); */
1398 : NS_IMETHODIMP nsNavHistoryObserver::OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, PRUint16 aReason)
1399 : {
1400 : return NS_ERROR_NOT_IMPLEMENTED;
1401 : }
1402 :
1403 : /* void onClearHistory (); */
1404 : NS_IMETHODIMP nsNavHistoryObserver::OnClearHistory()
1405 : {
1406 : return NS_ERROR_NOT_IMPLEMENTED;
1407 : }
1408 :
1409 : /* void onPageChanged (in nsIURI aURI, in unsigned long aChangedAttribute, in AString aNewValue, in ACString aGUID); */
1410 : NS_IMETHODIMP nsNavHistoryObserver::OnPageChanged(nsIURI *aURI, PRUint32 aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID)
1411 : {
1412 : return NS_ERROR_NOT_IMPLEMENTED;
1413 : }
1414 :
1415 : /* void onDeleteVisits (in nsIURI aURI, in PRTime aVisitTime, in ACString aGUID, in unsigned short aReason); */
1416 : NS_IMETHODIMP nsNavHistoryObserver::OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, PRUint16 aReason)
1417 : {
1418 : return NS_ERROR_NOT_IMPLEMENTED;
1419 : }
1420 :
1421 : /* End of implementation class template. */
1422 : #endif
1423 :
1424 :
1425 : /* starting interface: nsINavHistoryQuery */
1426 : #define NS_INAVHISTORYQUERY_IID_STR "dc87ae79-22f1-4dcf-975b-852b01d210cb"
1427 :
1428 : #define NS_INAVHISTORYQUERY_IID \
1429 : {0xdc87ae79, 0x22f1, 0x4dcf, \
1430 : { 0x97, 0x5b, 0x85, 0x2b, 0x01, 0xd2, 0x10, 0xcb }}
1431 :
1432 7644 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryQuery : public nsISupports {
1433 : public:
1434 :
1435 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYQUERY_IID)
1436 :
1437 : enum {
1438 : TIME_RELATIVE_EPOCH = 0U,
1439 : TIME_RELATIVE_TODAY = 1U,
1440 : TIME_RELATIVE_NOW = 2U
1441 : };
1442 :
1443 : /* attribute PRTime beginTime; */
1444 : NS_SCRIPTABLE NS_IMETHOD GetBeginTime(PRTime *aBeginTime) = 0;
1445 : NS_SCRIPTABLE NS_IMETHOD SetBeginTime(PRTime aBeginTime) = 0;
1446 :
1447 : /* attribute unsigned long beginTimeReference; */
1448 : NS_SCRIPTABLE NS_IMETHOD GetBeginTimeReference(PRUint32 *aBeginTimeReference) = 0;
1449 : NS_SCRIPTABLE NS_IMETHOD SetBeginTimeReference(PRUint32 aBeginTimeReference) = 0;
1450 :
1451 : /* readonly attribute boolean hasBeginTime; */
1452 : NS_SCRIPTABLE NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) = 0;
1453 :
1454 : /* readonly attribute PRTime absoluteBeginTime; */
1455 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) = 0;
1456 :
1457 : /* attribute PRTime endTime; */
1458 : NS_SCRIPTABLE NS_IMETHOD GetEndTime(PRTime *aEndTime) = 0;
1459 : NS_SCRIPTABLE NS_IMETHOD SetEndTime(PRTime aEndTime) = 0;
1460 :
1461 : /* attribute unsigned long endTimeReference; */
1462 : NS_SCRIPTABLE NS_IMETHOD GetEndTimeReference(PRUint32 *aEndTimeReference) = 0;
1463 : NS_SCRIPTABLE NS_IMETHOD SetEndTimeReference(PRUint32 aEndTimeReference) = 0;
1464 :
1465 : /* readonly attribute boolean hasEndTime; */
1466 : NS_SCRIPTABLE NS_IMETHOD GetHasEndTime(bool *aHasEndTime) = 0;
1467 :
1468 : /* readonly attribute PRTime absoluteEndTime; */
1469 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) = 0;
1470 :
1471 : /* attribute AString searchTerms; */
1472 : NS_SCRIPTABLE NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) = 0;
1473 : NS_SCRIPTABLE NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) = 0;
1474 :
1475 : /* readonly attribute boolean hasSearchTerms; */
1476 : NS_SCRIPTABLE NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) = 0;
1477 :
1478 : /* attribute long minVisits; */
1479 : NS_SCRIPTABLE NS_IMETHOD GetMinVisits(PRInt32 *aMinVisits) = 0;
1480 : NS_SCRIPTABLE NS_IMETHOD SetMinVisits(PRInt32 aMinVisits) = 0;
1481 :
1482 : /* attribute long maxVisits; */
1483 : NS_SCRIPTABLE NS_IMETHOD GetMaxVisits(PRInt32 *aMaxVisits) = 0;
1484 : NS_SCRIPTABLE NS_IMETHOD SetMaxVisits(PRInt32 aMaxVisits) = 0;
1485 :
1486 : /* void setTransitions ([array, size_is (count), const] in unsigned long transitions, in unsigned long count); */
1487 : NS_SCRIPTABLE NS_IMETHOD SetTransitions(const PRUint32 *transitions, PRUint32 count) = 0;
1488 :
1489 : /* void getTransitions ([optional] out unsigned long count, [array, size_is (count), retval] out unsigned long transitions); */
1490 : NS_SCRIPTABLE NS_IMETHOD GetTransitions(PRUint32 *count NS_OUTPARAM, PRUint32 **transitions NS_OUTPARAM) = 0;
1491 :
1492 : /* readonly attribute unsigned long transitionCount; */
1493 : NS_SCRIPTABLE NS_IMETHOD GetTransitionCount(PRUint32 *aTransitionCount) = 0;
1494 :
1495 : /* attribute boolean onlyBookmarked; */
1496 : NS_SCRIPTABLE NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) = 0;
1497 : NS_SCRIPTABLE NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) = 0;
1498 :
1499 : /* attribute boolean domainIsHost; */
1500 : NS_SCRIPTABLE NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) = 0;
1501 : NS_SCRIPTABLE NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) = 0;
1502 :
1503 : /* attribute AUTF8String domain; */
1504 : NS_SCRIPTABLE NS_IMETHOD GetDomain(nsACString & aDomain) = 0;
1505 : NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsACString & aDomain) = 0;
1506 :
1507 : /* readonly attribute boolean hasDomain; */
1508 : NS_SCRIPTABLE NS_IMETHOD GetHasDomain(bool *aHasDomain) = 0;
1509 :
1510 : /* attribute boolean uriIsPrefix; */
1511 : NS_SCRIPTABLE NS_IMETHOD GetUriIsPrefix(bool *aUriIsPrefix) = 0;
1512 : NS_SCRIPTABLE NS_IMETHOD SetUriIsPrefix(bool aUriIsPrefix) = 0;
1513 :
1514 : /* attribute nsIURI uri; */
1515 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsIURI * *aUri) = 0;
1516 : NS_SCRIPTABLE NS_IMETHOD SetUri(nsIURI *aUri) = 0;
1517 :
1518 : /* readonly attribute boolean hasUri; */
1519 : NS_SCRIPTABLE NS_IMETHOD GetHasUri(bool *aHasUri) = 0;
1520 :
1521 : /* attribute boolean annotationIsNot; */
1522 : NS_SCRIPTABLE NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) = 0;
1523 : NS_SCRIPTABLE NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) = 0;
1524 :
1525 : /* attribute AUTF8String annotation; */
1526 : NS_SCRIPTABLE NS_IMETHOD GetAnnotation(nsACString & aAnnotation) = 0;
1527 : NS_SCRIPTABLE NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) = 0;
1528 :
1529 : /* readonly attribute boolean hasAnnotation; */
1530 : NS_SCRIPTABLE NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) = 0;
1531 :
1532 : /* attribute nsIVariant tags; */
1533 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsIVariant * *aTags) = 0;
1534 : NS_SCRIPTABLE NS_IMETHOD SetTags(nsIVariant *aTags) = 0;
1535 :
1536 : /* attribute boolean tagsAreNot; */
1537 : NS_SCRIPTABLE NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) = 0;
1538 : NS_SCRIPTABLE NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) = 0;
1539 :
1540 : /* void getFolders ([optional] out unsigned long count, [array, size_is (count), retval] out long long folders); */
1541 : NS_SCRIPTABLE NS_IMETHOD GetFolders(PRUint32 *count NS_OUTPARAM, PRInt64 **folders NS_OUTPARAM) = 0;
1542 :
1543 : /* readonly attribute unsigned long folderCount; */
1544 : NS_SCRIPTABLE NS_IMETHOD GetFolderCount(PRUint32 *aFolderCount) = 0;
1545 :
1546 : /* void setFolders ([array, size_is (folderCount), const] in long long folders, in unsigned long folderCount); */
1547 : NS_SCRIPTABLE NS_IMETHOD SetFolders(const PRInt64 *folders, PRUint32 folderCount) = 0;
1548 :
1549 : /* nsINavHistoryQuery clone (); */
1550 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQuery * *_retval NS_OUTPARAM) = 0;
1551 :
1552 : };
1553 :
1554 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryQuery, NS_INAVHISTORYQUERY_IID)
1555 :
1556 : /* Use this macro when declaring classes that implement this interface. */
1557 : #define NS_DECL_NSINAVHISTORYQUERY \
1558 : NS_SCRIPTABLE NS_IMETHOD GetBeginTime(PRTime *aBeginTime); \
1559 : NS_SCRIPTABLE NS_IMETHOD SetBeginTime(PRTime aBeginTime); \
1560 : NS_SCRIPTABLE NS_IMETHOD GetBeginTimeReference(PRUint32 *aBeginTimeReference); \
1561 : NS_SCRIPTABLE NS_IMETHOD SetBeginTimeReference(PRUint32 aBeginTimeReference); \
1562 : NS_SCRIPTABLE NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime); \
1563 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime); \
1564 : NS_SCRIPTABLE NS_IMETHOD GetEndTime(PRTime *aEndTime); \
1565 : NS_SCRIPTABLE NS_IMETHOD SetEndTime(PRTime aEndTime); \
1566 : NS_SCRIPTABLE NS_IMETHOD GetEndTimeReference(PRUint32 *aEndTimeReference); \
1567 : NS_SCRIPTABLE NS_IMETHOD SetEndTimeReference(PRUint32 aEndTimeReference); \
1568 : NS_SCRIPTABLE NS_IMETHOD GetHasEndTime(bool *aHasEndTime); \
1569 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime); \
1570 : NS_SCRIPTABLE NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms); \
1571 : NS_SCRIPTABLE NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms); \
1572 : NS_SCRIPTABLE NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms); \
1573 : NS_SCRIPTABLE NS_IMETHOD GetMinVisits(PRInt32 *aMinVisits); \
1574 : NS_SCRIPTABLE NS_IMETHOD SetMinVisits(PRInt32 aMinVisits); \
1575 : NS_SCRIPTABLE NS_IMETHOD GetMaxVisits(PRInt32 *aMaxVisits); \
1576 : NS_SCRIPTABLE NS_IMETHOD SetMaxVisits(PRInt32 aMaxVisits); \
1577 : NS_SCRIPTABLE NS_IMETHOD SetTransitions(const PRUint32 *transitions, PRUint32 count); \
1578 : NS_SCRIPTABLE NS_IMETHOD GetTransitions(PRUint32 *count NS_OUTPARAM, PRUint32 **transitions NS_OUTPARAM); \
1579 : NS_SCRIPTABLE NS_IMETHOD GetTransitionCount(PRUint32 *aTransitionCount); \
1580 : NS_SCRIPTABLE NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked); \
1581 : NS_SCRIPTABLE NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked); \
1582 : NS_SCRIPTABLE NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost); \
1583 : NS_SCRIPTABLE NS_IMETHOD SetDomainIsHost(bool aDomainIsHost); \
1584 : NS_SCRIPTABLE NS_IMETHOD GetDomain(nsACString & aDomain); \
1585 : NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsACString & aDomain); \
1586 : NS_SCRIPTABLE NS_IMETHOD GetHasDomain(bool *aHasDomain); \
1587 : NS_SCRIPTABLE NS_IMETHOD GetUriIsPrefix(bool *aUriIsPrefix); \
1588 : NS_SCRIPTABLE NS_IMETHOD SetUriIsPrefix(bool aUriIsPrefix); \
1589 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsIURI * *aUri); \
1590 : NS_SCRIPTABLE NS_IMETHOD SetUri(nsIURI *aUri); \
1591 : NS_SCRIPTABLE NS_IMETHOD GetHasUri(bool *aHasUri); \
1592 : NS_SCRIPTABLE NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot); \
1593 : NS_SCRIPTABLE NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot); \
1594 : NS_SCRIPTABLE NS_IMETHOD GetAnnotation(nsACString & aAnnotation); \
1595 : NS_SCRIPTABLE NS_IMETHOD SetAnnotation(const nsACString & aAnnotation); \
1596 : NS_SCRIPTABLE NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation); \
1597 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsIVariant * *aTags); \
1598 : NS_SCRIPTABLE NS_IMETHOD SetTags(nsIVariant *aTags); \
1599 : NS_SCRIPTABLE NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot); \
1600 : NS_SCRIPTABLE NS_IMETHOD SetTagsAreNot(bool aTagsAreNot); \
1601 : NS_SCRIPTABLE NS_IMETHOD GetFolders(PRUint32 *count NS_OUTPARAM, PRInt64 **folders NS_OUTPARAM); \
1602 : NS_SCRIPTABLE NS_IMETHOD GetFolderCount(PRUint32 *aFolderCount); \
1603 : NS_SCRIPTABLE NS_IMETHOD SetFolders(const PRInt64 *folders, PRUint32 folderCount); \
1604 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQuery * *_retval NS_OUTPARAM);
1605 :
1606 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1607 : #define NS_FORWARD_NSINAVHISTORYQUERY(_to) \
1608 : NS_SCRIPTABLE NS_IMETHOD GetBeginTime(PRTime *aBeginTime) { return _to GetBeginTime(aBeginTime); } \
1609 : NS_SCRIPTABLE NS_IMETHOD SetBeginTime(PRTime aBeginTime) { return _to SetBeginTime(aBeginTime); } \
1610 : NS_SCRIPTABLE NS_IMETHOD GetBeginTimeReference(PRUint32 *aBeginTimeReference) { return _to GetBeginTimeReference(aBeginTimeReference); } \
1611 : NS_SCRIPTABLE NS_IMETHOD SetBeginTimeReference(PRUint32 aBeginTimeReference) { return _to SetBeginTimeReference(aBeginTimeReference); } \
1612 : NS_SCRIPTABLE NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) { return _to GetHasBeginTime(aHasBeginTime); } \
1613 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) { return _to GetAbsoluteBeginTime(aAbsoluteBeginTime); } \
1614 : NS_SCRIPTABLE NS_IMETHOD GetEndTime(PRTime *aEndTime) { return _to GetEndTime(aEndTime); } \
1615 : NS_SCRIPTABLE NS_IMETHOD SetEndTime(PRTime aEndTime) { return _to SetEndTime(aEndTime); } \
1616 : NS_SCRIPTABLE NS_IMETHOD GetEndTimeReference(PRUint32 *aEndTimeReference) { return _to GetEndTimeReference(aEndTimeReference); } \
1617 : NS_SCRIPTABLE NS_IMETHOD SetEndTimeReference(PRUint32 aEndTimeReference) { return _to SetEndTimeReference(aEndTimeReference); } \
1618 : NS_SCRIPTABLE NS_IMETHOD GetHasEndTime(bool *aHasEndTime) { return _to GetHasEndTime(aHasEndTime); } \
1619 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) { return _to GetAbsoluteEndTime(aAbsoluteEndTime); } \
1620 : NS_SCRIPTABLE NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) { return _to GetSearchTerms(aSearchTerms); } \
1621 : NS_SCRIPTABLE NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) { return _to SetSearchTerms(aSearchTerms); } \
1622 : NS_SCRIPTABLE NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) { return _to GetHasSearchTerms(aHasSearchTerms); } \
1623 : NS_SCRIPTABLE NS_IMETHOD GetMinVisits(PRInt32 *aMinVisits) { return _to GetMinVisits(aMinVisits); } \
1624 : NS_SCRIPTABLE NS_IMETHOD SetMinVisits(PRInt32 aMinVisits) { return _to SetMinVisits(aMinVisits); } \
1625 : NS_SCRIPTABLE NS_IMETHOD GetMaxVisits(PRInt32 *aMaxVisits) { return _to GetMaxVisits(aMaxVisits); } \
1626 : NS_SCRIPTABLE NS_IMETHOD SetMaxVisits(PRInt32 aMaxVisits) { return _to SetMaxVisits(aMaxVisits); } \
1627 : NS_SCRIPTABLE NS_IMETHOD SetTransitions(const PRUint32 *transitions, PRUint32 count) { return _to SetTransitions(transitions, count); } \
1628 : NS_SCRIPTABLE NS_IMETHOD GetTransitions(PRUint32 *count NS_OUTPARAM, PRUint32 **transitions NS_OUTPARAM) { return _to GetTransitions(count, transitions); } \
1629 : NS_SCRIPTABLE NS_IMETHOD GetTransitionCount(PRUint32 *aTransitionCount) { return _to GetTransitionCount(aTransitionCount); } \
1630 : NS_SCRIPTABLE NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) { return _to GetOnlyBookmarked(aOnlyBookmarked); } \
1631 : NS_SCRIPTABLE NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) { return _to SetOnlyBookmarked(aOnlyBookmarked); } \
1632 : NS_SCRIPTABLE NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) { return _to GetDomainIsHost(aDomainIsHost); } \
1633 : NS_SCRIPTABLE NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) { return _to SetDomainIsHost(aDomainIsHost); } \
1634 : NS_SCRIPTABLE NS_IMETHOD GetDomain(nsACString & aDomain) { return _to GetDomain(aDomain); } \
1635 : NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsACString & aDomain) { return _to SetDomain(aDomain); } \
1636 : NS_SCRIPTABLE NS_IMETHOD GetHasDomain(bool *aHasDomain) { return _to GetHasDomain(aHasDomain); } \
1637 : NS_SCRIPTABLE NS_IMETHOD GetUriIsPrefix(bool *aUriIsPrefix) { return _to GetUriIsPrefix(aUriIsPrefix); } \
1638 : NS_SCRIPTABLE NS_IMETHOD SetUriIsPrefix(bool aUriIsPrefix) { return _to SetUriIsPrefix(aUriIsPrefix); } \
1639 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsIURI * *aUri) { return _to GetUri(aUri); } \
1640 : NS_SCRIPTABLE NS_IMETHOD SetUri(nsIURI *aUri) { return _to SetUri(aUri); } \
1641 : NS_SCRIPTABLE NS_IMETHOD GetHasUri(bool *aHasUri) { return _to GetHasUri(aHasUri); } \
1642 : NS_SCRIPTABLE NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) { return _to GetAnnotationIsNot(aAnnotationIsNot); } \
1643 : NS_SCRIPTABLE NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) { return _to SetAnnotationIsNot(aAnnotationIsNot); } \
1644 : NS_SCRIPTABLE NS_IMETHOD GetAnnotation(nsACString & aAnnotation) { return _to GetAnnotation(aAnnotation); } \
1645 : NS_SCRIPTABLE NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) { return _to SetAnnotation(aAnnotation); } \
1646 : NS_SCRIPTABLE NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) { return _to GetHasAnnotation(aHasAnnotation); } \
1647 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsIVariant * *aTags) { return _to GetTags(aTags); } \
1648 : NS_SCRIPTABLE NS_IMETHOD SetTags(nsIVariant *aTags) { return _to SetTags(aTags); } \
1649 : NS_SCRIPTABLE NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) { return _to GetTagsAreNot(aTagsAreNot); } \
1650 : NS_SCRIPTABLE NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) { return _to SetTagsAreNot(aTagsAreNot); } \
1651 : NS_SCRIPTABLE NS_IMETHOD GetFolders(PRUint32 *count NS_OUTPARAM, PRInt64 **folders NS_OUTPARAM) { return _to GetFolders(count, folders); } \
1652 : NS_SCRIPTABLE NS_IMETHOD GetFolderCount(PRUint32 *aFolderCount) { return _to GetFolderCount(aFolderCount); } \
1653 : NS_SCRIPTABLE NS_IMETHOD SetFolders(const PRInt64 *folders, PRUint32 folderCount) { return _to SetFolders(folders, folderCount); } \
1654 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQuery * *_retval NS_OUTPARAM) { return _to Clone(_retval); }
1655 :
1656 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1657 : #define NS_FORWARD_SAFE_NSINAVHISTORYQUERY(_to) \
1658 : NS_SCRIPTABLE NS_IMETHOD GetBeginTime(PRTime *aBeginTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginTime(aBeginTime); } \
1659 : NS_SCRIPTABLE NS_IMETHOD SetBeginTime(PRTime aBeginTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginTime(aBeginTime); } \
1660 : NS_SCRIPTABLE NS_IMETHOD GetBeginTimeReference(PRUint32 *aBeginTimeReference) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginTimeReference(aBeginTimeReference); } \
1661 : NS_SCRIPTABLE NS_IMETHOD SetBeginTimeReference(PRUint32 aBeginTimeReference) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginTimeReference(aBeginTimeReference); } \
1662 : NS_SCRIPTABLE NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasBeginTime(aHasBeginTime); } \
1663 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsoluteBeginTime(aAbsoluteBeginTime); } \
1664 : NS_SCRIPTABLE NS_IMETHOD GetEndTime(PRTime *aEndTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndTime(aEndTime); } \
1665 : NS_SCRIPTABLE NS_IMETHOD SetEndTime(PRTime aEndTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndTime(aEndTime); } \
1666 : NS_SCRIPTABLE NS_IMETHOD GetEndTimeReference(PRUint32 *aEndTimeReference) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndTimeReference(aEndTimeReference); } \
1667 : NS_SCRIPTABLE NS_IMETHOD SetEndTimeReference(PRUint32 aEndTimeReference) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndTimeReference(aEndTimeReference); } \
1668 : NS_SCRIPTABLE NS_IMETHOD GetHasEndTime(bool *aHasEndTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasEndTime(aHasEndTime); } \
1669 : NS_SCRIPTABLE NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsoluteEndTime(aAbsoluteEndTime); } \
1670 : NS_SCRIPTABLE NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchTerms(aSearchTerms); } \
1671 : NS_SCRIPTABLE NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchTerms(aSearchTerms); } \
1672 : NS_SCRIPTABLE NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasSearchTerms(aHasSearchTerms); } \
1673 : NS_SCRIPTABLE NS_IMETHOD GetMinVisits(PRInt32 *aMinVisits) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinVisits(aMinVisits); } \
1674 : NS_SCRIPTABLE NS_IMETHOD SetMinVisits(PRInt32 aMinVisits) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinVisits(aMinVisits); } \
1675 : NS_SCRIPTABLE NS_IMETHOD GetMaxVisits(PRInt32 *aMaxVisits) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxVisits(aMaxVisits); } \
1676 : NS_SCRIPTABLE NS_IMETHOD SetMaxVisits(PRInt32 aMaxVisits) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxVisits(aMaxVisits); } \
1677 : NS_SCRIPTABLE NS_IMETHOD SetTransitions(const PRUint32 *transitions, PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTransitions(transitions, count); } \
1678 : NS_SCRIPTABLE NS_IMETHOD GetTransitions(PRUint32 *count NS_OUTPARAM, PRUint32 **transitions NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransitions(count, transitions); } \
1679 : NS_SCRIPTABLE NS_IMETHOD GetTransitionCount(PRUint32 *aTransitionCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransitionCount(aTransitionCount); } \
1680 : NS_SCRIPTABLE NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlyBookmarked(aOnlyBookmarked); } \
1681 : NS_SCRIPTABLE NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlyBookmarked(aOnlyBookmarked); } \
1682 : NS_SCRIPTABLE NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomainIsHost(aDomainIsHost); } \
1683 : NS_SCRIPTABLE NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomainIsHost(aDomainIsHost); } \
1684 : NS_SCRIPTABLE NS_IMETHOD GetDomain(nsACString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
1685 : NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsACString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } \
1686 : NS_SCRIPTABLE NS_IMETHOD GetHasDomain(bool *aHasDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasDomain(aHasDomain); } \
1687 : NS_SCRIPTABLE NS_IMETHOD GetUriIsPrefix(bool *aUriIsPrefix) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUriIsPrefix(aUriIsPrefix); } \
1688 : NS_SCRIPTABLE NS_IMETHOD SetUriIsPrefix(bool aUriIsPrefix) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUriIsPrefix(aUriIsPrefix); } \
1689 : NS_SCRIPTABLE NS_IMETHOD GetUri(nsIURI * *aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
1690 : NS_SCRIPTABLE NS_IMETHOD SetUri(nsIURI *aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
1691 : NS_SCRIPTABLE NS_IMETHOD GetHasUri(bool *aHasUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasUri(aHasUri); } \
1692 : NS_SCRIPTABLE NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnnotationIsNot(aAnnotationIsNot); } \
1693 : NS_SCRIPTABLE NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAnnotationIsNot(aAnnotationIsNot); } \
1694 : NS_SCRIPTABLE NS_IMETHOD GetAnnotation(nsACString & aAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnnotation(aAnnotation); } \
1695 : NS_SCRIPTABLE NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAnnotation(aAnnotation); } \
1696 : NS_SCRIPTABLE NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasAnnotation(aHasAnnotation); } \
1697 : NS_SCRIPTABLE NS_IMETHOD GetTags(nsIVariant * *aTags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTags(aTags); } \
1698 : NS_SCRIPTABLE NS_IMETHOD SetTags(nsIVariant *aTags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTags(aTags); } \
1699 : NS_SCRIPTABLE NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagsAreNot(aTagsAreNot); } \
1700 : NS_SCRIPTABLE NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTagsAreNot(aTagsAreNot); } \
1701 : NS_SCRIPTABLE NS_IMETHOD GetFolders(PRUint32 *count NS_OUTPARAM, PRInt64 **folders NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolders(count, folders); } \
1702 : NS_SCRIPTABLE NS_IMETHOD GetFolderCount(PRUint32 *aFolderCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCount(aFolderCount); } \
1703 : NS_SCRIPTABLE NS_IMETHOD SetFolders(const PRInt64 *folders, PRUint32 folderCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolders(folders, folderCount); } \
1704 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQuery * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); }
1705 :
1706 : #if 0
1707 : /* Use the code below as a template for the implementation class for this interface. */
1708 :
1709 : /* Header file */
1710 : class nsNavHistoryQuery : public nsINavHistoryQuery
1711 : {
1712 : public:
1713 : NS_DECL_ISUPPORTS
1714 : NS_DECL_NSINAVHISTORYQUERY
1715 :
1716 : nsNavHistoryQuery();
1717 :
1718 : private:
1719 : ~nsNavHistoryQuery();
1720 :
1721 : protected:
1722 : /* additional members */
1723 : };
1724 :
1725 : /* Implementation file */
1726 : NS_IMPL_ISUPPORTS1(nsNavHistoryQuery, nsINavHistoryQuery)
1727 :
1728 : nsNavHistoryQuery::nsNavHistoryQuery()
1729 : {
1730 : /* member initializers and constructor code */
1731 : }
1732 :
1733 : nsNavHistoryQuery::~nsNavHistoryQuery()
1734 : {
1735 : /* destructor code */
1736 : }
1737 :
1738 : /* attribute PRTime beginTime; */
1739 : NS_IMETHODIMP nsNavHistoryQuery::GetBeginTime(PRTime *aBeginTime)
1740 : {
1741 : return NS_ERROR_NOT_IMPLEMENTED;
1742 : }
1743 : NS_IMETHODIMP nsNavHistoryQuery::SetBeginTime(PRTime aBeginTime)
1744 : {
1745 : return NS_ERROR_NOT_IMPLEMENTED;
1746 : }
1747 :
1748 : /* attribute unsigned long beginTimeReference; */
1749 : NS_IMETHODIMP nsNavHistoryQuery::GetBeginTimeReference(PRUint32 *aBeginTimeReference)
1750 : {
1751 : return NS_ERROR_NOT_IMPLEMENTED;
1752 : }
1753 : NS_IMETHODIMP nsNavHistoryQuery::SetBeginTimeReference(PRUint32 aBeginTimeReference)
1754 : {
1755 : return NS_ERROR_NOT_IMPLEMENTED;
1756 : }
1757 :
1758 : /* readonly attribute boolean hasBeginTime; */
1759 : NS_IMETHODIMP nsNavHistoryQuery::GetHasBeginTime(bool *aHasBeginTime)
1760 : {
1761 : return NS_ERROR_NOT_IMPLEMENTED;
1762 : }
1763 :
1764 : /* readonly attribute PRTime absoluteBeginTime; */
1765 : NS_IMETHODIMP nsNavHistoryQuery::GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime)
1766 : {
1767 : return NS_ERROR_NOT_IMPLEMENTED;
1768 : }
1769 :
1770 : /* attribute PRTime endTime; */
1771 : NS_IMETHODIMP nsNavHistoryQuery::GetEndTime(PRTime *aEndTime)
1772 : {
1773 : return NS_ERROR_NOT_IMPLEMENTED;
1774 : }
1775 : NS_IMETHODIMP nsNavHistoryQuery::SetEndTime(PRTime aEndTime)
1776 : {
1777 : return NS_ERROR_NOT_IMPLEMENTED;
1778 : }
1779 :
1780 : /* attribute unsigned long endTimeReference; */
1781 : NS_IMETHODIMP nsNavHistoryQuery::GetEndTimeReference(PRUint32 *aEndTimeReference)
1782 : {
1783 : return NS_ERROR_NOT_IMPLEMENTED;
1784 : }
1785 : NS_IMETHODIMP nsNavHistoryQuery::SetEndTimeReference(PRUint32 aEndTimeReference)
1786 : {
1787 : return NS_ERROR_NOT_IMPLEMENTED;
1788 : }
1789 :
1790 : /* readonly attribute boolean hasEndTime; */
1791 : NS_IMETHODIMP nsNavHistoryQuery::GetHasEndTime(bool *aHasEndTime)
1792 : {
1793 : return NS_ERROR_NOT_IMPLEMENTED;
1794 : }
1795 :
1796 : /* readonly attribute PRTime absoluteEndTime; */
1797 : NS_IMETHODIMP nsNavHistoryQuery::GetAbsoluteEndTime(PRTime *aAbsoluteEndTime)
1798 : {
1799 : return NS_ERROR_NOT_IMPLEMENTED;
1800 : }
1801 :
1802 : /* attribute AString searchTerms; */
1803 : NS_IMETHODIMP nsNavHistoryQuery::GetSearchTerms(nsAString & aSearchTerms)
1804 : {
1805 : return NS_ERROR_NOT_IMPLEMENTED;
1806 : }
1807 : NS_IMETHODIMP nsNavHistoryQuery::SetSearchTerms(const nsAString & aSearchTerms)
1808 : {
1809 : return NS_ERROR_NOT_IMPLEMENTED;
1810 : }
1811 :
1812 : /* readonly attribute boolean hasSearchTerms; */
1813 : NS_IMETHODIMP nsNavHistoryQuery::GetHasSearchTerms(bool *aHasSearchTerms)
1814 : {
1815 : return NS_ERROR_NOT_IMPLEMENTED;
1816 : }
1817 :
1818 : /* attribute long minVisits; */
1819 : NS_IMETHODIMP nsNavHistoryQuery::GetMinVisits(PRInt32 *aMinVisits)
1820 : {
1821 : return NS_ERROR_NOT_IMPLEMENTED;
1822 : }
1823 : NS_IMETHODIMP nsNavHistoryQuery::SetMinVisits(PRInt32 aMinVisits)
1824 : {
1825 : return NS_ERROR_NOT_IMPLEMENTED;
1826 : }
1827 :
1828 : /* attribute long maxVisits; */
1829 : NS_IMETHODIMP nsNavHistoryQuery::GetMaxVisits(PRInt32 *aMaxVisits)
1830 : {
1831 : return NS_ERROR_NOT_IMPLEMENTED;
1832 : }
1833 : NS_IMETHODIMP nsNavHistoryQuery::SetMaxVisits(PRInt32 aMaxVisits)
1834 : {
1835 : return NS_ERROR_NOT_IMPLEMENTED;
1836 : }
1837 :
1838 : /* void setTransitions ([array, size_is (count), const] in unsigned long transitions, in unsigned long count); */
1839 : NS_IMETHODIMP nsNavHistoryQuery::SetTransitions(const PRUint32 *transitions, PRUint32 count)
1840 : {
1841 : return NS_ERROR_NOT_IMPLEMENTED;
1842 : }
1843 :
1844 : /* void getTransitions ([optional] out unsigned long count, [array, size_is (count), retval] out unsigned long transitions); */
1845 : NS_IMETHODIMP nsNavHistoryQuery::GetTransitions(PRUint32 *count NS_OUTPARAM, PRUint32 **transitions NS_OUTPARAM)
1846 : {
1847 : return NS_ERROR_NOT_IMPLEMENTED;
1848 : }
1849 :
1850 : /* readonly attribute unsigned long transitionCount; */
1851 : NS_IMETHODIMP nsNavHistoryQuery::GetTransitionCount(PRUint32 *aTransitionCount)
1852 : {
1853 : return NS_ERROR_NOT_IMPLEMENTED;
1854 : }
1855 :
1856 : /* attribute boolean onlyBookmarked; */
1857 : NS_IMETHODIMP nsNavHistoryQuery::GetOnlyBookmarked(bool *aOnlyBookmarked)
1858 : {
1859 : return NS_ERROR_NOT_IMPLEMENTED;
1860 : }
1861 : NS_IMETHODIMP nsNavHistoryQuery::SetOnlyBookmarked(bool aOnlyBookmarked)
1862 : {
1863 : return NS_ERROR_NOT_IMPLEMENTED;
1864 : }
1865 :
1866 : /* attribute boolean domainIsHost; */
1867 : NS_IMETHODIMP nsNavHistoryQuery::GetDomainIsHost(bool *aDomainIsHost)
1868 : {
1869 : return NS_ERROR_NOT_IMPLEMENTED;
1870 : }
1871 : NS_IMETHODIMP nsNavHistoryQuery::SetDomainIsHost(bool aDomainIsHost)
1872 : {
1873 : return NS_ERROR_NOT_IMPLEMENTED;
1874 : }
1875 :
1876 : /* attribute AUTF8String domain; */
1877 : NS_IMETHODIMP nsNavHistoryQuery::GetDomain(nsACString & aDomain)
1878 : {
1879 : return NS_ERROR_NOT_IMPLEMENTED;
1880 : }
1881 : NS_IMETHODIMP nsNavHistoryQuery::SetDomain(const nsACString & aDomain)
1882 : {
1883 : return NS_ERROR_NOT_IMPLEMENTED;
1884 : }
1885 :
1886 : /* readonly attribute boolean hasDomain; */
1887 : NS_IMETHODIMP nsNavHistoryQuery::GetHasDomain(bool *aHasDomain)
1888 : {
1889 : return NS_ERROR_NOT_IMPLEMENTED;
1890 : }
1891 :
1892 : /* attribute boolean uriIsPrefix; */
1893 : NS_IMETHODIMP nsNavHistoryQuery::GetUriIsPrefix(bool *aUriIsPrefix)
1894 : {
1895 : return NS_ERROR_NOT_IMPLEMENTED;
1896 : }
1897 : NS_IMETHODIMP nsNavHistoryQuery::SetUriIsPrefix(bool aUriIsPrefix)
1898 : {
1899 : return NS_ERROR_NOT_IMPLEMENTED;
1900 : }
1901 :
1902 : /* attribute nsIURI uri; */
1903 : NS_IMETHODIMP nsNavHistoryQuery::GetUri(nsIURI * *aUri)
1904 : {
1905 : return NS_ERROR_NOT_IMPLEMENTED;
1906 : }
1907 : NS_IMETHODIMP nsNavHistoryQuery::SetUri(nsIURI *aUri)
1908 : {
1909 : return NS_ERROR_NOT_IMPLEMENTED;
1910 : }
1911 :
1912 : /* readonly attribute boolean hasUri; */
1913 : NS_IMETHODIMP nsNavHistoryQuery::GetHasUri(bool *aHasUri)
1914 : {
1915 : return NS_ERROR_NOT_IMPLEMENTED;
1916 : }
1917 :
1918 : /* attribute boolean annotationIsNot; */
1919 : NS_IMETHODIMP nsNavHistoryQuery::GetAnnotationIsNot(bool *aAnnotationIsNot)
1920 : {
1921 : return NS_ERROR_NOT_IMPLEMENTED;
1922 : }
1923 : NS_IMETHODIMP nsNavHistoryQuery::SetAnnotationIsNot(bool aAnnotationIsNot)
1924 : {
1925 : return NS_ERROR_NOT_IMPLEMENTED;
1926 : }
1927 :
1928 : /* attribute AUTF8String annotation; */
1929 : NS_IMETHODIMP nsNavHistoryQuery::GetAnnotation(nsACString & aAnnotation)
1930 : {
1931 : return NS_ERROR_NOT_IMPLEMENTED;
1932 : }
1933 : NS_IMETHODIMP nsNavHistoryQuery::SetAnnotation(const nsACString & aAnnotation)
1934 : {
1935 : return NS_ERROR_NOT_IMPLEMENTED;
1936 : }
1937 :
1938 : /* readonly attribute boolean hasAnnotation; */
1939 : NS_IMETHODIMP nsNavHistoryQuery::GetHasAnnotation(bool *aHasAnnotation)
1940 : {
1941 : return NS_ERROR_NOT_IMPLEMENTED;
1942 : }
1943 :
1944 : /* attribute nsIVariant tags; */
1945 : NS_IMETHODIMP nsNavHistoryQuery::GetTags(nsIVariant * *aTags)
1946 : {
1947 : return NS_ERROR_NOT_IMPLEMENTED;
1948 : }
1949 : NS_IMETHODIMP nsNavHistoryQuery::SetTags(nsIVariant *aTags)
1950 : {
1951 : return NS_ERROR_NOT_IMPLEMENTED;
1952 : }
1953 :
1954 : /* attribute boolean tagsAreNot; */
1955 : NS_IMETHODIMP nsNavHistoryQuery::GetTagsAreNot(bool *aTagsAreNot)
1956 : {
1957 : return NS_ERROR_NOT_IMPLEMENTED;
1958 : }
1959 : NS_IMETHODIMP nsNavHistoryQuery::SetTagsAreNot(bool aTagsAreNot)
1960 : {
1961 : return NS_ERROR_NOT_IMPLEMENTED;
1962 : }
1963 :
1964 : /* void getFolders ([optional] out unsigned long count, [array, size_is (count), retval] out long long folders); */
1965 : NS_IMETHODIMP nsNavHistoryQuery::GetFolders(PRUint32 *count NS_OUTPARAM, PRInt64 **folders NS_OUTPARAM)
1966 : {
1967 : return NS_ERROR_NOT_IMPLEMENTED;
1968 : }
1969 :
1970 : /* readonly attribute unsigned long folderCount; */
1971 : NS_IMETHODIMP nsNavHistoryQuery::GetFolderCount(PRUint32 *aFolderCount)
1972 : {
1973 : return NS_ERROR_NOT_IMPLEMENTED;
1974 : }
1975 :
1976 : /* void setFolders ([array, size_is (folderCount), const] in long long folders, in unsigned long folderCount); */
1977 : NS_IMETHODIMP nsNavHistoryQuery::SetFolders(const PRInt64 *folders, PRUint32 folderCount)
1978 : {
1979 : return NS_ERROR_NOT_IMPLEMENTED;
1980 : }
1981 :
1982 : /* nsINavHistoryQuery clone (); */
1983 : NS_IMETHODIMP nsNavHistoryQuery::Clone(nsINavHistoryQuery * *_retval NS_OUTPARAM)
1984 : {
1985 : return NS_ERROR_NOT_IMPLEMENTED;
1986 : }
1987 :
1988 : /* End of implementation class template. */
1989 : #endif
1990 :
1991 :
1992 : /* starting interface: nsINavHistoryQueryOptions */
1993 : #define NS_INAVHISTORYQUERYOPTIONS_IID_STR "d46a1ae7-aef8-47a2-9a5c-e6347253f9b2"
1994 :
1995 : #define NS_INAVHISTORYQUERYOPTIONS_IID \
1996 : {0xd46a1ae7, 0xaef8, 0x47a2, \
1997 : { 0x9a, 0x5c, 0xe6, 0x34, 0x72, 0x53, 0xf9, 0xb2 }}
1998 :
1999 5870 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryQueryOptions : public nsISupports {
2000 : public:
2001 :
2002 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYQUERYOPTIONS_IID)
2003 :
2004 : enum {
2005 : SORT_BY_NONE = 0U,
2006 : SORT_BY_TITLE_ASCENDING = 1U,
2007 : SORT_BY_TITLE_DESCENDING = 2U,
2008 : SORT_BY_DATE_ASCENDING = 3U,
2009 : SORT_BY_DATE_DESCENDING = 4U,
2010 : SORT_BY_URI_ASCENDING = 5U,
2011 : SORT_BY_URI_DESCENDING = 6U,
2012 : SORT_BY_VISITCOUNT_ASCENDING = 7U,
2013 : SORT_BY_VISITCOUNT_DESCENDING = 8U,
2014 : SORT_BY_KEYWORD_ASCENDING = 9U,
2015 : SORT_BY_KEYWORD_DESCENDING = 10U,
2016 : SORT_BY_DATEADDED_ASCENDING = 11U,
2017 : SORT_BY_DATEADDED_DESCENDING = 12U,
2018 : SORT_BY_LASTMODIFIED_ASCENDING = 13U,
2019 : SORT_BY_LASTMODIFIED_DESCENDING = 14U,
2020 : SORT_BY_TAGS_ASCENDING = 17U,
2021 : SORT_BY_TAGS_DESCENDING = 18U,
2022 : SORT_BY_ANNOTATION_ASCENDING = 19U,
2023 : SORT_BY_ANNOTATION_DESCENDING = 20U,
2024 : SORT_BY_FRECENCY_ASCENDING = 21U,
2025 : SORT_BY_FRECENCY_DESCENDING = 22U,
2026 : RESULTS_AS_URI = 0U,
2027 : RESULTS_AS_VISIT = 1U,
2028 : RESULTS_AS_FULL_VISIT = 2U,
2029 : RESULTS_AS_DATE_QUERY = 3U,
2030 : RESULTS_AS_SITE_QUERY = 4U,
2031 : RESULTS_AS_DATE_SITE_QUERY = 5U,
2032 : RESULTS_AS_TAG_QUERY = 6U,
2033 : RESULTS_AS_TAG_CONTENTS = 7U
2034 : };
2035 :
2036 : /* attribute unsigned short sortingMode; */
2037 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode) = 0;
2038 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode) = 0;
2039 :
2040 : /* attribute AUTF8String sortingAnnotation; */
2041 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) = 0;
2042 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) = 0;
2043 :
2044 : /* attribute unsigned short resultType; */
2045 : NS_SCRIPTABLE NS_IMETHOD GetResultType(PRUint16 *aResultType) = 0;
2046 : NS_SCRIPTABLE NS_IMETHOD SetResultType(PRUint16 aResultType) = 0;
2047 :
2048 : /* attribute boolean excludeItems; */
2049 : NS_SCRIPTABLE NS_IMETHOD GetExcludeItems(bool *aExcludeItems) = 0;
2050 : NS_SCRIPTABLE NS_IMETHOD SetExcludeItems(bool aExcludeItems) = 0;
2051 :
2052 : /* attribute boolean excludeQueries; */
2053 : NS_SCRIPTABLE NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) = 0;
2054 : NS_SCRIPTABLE NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) = 0;
2055 :
2056 : /* attribute boolean excludeReadOnlyFolders; */
2057 : NS_SCRIPTABLE NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) = 0;
2058 : NS_SCRIPTABLE NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) = 0;
2059 :
2060 : /* attribute boolean expandQueries; */
2061 : NS_SCRIPTABLE NS_IMETHOD GetExpandQueries(bool *aExpandQueries) = 0;
2062 : NS_SCRIPTABLE NS_IMETHOD SetExpandQueries(bool aExpandQueries) = 0;
2063 :
2064 : /* attribute boolean includeHidden; */
2065 : NS_SCRIPTABLE NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) = 0;
2066 : NS_SCRIPTABLE NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) = 0;
2067 :
2068 : enum {
2069 : REDIRECTS_MODE_ALL = 0U,
2070 : REDIRECTS_MODE_SOURCE = 1U,
2071 : REDIRECTS_MODE_TARGET = 2U
2072 : };
2073 :
2074 : /* attribute unsigned short redirectsMode; */
2075 : NS_SCRIPTABLE NS_IMETHOD GetRedirectsMode(PRUint16 *aRedirectsMode) = 0;
2076 : NS_SCRIPTABLE NS_IMETHOD SetRedirectsMode(PRUint16 aRedirectsMode) = 0;
2077 :
2078 : /* attribute unsigned long maxResults; */
2079 : NS_SCRIPTABLE NS_IMETHOD GetMaxResults(PRUint32 *aMaxResults) = 0;
2080 : NS_SCRIPTABLE NS_IMETHOD SetMaxResults(PRUint32 aMaxResults) = 0;
2081 :
2082 : enum {
2083 : QUERY_TYPE_HISTORY = 0U,
2084 : QUERY_TYPE_BOOKMARKS = 1U,
2085 : QUERY_TYPE_UNIFIED = 2U
2086 : };
2087 :
2088 : /* attribute unsigned short queryType; */
2089 : NS_SCRIPTABLE NS_IMETHOD GetQueryType(PRUint16 *aQueryType) = 0;
2090 : NS_SCRIPTABLE NS_IMETHOD SetQueryType(PRUint16 aQueryType) = 0;
2091 :
2092 : /* attribute boolean asyncEnabled; */
2093 : NS_SCRIPTABLE NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) = 0;
2094 : NS_SCRIPTABLE NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) = 0;
2095 :
2096 : /* nsINavHistoryQueryOptions clone (); */
2097 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM) = 0;
2098 :
2099 : };
2100 :
2101 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryQueryOptions, NS_INAVHISTORYQUERYOPTIONS_IID)
2102 :
2103 : /* Use this macro when declaring classes that implement this interface. */
2104 : #define NS_DECL_NSINAVHISTORYQUERYOPTIONS \
2105 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode); \
2106 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode); \
2107 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation); \
2108 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation); \
2109 : NS_SCRIPTABLE NS_IMETHOD GetResultType(PRUint16 *aResultType); \
2110 : NS_SCRIPTABLE NS_IMETHOD SetResultType(PRUint16 aResultType); \
2111 : NS_SCRIPTABLE NS_IMETHOD GetExcludeItems(bool *aExcludeItems); \
2112 : NS_SCRIPTABLE NS_IMETHOD SetExcludeItems(bool aExcludeItems); \
2113 : NS_SCRIPTABLE NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries); \
2114 : NS_SCRIPTABLE NS_IMETHOD SetExcludeQueries(bool aExcludeQueries); \
2115 : NS_SCRIPTABLE NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders); \
2116 : NS_SCRIPTABLE NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders); \
2117 : NS_SCRIPTABLE NS_IMETHOD GetExpandQueries(bool *aExpandQueries); \
2118 : NS_SCRIPTABLE NS_IMETHOD SetExpandQueries(bool aExpandQueries); \
2119 : NS_SCRIPTABLE NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden); \
2120 : NS_SCRIPTABLE NS_IMETHOD SetIncludeHidden(bool aIncludeHidden); \
2121 : NS_SCRIPTABLE NS_IMETHOD GetRedirectsMode(PRUint16 *aRedirectsMode); \
2122 : NS_SCRIPTABLE NS_IMETHOD SetRedirectsMode(PRUint16 aRedirectsMode); \
2123 : NS_SCRIPTABLE NS_IMETHOD GetMaxResults(PRUint32 *aMaxResults); \
2124 : NS_SCRIPTABLE NS_IMETHOD SetMaxResults(PRUint32 aMaxResults); \
2125 : NS_SCRIPTABLE NS_IMETHOD GetQueryType(PRUint16 *aQueryType); \
2126 : NS_SCRIPTABLE NS_IMETHOD SetQueryType(PRUint16 aQueryType); \
2127 : NS_SCRIPTABLE NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled); \
2128 : NS_SCRIPTABLE NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled); \
2129 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM);
2130 :
2131 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
2132 : #define NS_FORWARD_NSINAVHISTORYQUERYOPTIONS(_to) \
2133 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode) { return _to GetSortingMode(aSortingMode); } \
2134 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode) { return _to SetSortingMode(aSortingMode); } \
2135 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) { return _to GetSortingAnnotation(aSortingAnnotation); } \
2136 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) { return _to SetSortingAnnotation(aSortingAnnotation); } \
2137 : NS_SCRIPTABLE NS_IMETHOD GetResultType(PRUint16 *aResultType) { return _to GetResultType(aResultType); } \
2138 : NS_SCRIPTABLE NS_IMETHOD SetResultType(PRUint16 aResultType) { return _to SetResultType(aResultType); } \
2139 : NS_SCRIPTABLE NS_IMETHOD GetExcludeItems(bool *aExcludeItems) { return _to GetExcludeItems(aExcludeItems); } \
2140 : NS_SCRIPTABLE NS_IMETHOD SetExcludeItems(bool aExcludeItems) { return _to SetExcludeItems(aExcludeItems); } \
2141 : NS_SCRIPTABLE NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) { return _to GetExcludeQueries(aExcludeQueries); } \
2142 : NS_SCRIPTABLE NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) { return _to SetExcludeQueries(aExcludeQueries); } \
2143 : NS_SCRIPTABLE NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) { return _to GetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
2144 : NS_SCRIPTABLE NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) { return _to SetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
2145 : NS_SCRIPTABLE NS_IMETHOD GetExpandQueries(bool *aExpandQueries) { return _to GetExpandQueries(aExpandQueries); } \
2146 : NS_SCRIPTABLE NS_IMETHOD SetExpandQueries(bool aExpandQueries) { return _to SetExpandQueries(aExpandQueries); } \
2147 : NS_SCRIPTABLE NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) { return _to GetIncludeHidden(aIncludeHidden); } \
2148 : NS_SCRIPTABLE NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) { return _to SetIncludeHidden(aIncludeHidden); } \
2149 : NS_SCRIPTABLE NS_IMETHOD GetRedirectsMode(PRUint16 *aRedirectsMode) { return _to GetRedirectsMode(aRedirectsMode); } \
2150 : NS_SCRIPTABLE NS_IMETHOD SetRedirectsMode(PRUint16 aRedirectsMode) { return _to SetRedirectsMode(aRedirectsMode); } \
2151 : NS_SCRIPTABLE NS_IMETHOD GetMaxResults(PRUint32 *aMaxResults) { return _to GetMaxResults(aMaxResults); } \
2152 : NS_SCRIPTABLE NS_IMETHOD SetMaxResults(PRUint32 aMaxResults) { return _to SetMaxResults(aMaxResults); } \
2153 : NS_SCRIPTABLE NS_IMETHOD GetQueryType(PRUint16 *aQueryType) { return _to GetQueryType(aQueryType); } \
2154 : NS_SCRIPTABLE NS_IMETHOD SetQueryType(PRUint16 aQueryType) { return _to SetQueryType(aQueryType); } \
2155 : NS_SCRIPTABLE NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) { return _to GetAsyncEnabled(aAsyncEnabled); } \
2156 : NS_SCRIPTABLE NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) { return _to SetAsyncEnabled(aAsyncEnabled); } \
2157 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM) { return _to Clone(_retval); }
2158 :
2159 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
2160 : #define NS_FORWARD_SAFE_NSINAVHISTORYQUERYOPTIONS(_to) \
2161 : NS_SCRIPTABLE NS_IMETHOD GetSortingMode(PRUint16 *aSortingMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingMode(aSortingMode); } \
2162 : NS_SCRIPTABLE NS_IMETHOD SetSortingMode(PRUint16 aSortingMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingMode(aSortingMode); } \
2163 : NS_SCRIPTABLE NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingAnnotation(aSortingAnnotation); } \
2164 : NS_SCRIPTABLE NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingAnnotation(aSortingAnnotation); } \
2165 : NS_SCRIPTABLE NS_IMETHOD GetResultType(PRUint16 *aResultType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultType(aResultType); } \
2166 : NS_SCRIPTABLE NS_IMETHOD SetResultType(PRUint16 aResultType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResultType(aResultType); } \
2167 : NS_SCRIPTABLE NS_IMETHOD GetExcludeItems(bool *aExcludeItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExcludeItems(aExcludeItems); } \
2168 : NS_SCRIPTABLE NS_IMETHOD SetExcludeItems(bool aExcludeItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExcludeItems(aExcludeItems); } \
2169 : NS_SCRIPTABLE NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExcludeQueries(aExcludeQueries); } \
2170 : NS_SCRIPTABLE NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExcludeQueries(aExcludeQueries); } \
2171 : NS_SCRIPTABLE NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
2172 : NS_SCRIPTABLE NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
2173 : NS_SCRIPTABLE NS_IMETHOD GetExpandQueries(bool *aExpandQueries) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpandQueries(aExpandQueries); } \
2174 : NS_SCRIPTABLE NS_IMETHOD SetExpandQueries(bool aExpandQueries) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExpandQueries(aExpandQueries); } \
2175 : NS_SCRIPTABLE NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludeHidden(aIncludeHidden); } \
2176 : NS_SCRIPTABLE NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIncludeHidden(aIncludeHidden); } \
2177 : NS_SCRIPTABLE NS_IMETHOD GetRedirectsMode(PRUint16 *aRedirectsMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectsMode(aRedirectsMode); } \
2178 : NS_SCRIPTABLE NS_IMETHOD SetRedirectsMode(PRUint16 aRedirectsMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRedirectsMode(aRedirectsMode); } \
2179 : NS_SCRIPTABLE NS_IMETHOD GetMaxResults(PRUint32 *aMaxResults) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxResults(aMaxResults); } \
2180 : NS_SCRIPTABLE NS_IMETHOD SetMaxResults(PRUint32 aMaxResults) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxResults(aMaxResults); } \
2181 : NS_SCRIPTABLE NS_IMETHOD GetQueryType(PRUint16 *aQueryType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueryType(aQueryType); } \
2182 : NS_SCRIPTABLE NS_IMETHOD SetQueryType(PRUint16 aQueryType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQueryType(aQueryType); } \
2183 : NS_SCRIPTABLE NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsyncEnabled(aAsyncEnabled); } \
2184 : NS_SCRIPTABLE NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsyncEnabled(aAsyncEnabled); } \
2185 : NS_SCRIPTABLE NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); }
2186 :
2187 : #if 0
2188 : /* Use the code below as a template for the implementation class for this interface. */
2189 :
2190 : /* Header file */
2191 : class nsNavHistoryQueryOptions : public nsINavHistoryQueryOptions
2192 : {
2193 : public:
2194 : NS_DECL_ISUPPORTS
2195 : NS_DECL_NSINAVHISTORYQUERYOPTIONS
2196 :
2197 : nsNavHistoryQueryOptions();
2198 :
2199 : private:
2200 : ~nsNavHistoryQueryOptions();
2201 :
2202 : protected:
2203 : /* additional members */
2204 : };
2205 :
2206 : /* Implementation file */
2207 : NS_IMPL_ISUPPORTS1(nsNavHistoryQueryOptions, nsINavHistoryQueryOptions)
2208 :
2209 : nsNavHistoryQueryOptions::nsNavHistoryQueryOptions()
2210 : {
2211 : /* member initializers and constructor code */
2212 : }
2213 :
2214 : nsNavHistoryQueryOptions::~nsNavHistoryQueryOptions()
2215 : {
2216 : /* destructor code */
2217 : }
2218 :
2219 : /* attribute unsigned short sortingMode; */
2220 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetSortingMode(PRUint16 *aSortingMode)
2221 : {
2222 : return NS_ERROR_NOT_IMPLEMENTED;
2223 : }
2224 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetSortingMode(PRUint16 aSortingMode)
2225 : {
2226 : return NS_ERROR_NOT_IMPLEMENTED;
2227 : }
2228 :
2229 : /* attribute AUTF8String sortingAnnotation; */
2230 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetSortingAnnotation(nsACString & aSortingAnnotation)
2231 : {
2232 : return NS_ERROR_NOT_IMPLEMENTED;
2233 : }
2234 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetSortingAnnotation(const nsACString & aSortingAnnotation)
2235 : {
2236 : return NS_ERROR_NOT_IMPLEMENTED;
2237 : }
2238 :
2239 : /* attribute unsigned short resultType; */
2240 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetResultType(PRUint16 *aResultType)
2241 : {
2242 : return NS_ERROR_NOT_IMPLEMENTED;
2243 : }
2244 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetResultType(PRUint16 aResultType)
2245 : {
2246 : return NS_ERROR_NOT_IMPLEMENTED;
2247 : }
2248 :
2249 : /* attribute boolean excludeItems; */
2250 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExcludeItems(bool *aExcludeItems)
2251 : {
2252 : return NS_ERROR_NOT_IMPLEMENTED;
2253 : }
2254 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExcludeItems(bool aExcludeItems)
2255 : {
2256 : return NS_ERROR_NOT_IMPLEMENTED;
2257 : }
2258 :
2259 : /* attribute boolean excludeQueries; */
2260 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExcludeQueries(bool *aExcludeQueries)
2261 : {
2262 : return NS_ERROR_NOT_IMPLEMENTED;
2263 : }
2264 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExcludeQueries(bool aExcludeQueries)
2265 : {
2266 : return NS_ERROR_NOT_IMPLEMENTED;
2267 : }
2268 :
2269 : /* attribute boolean excludeReadOnlyFolders; */
2270 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders)
2271 : {
2272 : return NS_ERROR_NOT_IMPLEMENTED;
2273 : }
2274 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders)
2275 : {
2276 : return NS_ERROR_NOT_IMPLEMENTED;
2277 : }
2278 :
2279 : /* attribute boolean expandQueries; */
2280 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExpandQueries(bool *aExpandQueries)
2281 : {
2282 : return NS_ERROR_NOT_IMPLEMENTED;
2283 : }
2284 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExpandQueries(bool aExpandQueries)
2285 : {
2286 : return NS_ERROR_NOT_IMPLEMENTED;
2287 : }
2288 :
2289 : /* attribute boolean includeHidden; */
2290 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetIncludeHidden(bool *aIncludeHidden)
2291 : {
2292 : return NS_ERROR_NOT_IMPLEMENTED;
2293 : }
2294 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetIncludeHidden(bool aIncludeHidden)
2295 : {
2296 : return NS_ERROR_NOT_IMPLEMENTED;
2297 : }
2298 :
2299 : /* attribute unsigned short redirectsMode; */
2300 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetRedirectsMode(PRUint16 *aRedirectsMode)
2301 : {
2302 : return NS_ERROR_NOT_IMPLEMENTED;
2303 : }
2304 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetRedirectsMode(PRUint16 aRedirectsMode)
2305 : {
2306 : return NS_ERROR_NOT_IMPLEMENTED;
2307 : }
2308 :
2309 : /* attribute unsigned long maxResults; */
2310 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetMaxResults(PRUint32 *aMaxResults)
2311 : {
2312 : return NS_ERROR_NOT_IMPLEMENTED;
2313 : }
2314 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetMaxResults(PRUint32 aMaxResults)
2315 : {
2316 : return NS_ERROR_NOT_IMPLEMENTED;
2317 : }
2318 :
2319 : /* attribute unsigned short queryType; */
2320 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetQueryType(PRUint16 *aQueryType)
2321 : {
2322 : return NS_ERROR_NOT_IMPLEMENTED;
2323 : }
2324 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetQueryType(PRUint16 aQueryType)
2325 : {
2326 : return NS_ERROR_NOT_IMPLEMENTED;
2327 : }
2328 :
2329 : /* attribute boolean asyncEnabled; */
2330 : NS_IMETHODIMP nsNavHistoryQueryOptions::GetAsyncEnabled(bool *aAsyncEnabled)
2331 : {
2332 : return NS_ERROR_NOT_IMPLEMENTED;
2333 : }
2334 : NS_IMETHODIMP nsNavHistoryQueryOptions::SetAsyncEnabled(bool aAsyncEnabled)
2335 : {
2336 : return NS_ERROR_NOT_IMPLEMENTED;
2337 : }
2338 :
2339 : /* nsINavHistoryQueryOptions clone (); */
2340 : NS_IMETHODIMP nsNavHistoryQueryOptions::Clone(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM)
2341 : {
2342 : return NS_ERROR_NOT_IMPLEMENTED;
2343 : }
2344 :
2345 : /* End of implementation class template. */
2346 : #endif
2347 :
2348 :
2349 : /* starting interface: nsINavHistoryService */
2350 : #define NS_INAVHISTORYSERVICE_IID_STR "562e698d-04f0-4df1-bd5d-1f1e5b84d7ef"
2351 :
2352 : #define NS_INAVHISTORYSERVICE_IID \
2353 : {0x562e698d, 0x04f0, 0x4df1, \
2354 : { 0xbd, 0x5d, 0x1f, 0x1e, 0x5b, 0x84, 0xd7, 0xef }}
2355 :
2356 263 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryService : public nsISupports {
2357 : public:
2358 :
2359 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYSERVICE_IID)
2360 :
2361 : enum {
2362 : TRANSITION_LINK = 1U,
2363 : TRANSITION_TYPED = 2U,
2364 : TRANSITION_BOOKMARK = 3U,
2365 : TRANSITION_EMBED = 4U,
2366 : TRANSITION_REDIRECT_PERMANENT = 5U,
2367 : TRANSITION_REDIRECT_TEMPORARY = 6U,
2368 : TRANSITION_DOWNLOAD = 7U,
2369 : TRANSITION_FRAMED_LINK = 8U,
2370 : DATABASE_STATUS_OK = 0U,
2371 : DATABASE_STATUS_CREATE = 1U,
2372 : DATABASE_STATUS_CORRUPT = 2U,
2373 : DATABASE_STATUS_UPGRADED = 3U
2374 : };
2375 :
2376 : /* readonly attribute unsigned short databaseStatus; */
2377 : NS_SCRIPTABLE NS_IMETHOD GetDatabaseStatus(PRUint16 *aDatabaseStatus) = 0;
2378 :
2379 : /* readonly attribute boolean hasHistoryEntries; */
2380 : NS_SCRIPTABLE NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) = 0;
2381 :
2382 : /* AString getPageTitle (in nsIURI aURI); */
2383 : NS_SCRIPTABLE NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval NS_OUTPARAM) = 0;
2384 :
2385 : /* void markPageAsFollowedBookmark (in nsIURI aURI); */
2386 : NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) = 0;
2387 :
2388 : /* AString getCharsetForURI (in nsIURI aURI); */
2389 : NS_SCRIPTABLE NS_IMETHOD GetCharsetForURI(nsIURI *aURI, nsAString & _retval NS_OUTPARAM) = 0;
2390 :
2391 : /* void setCharsetForURI (in nsIURI aURI, in AString aCharset); */
2392 : NS_SCRIPTABLE NS_IMETHOD SetCharsetForURI(nsIURI *aURI, const nsAString & aCharset) = 0;
2393 :
2394 : /* boolean canAddURI (in nsIURI aURI); */
2395 : NS_SCRIPTABLE NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval NS_OUTPARAM) = 0;
2396 :
2397 : /* long long addVisit (in nsIURI aURI, in PRTime aTime, in nsIURI aReferringURI, in long aTransitionType, in boolean aIsRedirect, in long long aSessionID); */
2398 : NS_SCRIPTABLE NS_IMETHOD AddVisit(nsIURI *aURI, PRTime aTime, nsIURI *aReferringURI, PRInt32 aTransitionType, bool aIsRedirect, PRInt64 aSessionID, PRInt64 *_retval NS_OUTPARAM) = 0;
2399 :
2400 : /* nsINavHistoryQuery getNewQuery (); */
2401 : NS_SCRIPTABLE NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval NS_OUTPARAM) = 0;
2402 :
2403 : /* nsINavHistoryQueryOptions getNewQueryOptions (); */
2404 : NS_SCRIPTABLE NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM) = 0;
2405 :
2406 : /* nsINavHistoryResult executeQuery (in nsINavHistoryQuery aQuery, in nsINavHistoryQueryOptions options); */
2407 : NS_SCRIPTABLE NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM) = 0;
2408 :
2409 : /* nsINavHistoryResult executeQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
2410 : NS_SCRIPTABLE NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM) = 0;
2411 :
2412 : /* void queryStringToQueries (in AUTF8String aQueryString, [array, size_is (aResultCount)] out nsINavHistoryQuery aQueries, out unsigned long aResultCount, out nsINavHistoryQueryOptions options); */
2413 : NS_SCRIPTABLE NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries NS_OUTPARAM, PRUint32 *aResultCount NS_OUTPARAM, nsINavHistoryQueryOptions * *options NS_OUTPARAM) = 0;
2414 :
2415 : /* AUTF8String queriesToQueryString ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
2416 : NS_SCRIPTABLE NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval NS_OUTPARAM) = 0;
2417 :
2418 : /* void addObserver (in nsINavHistoryObserver observer, in boolean ownsWeak); */
2419 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) = 0;
2420 :
2421 : /* void removeObserver (in nsINavHistoryObserver observer); */
2422 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) = 0;
2423 :
2424 : /* void runInBatchMode (in nsINavHistoryBatchCallback aCallback, in nsISupports aClosure); */
2425 : NS_SCRIPTABLE NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) = 0;
2426 :
2427 : /* readonly attribute boolean historyDisabled; */
2428 : NS_SCRIPTABLE NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) = 0;
2429 :
2430 : };
2431 :
2432 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryService, NS_INAVHISTORYSERVICE_IID)
2433 :
2434 : /* Use this macro when declaring classes that implement this interface. */
2435 : #define NS_DECL_NSINAVHISTORYSERVICE \
2436 : NS_SCRIPTABLE NS_IMETHOD GetDatabaseStatus(PRUint16 *aDatabaseStatus); \
2437 : NS_SCRIPTABLE NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries); \
2438 : NS_SCRIPTABLE NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval NS_OUTPARAM); \
2439 : NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI); \
2440 : NS_SCRIPTABLE NS_IMETHOD GetCharsetForURI(nsIURI *aURI, nsAString & _retval NS_OUTPARAM); \
2441 : NS_SCRIPTABLE NS_IMETHOD SetCharsetForURI(nsIURI *aURI, const nsAString & aCharset); \
2442 : NS_SCRIPTABLE NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval NS_OUTPARAM); \
2443 : NS_SCRIPTABLE NS_IMETHOD AddVisit(nsIURI *aURI, PRTime aTime, nsIURI *aReferringURI, PRInt32 aTransitionType, bool aIsRedirect, PRInt64 aSessionID, PRInt64 *_retval NS_OUTPARAM); \
2444 : NS_SCRIPTABLE NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval NS_OUTPARAM); \
2445 : NS_SCRIPTABLE NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM); \
2446 : NS_SCRIPTABLE NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM); \
2447 : NS_SCRIPTABLE NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM); \
2448 : NS_SCRIPTABLE NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries NS_OUTPARAM, PRUint32 *aResultCount NS_OUTPARAM, nsINavHistoryQueryOptions * *options NS_OUTPARAM); \
2449 : NS_SCRIPTABLE NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval NS_OUTPARAM); \
2450 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak); \
2451 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer); \
2452 : NS_SCRIPTABLE NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure); \
2453 : NS_SCRIPTABLE NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled);
2454 :
2455 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
2456 : #define NS_FORWARD_NSINAVHISTORYSERVICE(_to) \
2457 : NS_SCRIPTABLE NS_IMETHOD GetDatabaseStatus(PRUint16 *aDatabaseStatus) { return _to GetDatabaseStatus(aDatabaseStatus); } \
2458 : NS_SCRIPTABLE NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) { return _to GetHasHistoryEntries(aHasHistoryEntries); } \
2459 : NS_SCRIPTABLE NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval NS_OUTPARAM) { return _to GetPageTitle(aURI, _retval); } \
2460 : NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) { return _to MarkPageAsFollowedBookmark(aURI); } \
2461 : NS_SCRIPTABLE NS_IMETHOD GetCharsetForURI(nsIURI *aURI, nsAString & _retval NS_OUTPARAM) { return _to GetCharsetForURI(aURI, _retval); } \
2462 : NS_SCRIPTABLE NS_IMETHOD SetCharsetForURI(nsIURI *aURI, const nsAString & aCharset) { return _to SetCharsetForURI(aURI, aCharset); } \
2463 : NS_SCRIPTABLE NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return _to CanAddURI(aURI, _retval); } \
2464 : NS_SCRIPTABLE NS_IMETHOD AddVisit(nsIURI *aURI, PRTime aTime, nsIURI *aReferringURI, PRInt32 aTransitionType, bool aIsRedirect, PRInt64 aSessionID, PRInt64 *_retval NS_OUTPARAM) { return _to AddVisit(aURI, aTime, aReferringURI, aTransitionType, aIsRedirect, aSessionID, _retval); } \
2465 : NS_SCRIPTABLE NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval NS_OUTPARAM) { return _to GetNewQuery(_retval); } \
2466 : NS_SCRIPTABLE NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM) { return _to GetNewQueryOptions(_retval); } \
2467 : NS_SCRIPTABLE NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM) { return _to ExecuteQuery(aQuery, options, _retval); } \
2468 : NS_SCRIPTABLE NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM) { return _to ExecuteQueries(aQueries, aQueryCount, options, _retval); } \
2469 : NS_SCRIPTABLE NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries NS_OUTPARAM, PRUint32 *aResultCount NS_OUTPARAM, nsINavHistoryQueryOptions * *options NS_OUTPARAM) { return _to QueryStringToQueries(aQueryString, aQueries, aResultCount, options); } \
2470 : NS_SCRIPTABLE NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval NS_OUTPARAM) { return _to QueriesToQueryString(aQueries, aQueryCount, options, _retval); } \
2471 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) { return _to AddObserver(observer, ownsWeak); } \
2472 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) { return _to RemoveObserver(observer); } \
2473 : NS_SCRIPTABLE NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) { return _to RunInBatchMode(aCallback, aClosure); } \
2474 : NS_SCRIPTABLE NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) { return _to GetHistoryDisabled(aHistoryDisabled); }
2475 :
2476 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
2477 : #define NS_FORWARD_SAFE_NSINAVHISTORYSERVICE(_to) \
2478 : NS_SCRIPTABLE NS_IMETHOD GetDatabaseStatus(PRUint16 *aDatabaseStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatabaseStatus(aDatabaseStatus); } \
2479 : NS_SCRIPTABLE NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasHistoryEntries(aHasHistoryEntries); } \
2480 : NS_SCRIPTABLE NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageTitle(aURI, _retval); } \
2481 : NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkPageAsFollowedBookmark(aURI); } \
2482 : NS_SCRIPTABLE NS_IMETHOD GetCharsetForURI(nsIURI *aURI, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetForURI(aURI, _retval); } \
2483 : NS_SCRIPTABLE NS_IMETHOD SetCharsetForURI(nsIURI *aURI, const nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharsetForURI(aURI, aCharset); } \
2484 : NS_SCRIPTABLE NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanAddURI(aURI, _retval); } \
2485 : NS_SCRIPTABLE NS_IMETHOD AddVisit(nsIURI *aURI, PRTime aTime, nsIURI *aReferringURI, PRInt32 aTransitionType, bool aIsRedirect, PRInt64 aSessionID, PRInt64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddVisit(aURI, aTime, aReferringURI, aTransitionType, aIsRedirect, aSessionID, _retval); } \
2486 : NS_SCRIPTABLE NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewQuery(_retval); } \
2487 : NS_SCRIPTABLE NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewQueryOptions(_retval); } \
2488 : NS_SCRIPTABLE NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteQuery(aQuery, options, _retval); } \
2489 : NS_SCRIPTABLE NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteQueries(aQueries, aQueryCount, options, _retval); } \
2490 : NS_SCRIPTABLE NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries NS_OUTPARAM, PRUint32 *aResultCount NS_OUTPARAM, nsINavHistoryQueryOptions * *options NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryStringToQueries(aQueryString, aQueries, aResultCount, options); } \
2491 : NS_SCRIPTABLE NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueriesToQueryString(aQueries, aQueryCount, options, _retval); } \
2492 : NS_SCRIPTABLE NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer, ownsWeak); } \
2493 : NS_SCRIPTABLE NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } \
2494 : NS_SCRIPTABLE NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) { return !_to ? NS_ERROR_NULL_POINTER : _to->RunInBatchMode(aCallback, aClosure); } \
2495 : NS_SCRIPTABLE NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistoryDisabled(aHistoryDisabled); }
2496 :
2497 : #if 0
2498 : /* Use the code below as a template for the implementation class for this interface. */
2499 :
2500 : /* Header file */
2501 : class nsNavHistoryService : public nsINavHistoryService
2502 : {
2503 : public:
2504 : NS_DECL_ISUPPORTS
2505 : NS_DECL_NSINAVHISTORYSERVICE
2506 :
2507 : nsNavHistoryService();
2508 :
2509 : private:
2510 : ~nsNavHistoryService();
2511 :
2512 : protected:
2513 : /* additional members */
2514 : };
2515 :
2516 : /* Implementation file */
2517 : NS_IMPL_ISUPPORTS1(nsNavHistoryService, nsINavHistoryService)
2518 :
2519 : nsNavHistoryService::nsNavHistoryService()
2520 : {
2521 : /* member initializers and constructor code */
2522 : }
2523 :
2524 : nsNavHistoryService::~nsNavHistoryService()
2525 : {
2526 : /* destructor code */
2527 : }
2528 :
2529 : /* readonly attribute unsigned short databaseStatus; */
2530 : NS_IMETHODIMP nsNavHistoryService::GetDatabaseStatus(PRUint16 *aDatabaseStatus)
2531 : {
2532 : return NS_ERROR_NOT_IMPLEMENTED;
2533 : }
2534 :
2535 : /* readonly attribute boolean hasHistoryEntries; */
2536 : NS_IMETHODIMP nsNavHistoryService::GetHasHistoryEntries(bool *aHasHistoryEntries)
2537 : {
2538 : return NS_ERROR_NOT_IMPLEMENTED;
2539 : }
2540 :
2541 : /* AString getPageTitle (in nsIURI aURI); */
2542 : NS_IMETHODIMP nsNavHistoryService::GetPageTitle(nsIURI *aURI, nsAString & _retval NS_OUTPARAM)
2543 : {
2544 : return NS_ERROR_NOT_IMPLEMENTED;
2545 : }
2546 :
2547 : /* void markPageAsFollowedBookmark (in nsIURI aURI); */
2548 : NS_IMETHODIMP nsNavHistoryService::MarkPageAsFollowedBookmark(nsIURI *aURI)
2549 : {
2550 : return NS_ERROR_NOT_IMPLEMENTED;
2551 : }
2552 :
2553 : /* AString getCharsetForURI (in nsIURI aURI); */
2554 : NS_IMETHODIMP nsNavHistoryService::GetCharsetForURI(nsIURI *aURI, nsAString & _retval NS_OUTPARAM)
2555 : {
2556 : return NS_ERROR_NOT_IMPLEMENTED;
2557 : }
2558 :
2559 : /* void setCharsetForURI (in nsIURI aURI, in AString aCharset); */
2560 : NS_IMETHODIMP nsNavHistoryService::SetCharsetForURI(nsIURI *aURI, const nsAString & aCharset)
2561 : {
2562 : return NS_ERROR_NOT_IMPLEMENTED;
2563 : }
2564 :
2565 : /* boolean canAddURI (in nsIURI aURI); */
2566 : NS_IMETHODIMP nsNavHistoryService::CanAddURI(nsIURI *aURI, bool *_retval NS_OUTPARAM)
2567 : {
2568 : return NS_ERROR_NOT_IMPLEMENTED;
2569 : }
2570 :
2571 : /* long long addVisit (in nsIURI aURI, in PRTime aTime, in nsIURI aReferringURI, in long aTransitionType, in boolean aIsRedirect, in long long aSessionID); */
2572 : NS_IMETHODIMP nsNavHistoryService::AddVisit(nsIURI *aURI, PRTime aTime, nsIURI *aReferringURI, PRInt32 aTransitionType, bool aIsRedirect, PRInt64 aSessionID, PRInt64 *_retval NS_OUTPARAM)
2573 : {
2574 : return NS_ERROR_NOT_IMPLEMENTED;
2575 : }
2576 :
2577 : /* nsINavHistoryQuery getNewQuery (); */
2578 : NS_IMETHODIMP nsNavHistoryService::GetNewQuery(nsINavHistoryQuery * *_retval NS_OUTPARAM)
2579 : {
2580 : return NS_ERROR_NOT_IMPLEMENTED;
2581 : }
2582 :
2583 : /* nsINavHistoryQueryOptions getNewQueryOptions (); */
2584 : NS_IMETHODIMP nsNavHistoryService::GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval NS_OUTPARAM)
2585 : {
2586 : return NS_ERROR_NOT_IMPLEMENTED;
2587 : }
2588 :
2589 : /* nsINavHistoryResult executeQuery (in nsINavHistoryQuery aQuery, in nsINavHistoryQueryOptions options); */
2590 : NS_IMETHODIMP nsNavHistoryService::ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM)
2591 : {
2592 : return NS_ERROR_NOT_IMPLEMENTED;
2593 : }
2594 :
2595 : /* nsINavHistoryResult executeQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
2596 : NS_IMETHODIMP nsNavHistoryService::ExecuteQueries(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval NS_OUTPARAM)
2597 : {
2598 : return NS_ERROR_NOT_IMPLEMENTED;
2599 : }
2600 :
2601 : /* void queryStringToQueries (in AUTF8String aQueryString, [array, size_is (aResultCount)] out nsINavHistoryQuery aQueries, out unsigned long aResultCount, out nsINavHistoryQueryOptions options); */
2602 : NS_IMETHODIMP nsNavHistoryService::QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries NS_OUTPARAM, PRUint32 *aResultCount NS_OUTPARAM, nsINavHistoryQueryOptions * *options NS_OUTPARAM)
2603 : {
2604 : return NS_ERROR_NOT_IMPLEMENTED;
2605 : }
2606 :
2607 : /* AUTF8String queriesToQueryString ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
2608 : NS_IMETHODIMP nsNavHistoryService::QueriesToQueryString(nsINavHistoryQuery **aQueries, PRUint32 aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval NS_OUTPARAM)
2609 : {
2610 : return NS_ERROR_NOT_IMPLEMENTED;
2611 : }
2612 :
2613 : /* void addObserver (in nsINavHistoryObserver observer, in boolean ownsWeak); */
2614 : NS_IMETHODIMP nsNavHistoryService::AddObserver(nsINavHistoryObserver *observer, bool ownsWeak)
2615 : {
2616 : return NS_ERROR_NOT_IMPLEMENTED;
2617 : }
2618 :
2619 : /* void removeObserver (in nsINavHistoryObserver observer); */
2620 : NS_IMETHODIMP nsNavHistoryService::RemoveObserver(nsINavHistoryObserver *observer)
2621 : {
2622 : return NS_ERROR_NOT_IMPLEMENTED;
2623 : }
2624 :
2625 : /* void runInBatchMode (in nsINavHistoryBatchCallback aCallback, in nsISupports aClosure); */
2626 : NS_IMETHODIMP nsNavHistoryService::RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure)
2627 : {
2628 : return NS_ERROR_NOT_IMPLEMENTED;
2629 : }
2630 :
2631 : /* readonly attribute boolean historyDisabled; */
2632 : NS_IMETHODIMP nsNavHistoryService::GetHistoryDisabled(bool *aHistoryDisabled)
2633 : {
2634 : return NS_ERROR_NOT_IMPLEMENTED;
2635 : }
2636 :
2637 : /* End of implementation class template. */
2638 : #endif
2639 :
2640 :
2641 : /* starting interface: nsINavHistoryBatchCallback */
2642 : #define NS_INAVHISTORYBATCHCALLBACK_IID_STR "5143f2bb-be0a-4faf-9acb-b0ed3f82952c"
2643 :
2644 : #define NS_INAVHISTORYBATCHCALLBACK_IID \
2645 : {0x5143f2bb, 0xbe0a, 0x4faf, \
2646 : { 0x9a, 0xcb, 0xb0, 0xed, 0x3f, 0x82, 0x95, 0x2c }}
2647 :
2648 11 : class NS_NO_VTABLE NS_SCRIPTABLE nsINavHistoryBatchCallback : public nsISupports {
2649 : public:
2650 :
2651 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYBATCHCALLBACK_IID)
2652 :
2653 : /* void runBatched (in nsISupports aUserData); */
2654 : NS_SCRIPTABLE NS_IMETHOD RunBatched(nsISupports *aUserData) = 0;
2655 :
2656 : };
2657 :
2658 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryBatchCallback, NS_INAVHISTORYBATCHCALLBACK_IID)
2659 :
2660 : /* Use this macro when declaring classes that implement this interface. */
2661 : #define NS_DECL_NSINAVHISTORYBATCHCALLBACK \
2662 : NS_SCRIPTABLE NS_IMETHOD RunBatched(nsISupports *aUserData);
2663 :
2664 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
2665 : #define NS_FORWARD_NSINAVHISTORYBATCHCALLBACK(_to) \
2666 : NS_SCRIPTABLE NS_IMETHOD RunBatched(nsISupports *aUserData) { return _to RunBatched(aUserData); }
2667 :
2668 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
2669 : #define NS_FORWARD_SAFE_NSINAVHISTORYBATCHCALLBACK(_to) \
2670 : NS_SCRIPTABLE NS_IMETHOD RunBatched(nsISupports *aUserData) { return !_to ? NS_ERROR_NULL_POINTER : _to->RunBatched(aUserData); }
2671 :
2672 : #if 0
2673 : /* Use the code below as a template for the implementation class for this interface. */
2674 :
2675 : /* Header file */
2676 : class nsNavHistoryBatchCallback : public nsINavHistoryBatchCallback
2677 : {
2678 : public:
2679 : NS_DECL_ISUPPORTS
2680 : NS_DECL_NSINAVHISTORYBATCHCALLBACK
2681 :
2682 : nsNavHistoryBatchCallback();
2683 :
2684 : private:
2685 : ~nsNavHistoryBatchCallback();
2686 :
2687 : protected:
2688 : /* additional members */
2689 : };
2690 :
2691 : /* Implementation file */
2692 : NS_IMPL_ISUPPORTS1(nsNavHistoryBatchCallback, nsINavHistoryBatchCallback)
2693 :
2694 : nsNavHistoryBatchCallback::nsNavHistoryBatchCallback()
2695 : {
2696 : /* member initializers and constructor code */
2697 : }
2698 :
2699 : nsNavHistoryBatchCallback::~nsNavHistoryBatchCallback()
2700 : {
2701 : /* destructor code */
2702 : }
2703 :
2704 : /* void runBatched (in nsISupports aUserData); */
2705 : NS_IMETHODIMP nsNavHistoryBatchCallback::RunBatched(nsISupports *aUserData)
2706 : {
2707 : return NS_ERROR_NOT_IMPLEMENTED;
2708 : }
2709 :
2710 : /* End of implementation class template. */
2711 : #endif
2712 :
2713 :
2714 : #endif /* __gen_nsINavHistoryService_h__ */
|