connect.js File Reference

Go to the source code of this file.

Functions

 if (typeof foldersync== 'undefined')
 
foldersync connect establishConnection ()
 

Variables

foldersync connect
 

Function Documentation

foldersync connect establishConnection ( )
if ( typeof  foldersync = = 'undefined')

Definition at line 7 of file connect.js.

Variable Documentation

foldersync connect
Initial value:
= {
establishConnection: function(){
var mainWindow = window.QueryInterface(Components.interfaces.
getInterface(Components.interfaces.
QueryInterface(Components.interfaces.
rootTreeItem.QueryInterface(Components.interfaces.
getInterface(Components.interfaces.nsIDOMWindow);
if (mainWindow == window){
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)
let window
foldersync connect establishConnection()
const nsIWebNavigation
Definition: browser.js:71
const nsIInterfaceRequestor

Definition at line 15 of file connect.js.