2009-12-14 21:50:53 -05:00
|
|
|
package com.fsck.k9.mail;
|
2009-10-21 20:41:06 -04:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2010-05-16 20:30:32 -04:00
|
|
|
import com.fsck.k9.helper.power.TracingPowerManager.TracingWakeLock;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public interface PushReceiver {
|
2010-05-16 20:30:32 -04:00
|
|
|
public Context getContext();
|
2010-04-26 23:02:17 -04:00
|
|
|
public void syncFolder(Folder folder);
|
2009-11-26 00:10:12 -05:00
|
|
|
public void messagesArrived(Folder folder, List<Message> mess);
|
|
|
|
public void messagesFlagsChanged(Folder folder, List<Message> mess);
|
2010-05-15 15:35:07 -04:00
|
|
|
public void messagesRemoved(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);
|
2010-05-16 20:30:32 -04:00
|
|
|
public void sleep(TracingWakeLock wakeLock, long millis);
|
2009-10-21 20:41:06 -04:00
|
|
|
}
|