Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 2b0a8469 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #6237 from thundernest/convert_to_kotlin

Convert some IMAP-related classes to Kotlin
parents 7a35120a 5bd3b1a7
Loading
Loading
Loading
Loading
+0 −36
Original line number Diff line number Diff line
package com.fsck.k9.mail.store.imap;

import com.fsck.k9.mail.AuthType;
import com.fsck.k9.mail.ConnectionSecurity;


/**
 * Settings source for IMAP. Implemented in order to remove coupling between {@link ImapStore} and {@link ImapConnection}.
 */
interface ImapSettings {
    String getHost();

    int getPort();

    ConnectionSecurity getConnectionSecurity();

    AuthType getAuthType();

    String getUsername();

    String getPassword();

    String getClientCertificateAlias();

    boolean useCompression();

    String getPathPrefix();

    void setPathPrefix(String prefix);

    String getPathDelimiter();

    void setPathDelimiter(String delimiter);

    void setCombinedPrefix(String prefix);
}
+22 −0
Original line number Diff line number Diff line
package com.fsck.k9.mail.store.imap

import com.fsck.k9.mail.AuthType
import com.fsck.k9.mail.ConnectionSecurity

/**
 * Settings source for IMAP. Implemented in order to remove coupling between [ImapStore] and [ImapConnection].
 */
internal interface ImapSettings {
    val host: String
    val port: Int
    val connectionSecurity: ConnectionSecurity
    val authType: AuthType
    val username: String
    val password: String?
    val clientCertificateAlias: String?
    fun useCompression(): Boolean

    var pathPrefix: String?
    var pathDelimiter: String?
    fun setCombinedPrefix(prefix: String?)
}
Loading