to top
AFEX APIs
public abstract class

EmailConfig

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.EmailConfig
Known Direct Subclasses

Class Overview

Implementation of Parcelable Interface for e-mail account configuration

See also:

Summary

Nested Classes
enum EmailConfig.AccountType This enum is for e-mail account types. 
Constants
int AUTH_NONE Authentication none
int AUTH_PWD Authentication with password
int AUTH_SSL_TLS Security Type type SSL/TLS
int AUTH_SSL_TLS_ALL Security Type type SSL/TLS(Accept all certificates)
int AUTH_STARTTLS Security Type type STARTTLS
int AUTH_STARTTLS_ALL Security Type type STARTTLS(Accept all certificates)
int INTERVAL_AUTO_PUSH E-mail Sync frequency Auto Push
int INTERVAL_FIFTEEN_MINS E-mail Sync frequency Every 15 mins
int INTERVAL_FIVE_MINS E-mail Sync frequency Every 5 mins
int INTERVAL_NEVER E-mail Sync frequency Never
int INTERVAL_ONE_HOUR E-mail Sync frequency Every 60 mins
int INTERVAL_TEN_MINS E-mail Sync frequency Every 10 mins
int INTERVAL_THIRTY_MINS E-mail Sync frequency Every 30 mins
[Expand]
Inherited Constants
From interface android.os.Parcelable
Protected Constructors
EmailConfig(EmailConfig.AccountType type, String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval)
EmailConfig(EmailConfig.AccountType type, long id, String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval)
Public Methods
String getDisplayName()
Returns display name of the e-mail account.
String getEmailAddress()
Returns e-mail address of the e-mail account
long getId()
Returns e-mail account configuration Id.
int getIncomingAuth()
Returns incoming e-mail server authentication type.
int getIncomingPort()
Returns Port number of the incoming e-mail server.
String getIncomingServerAddress()
Returns address of the incoming e-mail server.
String getSenderName()
Returns Sender Name.
String getSignature()
Returns User signature below e-mail messages.
int getSyncInterval()
Returns e-mail message sync interval.
EmailConfig.AccountType getType()
Returns e-mail account type.
String getUsername()
Returns account user name.
void setDisplayName(String displayName)
Sets display name of the e-mail account.
void setEmailAddress(String emailAddress)
Sets e-mail address of the e-mail account.
void setIncomingAuth(int incomingAuth)
Sets incoming e-mail server authentication type.
void setIncomingPort(int incomingPort)
Sets Port number of the incoming mail server.
void setIncomingServerAddress(String incomingServerAddress)
Sets address of the incoming e-mail server.
void setPwd(String pwd)
Sets e-mail password of the account.
void setSenderName(String senderName)
Sets Sender name.
void setSignature(String signature)
Sets User Signature below e-mail messages.
void setSyncInterval(int syncInterval)
sets e-mail message sync interval.
void setUsername(String username)
Sets account user name.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int AUTH_NONE

Added in API level 2

Authentication none

Constant Value: 0 (0x00000000)

public static final int AUTH_PWD

Added in API level 2

Authentication with password

Constant Value: 4 (0x00000004)

public static final int AUTH_SSL_TLS

Added in API level 2

Security Type type SSL/TLS

Constant Value: 1 (0x00000001)

public static final int AUTH_SSL_TLS_ALL

Added in API level 2

Security Type type SSL/TLS(Accept all certificates)

Constant Value: 9 (0x00000009)

public static final int AUTH_STARTTLS

Added in API level 2

Security Type type STARTTLS

Constant Value: 2 (0x00000002)

public static final int AUTH_STARTTLS_ALL

Added in API level 2

Security Type type STARTTLS(Accept all certificates)

Constant Value: 10 (0x0000000a)

public static final int INTERVAL_AUTO_PUSH

Added in API level 2

E-mail Sync frequency Auto Push

Constant Value: -2 (0xfffffffe)

public static final int INTERVAL_FIFTEEN_MINS

Added in API level 2

E-mail Sync frequency Every 15 mins

Constant Value: 15 (0x0000000f)

public static final int INTERVAL_FIVE_MINS

Added in API level 2

E-mail Sync frequency Every 5 mins

Constant Value: 5 (0x00000005)

public static final int INTERVAL_NEVER

Added in API level 2

E-mail Sync frequency Never

Constant Value: -1 (0xffffffff)

public static final int INTERVAL_ONE_HOUR

Added in API level 2

E-mail Sync frequency Every 60 mins

Constant Value: 60 (0x0000003c)

