nsPlacesTransactionsService.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 
 __defineGetter__ ("PlacesUtils", function(){delete this.PlacesUtils var tmpScope={};Components.utils.import("resource://gre/modules/utils.js", tmpScope);return this.PlacesUtils=tmpScope.PlacesUtils;})
 
function placesTransactionsService ()
 
function placesBaseTransaction ()
 
function placesAggregateTransactions (name, transactions)
 
function placesCreateFolderTransactions (aName, aContainer, aIndex, aAnnotations, aChildItemsTransactions)
 
function placesCreateItemTransactions (aURI, aContainer, aIndex, aTitle, aKeyword, aAnnotations, aChildTransactions)
 
function placesCreateSeparatorTransactions (aContainer, aIndex)
 
function placesCreateLivemarkTransactions (aFeedURI, aSiteURI, aName, aContainer, aIndex, aAnnotations)
 
function placesRemoveLivemarkTransaction (aFolderId)
 
function placesMoveItemTransactions (aItemId, aNewContainer, aNewIndex)
 
function placesRemoveItemTransaction (aItemId)
 
function placesEditItemTitleTransactions (id, newTitle)
 
function placesEditBookmarkURITransactions (aBookmarkId, aNewURI)
 
function placesSetItemAnnotationTransactions (aItemId, aAnnotationObject)
 
function placesSetPageAnnotationTransactions (aURI, aAnnotationObject)
 
function placesEditBookmarkKeywordTransactions (id, newKeyword)
 
function placesEditBookmarkPostDataTransactions (aItemId, aPostData)
 
function placesEditLivemarkSiteURITransactions (folderId, uri)
 
function placesEditLivemarkFeedURITransactions (folderId, uri)
 
function placesEditBookmarkMicrosummaryTransactions (aItemId, newMicrosummary)
 
function placesEditItemDateAddedTransaction (id, newDateAdded)
 
function placesEditItemLastModifiedTransaction (id, newLastModified)
 
function placesSortFolderByNameTransactions (aFolderId)
 
function placesTagURITransaction (aURI, aTags)
 
function placesUntagURITransaction (aURI, aTags)
 
function NSGetModule (aCompMgr, aFileSpec)
 

Variables

let Ci = Components.interfaces
 
let Cc = Components.classes
 
let Cr = Components.results
 
const LOAD_IN_SIDEBAR_ANNO = "bookmarkProperties/loadInSidebar"
 
const DESCRIPTION_ANNO = "bookmarkProperties/description"
 
const GUID_ANNO = "placesInternal/GUID"
 
const CLASS_ID = Components.ID("c0844a84-5a12-4808-80a8-809cb002bb4f")
 
const CONTRACT_ID = "@mozilla.org/browser/placesTransactionsService;1"
 
const MIN_TRANSACTIONS_FOR_BATCH = 5
 
placesTransactionsService prototype
 

Function Documentation

__defineGetter__ ( "Application"  ,
function(){delete Application;Application=Cc["@mozilla.org/fuel/application;1"].getService(Ci.fuelIApplication);return Application;}   
)

Construct a column spec parser and read the column specification immediately

Parameters
aMediaListThe media list to find columns to display for
aPlaylistthe playlist binding
aMaska bitfield containing the source to look for; see the ColumnSpecParser.ORIGIN_* constants
[optional]aConstraint the media type constraint to use, if any
Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function NSGetModule (   aCompMgr,
  aFileSpec 
)

Definition at line 1178 of file nsPlacesTransactionsService.js.

Here is the call graph for this function:

function placesAggregateTransactions (   name,
  transactions 
)

Definition at line 328 of file nsPlacesTransactionsService.js.

function placesBaseTransaction ( )

Method and utility stubs for Places Edit Transactions

Definition at line 302 of file nsPlacesTransactionsService.js.

function placesCreateFolderTransactions (   aName,
  aContainer,
  aIndex,
  aAnnotations,
  aChildItemsTransactions 
)

Definition at line 400 of file nsPlacesTransactionsService.js.

function placesCreateItemTransactions (   aURI,
  aContainer,
  aIndex,
  aTitle,
  aKeyword,
  aAnnotations,
  aChildTransactions 
)

Definition at line 456 of file nsPlacesTransactionsService.js.

