Class Index | File Index

Classes


Class com.gContactSync.AbListener


Defined in: AbListener.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
AbListener is a listener for the Address Book that is currently only used to update the last modified date of mailing lists and cards contained within them.
Method Summary
Method Attributes Method Name and Description
<static>  
com.gContactSync.AbListener.add()
Adds this listener to be alerted whenever a directory item is removed.
<static>  
com.gContactSync.AbListener.getURI(aDirectory)
Gets the Uniform Resource Identifier (URI) of the specified directory.
<static>  
com.gContactSync.AbListener.onItemAdded(aParentDir, aItem)
Unused.
<static>  
com.gContactSync.AbListener.onItemPropertyChanged(aItem, aProperty, aOldValue, aNewValue)
Unused.
<static>  
com.gContactSync.AbListener.onItemRemoved(aParentDir, aItem)
Used just to update the lastModifiedDate of cards removed from a mail list.
<static>  
com.gContactSync.AbListener.remove()
Removes this listener.
Class Detail
com.gContactSync.AbListener()
AbListener is a listener for the Address Book that is currently only used to update the last modified date of mailing lists and cards contained within them.
Method Detail
<static> com.gContactSync.AbListener.add()
Adds this listener to be alerted whenever a directory item is removed. It will be called whenever an item (card or mail list) is removed from a directory (address book or mail list).

<static> {string} com.gContactSync.AbListener.getURI(aDirectory)
Gets the Uniform Resource Identifier (URI) of the specified directory.
Parameters:
aDirectory
{nsIAbDirectory} The directory whose URI is returned.
Returns:
{string} The URI of aDirectory.

<static> com.gContactSync.AbListener.onItemAdded(aParentDir, aItem)
Unused.
Parameters:
aParentDir
The parent directory to which an item was added.
aItem
The item added to the directory.

<static> com.gContactSync.AbListener.onItemPropertyChanged(aItem, aProperty, aOldValue, aNewValue)
Unused.
Parameters:
aItem
The item whose property was changed.
aProperty
The property changed.
aOldValue
The former value of the property.
aNewValue
The new value of the property.

<static> com.gContactSync.AbListener.onItemRemoved(aParentDir, aItem)
Used just to update the lastModifiedDate of cards removed from a mail list. If a mail list is removed nothing needs to be done since the Group will be deleted in Gmail.
Parameters:
aParentDir
{nsIAbDirectory} The directory from which an item was removed. Ignored unless it is a list.
aItem
The item removed from a directory. Ignored unless it is an Address Book card removed from a mail list.

<static> com.gContactSync.AbListener.remove()
Removes this listener.

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