import "sbILocalDatabasePropertyCache.idl";
Public Member Functions | |
sbIJobProgress | invalidateSortData () |
Public Attributes | |
readonly attribute boolean | writePending |
Definition at line 42 of file sbILocalDatabasePropertyCache.idl.
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);