25 Components.utils.import(
"resource://gre/modules/XPCOMUtils.jsm");
26 Components.utils.import(
"resource://app/jsmodules/sbLocalDatabaseMigrationUtils.jsm");
28 const Cc = Components.classes;
29 const Ci = Components.interfaces;
30 const Cr = Components.results;
36 dump(
"----++++----++++sbLibraryMigration " +
39 "\n----++++----++++\n");
44 SBLocalDatabaseMigrationUtils.BaseMigrationHandler.call(
this);
53 __proto__: SBLocalDatabaseMigrationUtils.BaseMigrationHandler.prototype,
56 classID: Components.ID(
"{0f5c7861-873d-419e-9de7-8a1d157050b0}"),
57 contractID: SBLocalDatabaseMigrationUtils.baseHandlerContractID +
63 migrate:
function sbLibraryMigration_migrate(aLibrary) {
65 this._databaseGUID = aLibrary.databaseGuid;
66 this._databaseLocation = aLibrary.databaseLocation;
69 var query = this.createMigrationQuery(aLibrary);
70 query.addQuery(
"commit");
72 query.setAsyncQuery(
false);
73 query.execute(retval);
82 var
prefs =
Cc[
"@mozilla.org/preferences-service;1"]
83 .getService(
Ci.nsIPrefBranch);
84 prefs.setBoolPref(
"songbird.propertycache." +
85 this._databaseGUID +
".invalidSortData",
true);
86 prefs.QueryInterface(
Ci.nsIPrefService).savePrefFile(
null);
89 dump(
"Exception occured: " + e);
99 return XPCOMUtils.generateModule([
function sbLibraryMigration()
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
function NSGetModule(compMgr, fileSpec)
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
sbDeviceFirmwareAutoCheckForUpdate prototype classID