Songbird / Development / Songbird Add-Ons API Documentation

sbILocalDatabasePropertyCache Interface Reference

[USER CODE SHOULD NOT REFERENCE THIS CLASS] More...

import "sbILocalDatabasePropertyCache.idl";

List of all members.

Public Member Functions

sbIJobProgress invalidateSortData ()

Public Attributes

readonly attribute boolean writePending


Detailed Description

[USER CODE SHOULD NOT REFERENCE THIS CLASS]

Definition at line 42 of file sbILocalDatabasePropertyCache.idl.


Member Function Documentation

sbIJobProgress sbILocalDatabasePropertyCache::invalidateSortData (  ) 

Used to rebuild all sortable and secondary sortable data in the library. Should be called any time the GetSecondarySort or MakeSortable functions of an sbIPropertyInfo implementation are changed.

See Bug 12677 – "[sorting] cached sortable values should auto-invalidate when property implementations change"

Example: var mainLibrary = Cc["@songbirdnest.com/Songbird/library/Manager;1"] .getService(Ci.sbILibraryManager).mainLibrary; var cache = mainLibrary.QueryInterface(Ci.sbILocalDatabaseLibrary) .propertyCache; Components.utils.import("resource://app/jsmodules/SBJobUtils.jsm"); SBJobUtils.showProgressDialog(cache.invalidateSortData(), null, 0);


The documentation for this interface was generated from the following file:
Generated on Tue Mar 10 14:28:59 2009 for Songbird by  doxygen 1.5.2