WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsINavHistoryResult

IID:d1562f6f-8d5a-4042-8524-72f747a51b18
Inherits From:nsISupports

Properties

readonly nsINavHistoryContainerResultNode root

This is the root of the results. Remember that you need to open all containers for their contents to be valid.

AUTF8String sortingAnnotation

The annotation to use in SORT_BY_ANNOTATION_* sorting modes, set this before setting the sortingMode attribute.

PRUint16 sortingMode

Sorts all nodes recursively by the given parameter, one of nsINavHistoryQueryOptions.SORT_BY_* This will update the corresponding options for this result, so that re-using the current options/queries will always give you the current view.

nsINavHistoryResultViewer viewer

The viewer for this result (see comment for the class for how these objects are related). This may be null, in which case you can still manually walk the tree using the root node. When this is non-null, you can access the flattened list of items (flatItemCount, nodeForFlatIndex, flatIndexForNode).


References

This interface is the type of the following properties:

nsINavHistoryResultNode.parentResult, nsINavHistoryResultViewer.result

This interface is returned from the following methods:

nsINavHistoryService.executeQueries, nsINavHistoryService.executeQuery

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com