function placesCreateLivemarkTransactions (   aFeedURI,
  aSiteURI,
  aName,
  aContainer,
  aIndex,
  aAnnotations 
)

Definition at line 544 of file nsPlacesTransactionsService.js.

function placesCreateSeparatorTransactions (   aContainer,
  aIndex 
)

Definition at line 514 of file nsPlacesTransactionsService.js.

function placesEditBookmarkKeywordTransactions (   id,
  newKeyword 
)

Definition at line 879 of file nsPlacesTransactionsService.js.

function placesEditBookmarkMicrosummaryTransactions (   aItemId,
  newMicrosummary 
)

Definition at line 961 of file nsPlacesTransactionsService.js.

Here is the call graph for this function:

function placesEditBookmarkPostDataTransactions (   aItemId,
  aPostData 
)

Definition at line 899 of file nsPlacesTransactionsService.js.

function placesEditBookmarkURITransactions (   aBookmarkId,
  aNewURI 
)

Definition at line 766 of file nsPlacesTransactionsService.js.

function placesEditItemDateAddedTransaction (   id,
  newDateAdded 
)

Definition at line 989 of file nsPlacesTransactionsService.js.

function placesEditItemLastModifiedTransaction (   id,
  newLastModified 
)

Definition at line 1013 of file nsPlacesTransactionsService.js.

function placesEditItemTitleTransactions (   id,
  newTitle 
)

Definition at line 746 of file nsPlacesTransactionsService.js.

function placesEditLivemarkFeedURITransactions (   folderId,
  uri 
)

Definition at line 939 of file nsPlacesTransactionsService.js.

function placesEditLivemarkSiteURITransactions (   folderId,
  uri 
)

Definition at line 919 of file nsPlacesTransactionsService.js.

function placesMoveItemTransactions (   aItemId,
  aNewContainer,
  aNewIndex 
)

Definition at line 624 of file nsPlacesTransactionsService.js.

function placesRemoveItemTransaction (   aItemId)

Definition at line 652 of file nsPlacesTransactionsService.js.

function placesRemoveLivemarkTransaction (   aFolderId)

Definition at line 582 of file nsPlacesTransactionsService.js.

function placesSetItemAnnotationTransactions (   aItemId,
  aAnnotationObject 
)

Definition at line 800 of file nsPlacesTransactionsService.js.

function placesSetPageAnnotationTransactions (   aURI,
  aAnnotationObject 
)

Definition at line 841 of file nsPlacesTransactionsService.js.

function placesSortFolderByNameTransactions (   aFolderId)

Definition at line 1037 of file nsPlacesTransactionsService.js.

function placesTagURITransaction (   aURI,
  aTags 
)

Definition at line 1109 of file nsPlacesTransactionsService.js.

function placesTransactionsService ( )

Definition at line 65 of file nsPlacesTransactionsService.js.

Here is the caller graph for this function:

function placesUntagURITransaction (   aURI,
  aTags 
)

Definition at line 1147 of file nsPlacesTransactionsService.js.

Variable Documentation

let Cc = Components.classes

Definition at line 42 of file nsPlacesTransactionsService.js.

Definition at line 41 of file nsPlacesTransactionsService.js.

const CLASS_ID = Components.ID("c0844a84-5a12-4808-80a8-809cb002bb4f")

Definition at line 49 of file nsPlacesTransactionsService.js.

const CONTRACT_ID = "@mozilla.org/browser/placesTransactionsService;1"

Definition at line 50 of file nsPlacesTransactionsService.js.

let Cr = Components.results

Definition at line 43 of file nsPlacesTransactionsService.js.

const DESCRIPTION_ANNO = "bookmarkProperties/description"

Definition at line 46 of file nsPlacesTransactionsService.js.

const GUID_ANNO = "placesInternal/GUID"

Definition at line 47 of file nsPlacesTransactionsService.js.

const LOAD_IN_SIDEBAR_ANNO = "bookmarkProperties/loadInSidebar"

Definition at line 45 of file nsPlacesTransactionsService.js.

const MIN_TRANSACTIONS_FOR_BATCH = 5

Definition at line 63 of file nsPlacesTransactionsService.js.

Definition at line 70 of file nsPlacesTransactionsService.js.