2009-10-21 20:41:06 -04:00
|
|
|
package com.android.email.mail;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public interface PushReceiver
|
|
|
|
{
|
2009-11-22 12:01:04 -05:00
|
|
|
public void acquireWakeLock();
|
|
|
|
public void releaseWakeLock();
|
2009-11-26 00:10:12 -05:00
|
|
|
public void messagesArrived(Folder folder, List<Message> mess);
|
|
|
|
public void messagesFlagsChanged(Folder folder, List<Message> mess);
|
2009-10-21 20:41:06 -04:00
|
|
|
public String getPushState(String folderName);
|
|
|
|
public void pushError(String errorMessage, Exception e);
|
|
|
|
public void setPushActive(String folderName, boolean enabled);
|
2009-11-22 12:01:04 -05:00
|
|
|
public void sleep(long millis);
|
2009-10-21 20:41:06 -04:00
|
|
|
}
|