= {
var mainWindow =
window.QueryInterface(Components.interfaces.
getInterface(Components.interfaces.
rootTreeItem.QueryInterface(Components.interfaces.
getInterface(Components.interfaces.nsIDOMWindow);
var
wm = Components.classes[
"@mozilla.org/appshell/window-mediator;1"].
getService(Components.interfaces.nsIWindowMediator);
mainWindow = wm.getMostRecentWindow("Songbird:Main");
}
var _foldersync = mainWindow.foldersync;
foldersync.central = _foldersync.central;
foldersync.sync = _foldersync.sync;
foldersync.preferences = _foldersync.preferences;
foldersync.rockbox = _foldersync.rockbox;
foldersync.central.logEvent(
"connect",
"Connected: " +
window.location, 4);
},
}
const nsIDocShellTreeItem
sbOSDControlService prototype QueryInterface
getService(Ci.sbIFaceplateManager)
foldersync connect establishConnection()
const nsIInterfaceRequestor