Class Index | File Index

Classes


Class com.gContactSync.MessengerOverlay


Defined in: MessengerOverlay.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
The main overlay removes old log files and logs basic information about the version of gContactSync and Thunderbird.
Field Summary
Field Attributes Field Name and Description
<static>  
com.gContactSync.MessengerOverlay.mOriginalSetBusyCursor
The original SetBusyCursor function that throws exceptions after gContactSync synchronizes from messenger.xul.
Method Summary
Method Attributes Method Name and Description
<static>  
com.gContactSync.MessengerOverlay.checkAuthentication()
Checks to see whether or not there is an authentication token in the login manager.
<static>  
com.gContactSync.MessengerOverlay.getCardForEmail(aEmail)
Returns an object with the first card and AB found with the given e-mail address.
<static>  
com.gContactSync.MessengerOverlay.initialize()
Initializes the MessengerOverlay class.
<static>  
com.gContactSync.MessengerOverlay.login(aAuthToken, aAuthToken)
Stores the given auth token in the login manager and starts the setup window that will begin the first synchronization when closed.
<static>  
com.gContactSync.MessengerOverlay.promptLogin()
Prompts the user to enter his or her Google username and password and then gets an authentication token to store and use.
<static>  
com.gContactSync.MessengerOverlay.SetBusyCursor()
Calls the original SetBusyCursor() function from mailCore.js wrapped in a try/catch block.
Class Detail
com.gContactSync.MessengerOverlay()
The main overlay removes old log files and logs basic information about the version of gContactSync and Thunderbird. Also resets the needRestart pref to false.
Field Detail
<static> com.gContactSync.MessengerOverlay.mOriginalSetBusyCursor
The original SetBusyCursor function that throws exceptions after gContactSync synchronizes from messenger.xul.
Method Detail
<static> com.gContactSync.MessengerOverlay.checkAuthentication()
Checks to see whether or not there is an authentication token in the login manager. If so, it begins a sync. If not, it shows the login prompt.

<static> {object} com.gContactSync.MessengerOverlay.getCardForEmail(aEmail)
Returns an object with the first card and AB found with the given e-mail address. This is used to also search the ThirdEmail and FourthEmail properties as added by gContactSync.
Parameters:
aEmail
{string} The e-mail address to search for.
Returns:
{object} An object with the AB and contact, if found. The object has 2 properties: book, containing the AB; and card, containing the contact. Both are null if no contact was found with the given e-mail address, or if the e-mail address was empty.

<static> com.gContactSync.MessengerOverlay.initialize()
Initializes the MessengerOverlay class. This consists of setting the needRestart pref to false, removing the old log file, and logging basic TB and gContactSync information.

<static> com.gContactSync.MessengerOverlay.login(aAuthToken, aAuthToken)
Stores the given auth token in the login manager and starts the setup window that will begin the first synchronization when closed.
Parameters:
aAuthToken
{string} The authentication token to store.
aAuthToken

<static> com.gContactSync.MessengerOverlay.promptLogin()
Prompts the user to enter his or her Google username and password and then gets an authentication token to store and use.

<static> com.gContactSync.MessengerOverlay.SetBusyCursor()
Calls the original SetBusyCursor() function from mailCore.js wrapped in a try/catch block. For some unknown reason, gContactSync causes SetBusyCursor to fail after a synchronization with an update from messenger.xul. See Bug 22801 for more details.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri May 06 2011 09:24:18 GMT-0400 (EDT)