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 = 17;
49 this.versionString = this.fromVersion +
" to " +
58 __proto__: SBLocalDatabaseMigrationUtils.BaseMigrationHandler.prototype,
60 classID: Components.ID(
"{2cba8c55-029a-4313-b7a3-492f6fc765b2}"),
61 contractID: SBLocalDatabaseMigrationUtils.baseHandlerContractID +
' 17 to 18',
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);
98 return XPCOMUtils.generateModule([
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
function NSGetModule(compMgr, fileSpec)
function sbLibraryMigration()
sbDeviceFirmwareAutoCheckForUpdate prototype classID