public static final int INTERVAL_TEN_MINS

Added in API level 2

E-mail Sync frequency Every 10 mins

Constant Value: 10 (0x0000000a)

public static final int INTERVAL_THIRTY_MINS

Added in API level 2

E-mail Sync frequency Every 30 mins

Constant Value: 30 (0x0000001e)

Protected Constructors

protected EmailConfig (EmailConfig.AccountType type, String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval)

Added in API level 2

Parameters
type EmailConfig.AccountType
displayName String
username String
emailAddress String
pwd String
incomingServerAddress String
incomingPort int
incomingAuth int
senderName String
signature String
syncInterval int

protected EmailConfig (EmailConfig.AccountType type, long id, String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval)

Added in API level 2

Parameters
type EmailConfig.AccountType
id long
displayName String
username String
emailAddress String
pwd String
incomingServerAddress String
incomingPort int
incomingAuth int
senderName String
signature String
syncInterval int

Public Methods

public String getDisplayName ()

Added in API level 2

Returns display name of the e-mail account.

Returns
String Display name of the account.

public String getEmailAddress ()

Added in API level 2

Returns e-mail address of the e-mail account

Returns
String Address of the e-mail account.

public long getId ()

Added in API level 2

Returns e-mail account configuration Id.

Returns
long Account ID.

public int getIncomingAuth ()

Added in API level 2

Returns incoming e-mail server authentication type.

Returns
int incoming e-mail server authentication type.

public int getIncomingPort ()

Added in API level 2

Returns Port number of the incoming e-mail server.

Returns
int Port number

public String getIncomingServerAddress ()

Added in API level 2

Returns address of the incoming e-mail server.

Returns
String Address of the incoming e-mail server.

public String getSenderName ()

Added in API level 2

Returns Sender Name.

Returns
String Sender Name.

public String getSignature ()

Added in API level 2

Returns User signature below e-mail messages.

Returns
String User signature below e-mail messages.

public int getSyncInterval ()

Added in API level 2

Returns e-mail message sync interval.

Returns
int e-mail message sync interval. One of INTERVAL_AUTO_PUSH, INTERVAL_NEVER, INTERVAL_FIVE_MINS, INTERVAL_TEN_MINS, INTERVAL_FIFTEEN_MINS, INTERVAL_THIRTY_MINS, INTERVAL_ONE_HOUR

public EmailConfig.AccountType getType ()

Added in API level 2

Returns e-mail account type.

Returns
EmailConfig.AccountType e-mail account type.

public String getUsername ()

Added in API level 2

Returns account user name.

Returns
String Account user name.

public void setDisplayName (String displayName)

Added in API level 2

Sets display name of the e-mail account.

Parameters
displayName String: Display name of the account.

public void setEmailAddress (String emailAddress)

Added in API level 2

Sets e-mail address of the e-mail account.

Parameters
emailAddress String: Address of the e-mail account.

public void setIncomingAuth (int incomingAuth)

Added in API level 2

Sets incoming e-mail server authentication type.

One of AUTH_NONE, AUTH_SSL_TLS, AUTH_SSL_TLS_ALL, AUTH_STARTTLS, AUTH_STARTTLS_ALL

Parameters
incomingAuth int: Incoming e-mail server authentication type.

public void setIncomingPort (int incomingPort)

Added in API level 2

Sets Port number of the incoming mail server.

Parameters
incomingPort int: Port number

public void setIncomingServerAddress (String incomingServerAddress)

Added in API level 2

Sets address of the incoming e-mail server.

Parameters
incomingServerAddress String: Address of the incoming e-mail server.

public void setPwd (String pwd)

Added in API level 2

Sets e-mail password of the account.

Parameters
pwd String: e-mail password of the account.

public void setSenderName (String senderName)

Added in API level 2

Sets Sender name.

Parameters
senderName String: Sender name.

public void setSignature (String signature)

Added in API level 2

Sets User Signature below e-mail messages.

Parameters
signature String: User Signature below e-mail messages.

public void setSyncInterval (int syncInterval)

Added in API level 2

sets e-mail message sync interval.

Parameters
syncInterval int: e-mail message sync interval. One of INTERVAL_AUTO_PUSH, INTERVAL_NEVER, INTERVAL_FIVE_MINS, INTERVAL_TEN_MINS, INTERVAL_FIFTEEN_MINS, INTERVAL_THIRTY_MINS, INTERVAL_ONE_HOUR

public void setUsername (String username)

Added in API level 2

Sets account user name.

Parameters
username String: Account user name.