"use strict";const{classes:Cc,interfaces:Ci,utils:Cu,results:Cr}=Components;Cu.import("resource://gre/modules/XPCOMUtils.jsm");Cu.import("resource://gre/modules/ctypes.jsm");const RECOVERYSERVICE_CID=Components.ID("{b3caca5d-0bb0-48c6-912b-6be6cbf08832}");const RECOVERYSERVICE_CONTRACTID="@mozilla.org/recovery-service;1";function log(msg){dump("-*- RecoveryService: "+msg+"\n");}
function RecoveryService(){}
RecoveryService.prototype={classID:RECOVERYSERVICE_CID,QueryInterface:XPCOMUtils.generateQI([Ci.nsIRecoveryService]),classInfo:XPCOMUtils.generateCI({classID:RECOVERYSERVICE_CID,contractID:RECOVERYSERVICE_CONTRACTID,interfaces:[Ci.nsIRecoveryService],classDescription:"B2G Recovery Service"}),factoryReset:function RS_factoryReset(reason){throw Cr.NS_ERROR_FAILURE;},installFotaUpdate:function RS_installFotaUpdate(updatePath){throw Cr.NS_ERROR_FAILURE;},getFotaUpdateStatus:function RS_getFotaUpdateStatus(){let status=Ci.nsIRecoveryService.FOTA_UPDATE_UNKNOWN;return status;}};this.NSGetFactory=XPCOMUtils.generateNSGetFactory([RecoveryService]);