2010-12-30 16:57:59 -05:00
|
|
|
package com.fsck.k9.mail.transport.imap;
|
|
|
|
|
2014-02-13 17:18:16 -05:00
|
|
|
import com.fsck.k9.mail.AuthType;
|
2014-02-13 19:43:24 -05:00
|
|
|
import com.fsck.k9.mail.ConnectionSecurity;
|
2014-12-18 03:33:09 -05:00
|
|
|
import com.fsck.k9.mail.store.imap.ImapStore;
|
2010-12-30 16:57:59 -05:00
|
|
|
|
|
|
|
/**
|
2014-12-17 11:16:18 -05:00
|
|
|
* Settings source for IMAP. Implemented in order to remove coupling between {@link ImapStore} and {@link com.fsck.k9.mail.store.ImapConnection}.
|
2010-12-30 16:57:59 -05:00
|
|
|
*/
|
2011-02-06 17:09:48 -05:00
|
|
|
public interface ImapSettings {
|
2010-12-30 16:57:59 -05:00
|
|
|
String getHost();
|
|
|
|
|
|
|
|
int getPort();
|
|
|
|
|
2014-02-13 19:43:24 -05:00
|
|
|
ConnectionSecurity getConnectionSecurity();
|
2010-12-30 16:57:59 -05:00
|
|
|
|
|
|
|
AuthType getAuthType();
|
|
|
|
|
|
|
|
String getUsername();
|
|
|
|
|
|
|
|
String getPassword();
|
|
|
|
|
2014-05-25 16:45:14 -04:00
|
|
|
String getClientCertificateAlias();
|
|
|
|
|
2010-12-30 16:57:59 -05:00
|
|
|
boolean useCompression(int type);
|
|
|
|
|
|
|
|
String getPathPrefix();
|
|
|
|
|
|
|
|
void setPathPrefix(String prefix);
|
|
|
|
|
2014-12-19 04:04:53 -05:00
|
|
|
String getPathDelimiter();
|
2010-12-30 16:57:59 -05:00
|
|
|
|
2014-12-19 04:04:53 -05:00
|
|
|
void setPathDelimiter(String delimiter);
|
2010-12-30 16:57:59 -05:00
|
|
|
|
|
|
|
String getCombinedPrefix();
|
|
|
|
|
|
|
|
void setCombinedPrefix(String prefix);
|
|
|
|
}
|