Extract ImapSearcher from ImapStore

This commit is contained in:
cketti 2016-02-01 21:33:30 +01:00
parent caca473465
commit a7f53f0c3b
3 changed files with 12 additions and 5 deletions

View file

@ -34,7 +34,6 @@ import com.fsck.k9.mail.internet.MimeHeader;
import com.fsck.k9.mail.internet.MimeMessageHelper;
import com.fsck.k9.mail.internet.MimeMultipart;
import com.fsck.k9.mail.internet.MimeUtility;
import com.fsck.k9.mail.store.imap.ImapStore.ImapSearcher;
import static com.fsck.k9.mail.K9MailLib.LOG_TAG;

View file

@ -0,0 +1,12 @@
package com.fsck.k9.mail.store.imap;
import java.io.IOException;
import java.util.List;
import com.fsck.k9.mail.MessagingException;
interface ImapSearcher {
List<ImapResponse> search() throws IOException, MessagingException;
}

View file

@ -658,10 +658,6 @@ public class ImapStore extends RemoteStore {
return new ImapPusher(this, receiver);
}
protected interface ImapSearcher {
List<ImapResponse> search() throws IOException, MessagingException;
}
private class StoreImapSettings implements ImapSettings {
@Override
public String getHost() {