Places:History API: Difference between revisions
Jump to navigation
Jump to search
BrettWilson (talk | contribs) No edit summary |
BrettWilson (talk | contribs) |
||
| Line 1: | Line 1: | ||
== How to use the "Places" History API (nsNavHistory/nsNavBookmarks) == | == How to use the "Places" History API (nsNavHistory/nsNavBookmarks) == | ||
Most information from the [[ | Most information from the [[Browser_History]] and bookmarks system comes from executing queries on the history system (nsINavHistory.executeQuery/executeQueries). This will give you a nsINavHistoryResult object which will contain a tree structure of the results. The definitions of these structures is in browser/components/places/public/nsINavHistoryService.idl | ||
== Executing a query == | == Executing a query == | ||
Revision as of 17:56, 31 January 2006
Most information from the Browser_History and bookmarks system comes from executing queries on the history system (nsINavHistory.executeQuery/executeQueries). This will give you a nsINavHistoryResult object which will contain a tree structure of the results. The definitions of these structures is in browser/components/places/public/nsINavHistoryService.idl
Executing a query
There are two parts of a query: a list of one or more nsINavHistoryQuery objects, and an nsINavHistoryQueryOptions object.