2014-12-19 21:03:06 -05:00
|
|
|
package com.fsck.k9.mail.store.imap;
|
2010-12-30 16:57:59 -05:00
|
|
|
|
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;
|
2010-12-30 16:57:59 -05:00
|
|
|
|
|
|
|
/**
|
2014-12-19 21:10:31 -05:00
|
|
|
* Settings source for IMAP. Implemented in order to remove coupling between {@link ImapStore} and {@link ImapConnection}.
|
2010-12-30 16:57:59 -05:00
|
|
|
*/
|
2014-12-19 21:03:06 -05:00
|
|
|
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);
|
|
|
|
}
|