7 if (typeof foldersync ==
'undefined') {
15 foldersync.connect = {
19 var mainWindow =
window.QueryInterface(Components.interfaces.
21 getInterface(Components.interfaces.
25 rootTreeItem.QueryInterface(Components.interfaces.
27 getInterface(Components.interfaces.nsIDOMWindow);
30 var
wm = Components.classes[
"@mozilla.org/appshell/window-mediator;1"].
31 getService(Components.interfaces.nsIWindowMediator);
32 mainWindow = wm.getMostRecentWindow(
"Songbird:Main");
35 var _foldersync = mainWindow.foldersync;
37 foldersync.central = _foldersync.central;
38 foldersync.sync = _foldersync.sync;
39 foldersync.preferences = _foldersync.preferences;
40 foldersync.rockbox = _foldersync.rockbox;
42 foldersync.central.logEvent(
"connect",
"Connected: " +
window.location, 4);
47 foldersync.connect.establishConnection();
const nsIDocShellTreeItem
sbOSDControlService prototype QueryInterface
getService(Ci.sbIFaceplateManager)
foldersync connect establishConnection()
const nsIInterfaceRequestor