FileDocCategorySizeDatePackage
MessagingListener.javaAPI DocAndroid 1.5 API4456Wed May 06 22:42:46 BST 2009com.android.email

MessagingListener

public class MessagingListener extends Object
Defines the interface that MessagingController will use to callback to requesters. This class is defined as non-abstract so that someone who wants to receive only a few messages can do so without implementing the entire interface. It is highly recommended that users of this interface use the @Override annotation in their implementations to avoid being caught by changes in this class.

Fields Summary
Constructors Summary
Methods Summary
public voidcheckMailFailed(android.content.Context context, Account account, java.lang.String reason)

    
public voidcheckMailFinished(android.content.Context context, Account account)

    
public voidcheckMailStarted(android.content.Context context, Account account)

    
public voidcontrollerCommandCompleted(boolean moreCommandsToRun)
General notification messages subclasses can override to be notified that the controller has completed a command. This is useful for turning off progress indicators that may have been left over from previous commands.

param
moreCommandsToRun True if the controller will continue on to another command immediately.


    
public voidemptyTrashCompleted(Account account)

    
public voidlistFolders(Account account, com.android.email.mail.Folder[] folders)

    
public voidlistFoldersFailed(Account account, java.lang.String message)

    
public voidlistFoldersFinished(Account account)

    
public voidlistFoldersStarted(Account account)

    
public voidlistLocalMessages(Account account, java.lang.String folder, com.android.email.mail.Message[] messages)

    
public voidlistLocalMessagesFailed(Account account, java.lang.String folder, java.lang.String message)

    
public voidlistLocalMessagesFinished(Account account, java.lang.String folder)

    
public voidlistLocalMessagesStarted(Account account, java.lang.String folder)

    
public voidloadAttachmentFailed(Account account, com.android.email.mail.Message message, com.android.email.mail.Part part, java.lang.Object tag, java.lang.String reason)

    
public voidloadAttachmentFinished(Account account, com.android.email.mail.Message message, com.android.email.mail.Part part, java.lang.Object tag)

    
public voidloadAttachmentStarted(Account account, com.android.email.mail.Message message, com.android.email.mail.Part part, java.lang.Object tag, boolean requiresDownload)

    
public voidloadMessageForViewBodyAvailable(Account account, java.lang.String folder, java.lang.String uid, com.android.email.mail.Message message)

    
public voidloadMessageForViewFailed(Account account, java.lang.String folder, java.lang.String uid, java.lang.String message)

    
public voidloadMessageForViewFinished(Account account, java.lang.String folder, java.lang.String uid, com.android.email.mail.Message message)

    
public voidloadMessageForViewHeadersAvailable(Account account, java.lang.String folder, java.lang.String uid, com.android.email.mail.Message message)

    
public voidloadMessageForViewStarted(Account account, java.lang.String folder, java.lang.String uid)

    
public voidmessageUidChanged(Account account, java.lang.String folder, java.lang.String oldUid, java.lang.String newUid)


    
public voidsendPendingMessagesCompleted(Account account)

    
public voidsynchronizeMailboxFailed(Account account, java.lang.String folder, java.lang.Exception e)

    
public voidsynchronizeMailboxFinished(Account account, java.lang.String folder, int totalMessagesInMailbox, int numNewMessages)

    
public voidsynchronizeMailboxNewMessage(Account account, java.lang.String folder, com.android.email.mail.Message message)

    
public voidsynchronizeMailboxRemovedMessage(Account account, java.lang.String folder, com.android.email.mail.Message message)

    
public voidsynchronizeMailboxStarted(Account account, java.lang.String folder)