27 Components.utils.import(
"resource://gre/modules/XPCOMUtils.jsm");
28 Components.utils.import(
"resource://app/jsmodules/ArrayConverter.jsm");
29 Components.utils.import(
"resource://app/jsmodules/sbLocalDatabaseMigrationUtils.jsm");
30 Components.utils.import(
"resource://app/jsmodules/SBJobUtils.jsm");
32 const Cc = Components.classes;
33 const Ci = Components.interfaces;
34 const Cr = Components.results;
37 dump(
"----++++----++++sbLibraryMigration " +
40 "\n----++++----++++\n");
45 SBLocalDatabaseMigrationUtils.BaseMigrationHandler.call(
this);
47 this.fromVersion = 19;
49 this.versionString = this.fromVersion +
" to " +
58 __proto__: SBLocalDatabaseMigrationUtils.BaseMigrationHandler.prototype,
60 classID: Components.ID(
"{783f8680-5156-11de-8a39-0800200c9a66}"),
61 contractID: SBLocalDatabaseMigrationUtils.baseHandlerContractID +
' 19 to 20',
63 migrate:
function sbLibraryMigration_migrate(aLibrary) {
66 this._databaseGUID = aLibrary.databaseGuid;
67 this._databaseLocation = aLibrary.databaseLocation;
70 var query = this.createMigrationQuery(aLibrary);
71 query.addQuery(
"commit");
73 query.setAsyncQuery(
false);
74 query.execute(retval);
80 var
prefs =
Cc[
"@mozilla.org/preferences-service;1"]
81 .getService(
Ci.nsIPrefBranch);
82 prefs.setBoolPref(
"songbird.propertycache." +
83 this._databaseGUID +
".invalidSortData",
true);
84 prefs.QueryInterface(
Ci.nsIPrefService).savePrefFile(
null);
87 dump(
"Exception occured: " + e);
97 return XPCOMUtils.generateModule([
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
function sbLibraryMigration()
sbDeviceFirmwareAutoCheckForUpdate prototype classID
function NSGetModule(compMgr, fileSpec)