to top
AFEX APIs
public final class

EmailConfigExchange

extends EmailConfig
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.EmailConfig
     ↳ com.ardic.android.parcelables.EmailConfigExchange

Class Overview

Implementation of Parcelable Interface for Exchange e-mail account configuration

See also:

Summary

Constants
int LOOKBACK_ALL Download all e-mail messages from the server
int LOOKBACK_ONE_DAY Download e-mail messages since yesterday
int LOOKBACK_ONE_MONTH Download e-mail messages of past month
int LOOKBACK_ONE_WEEK Download e-mail messages of past week
int LOOKBACK_THREE_DAYS Download e-mail messages of past 3 days
int LOOKBACK_TWO_WEEKS Download e-mail messages of past 2 weeks
[Expand]
Inherited Constants
From class com.ardic.android.parcelables.EmailConfig
From interface android.os.Parcelable
Public Constructors
EmailConfigExchange(String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval, String domainName, String protocolVersion, int syncLookback, String clientCertAlias, boolean vibrateOnMail)
Constructor method
EmailConfigExchange(long id, String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval, String domainName, String protocolVersion, int syncLookback, String clientCertAlias, boolean vibrateOnMail)
Constructor method
Public Methods
String getClientCertAlias()
Returns User certificate alias.
String getDomainName()
Returns domain name.
String getProtocolVersion()
Returns EAS protocol version.
int getSyncLookback()
Returns time internal to limit e-mail message download.
boolean isVibrateOnMail()
Queries whether to vibrate on email notification.
void setClientCertAlias(String clientCertAlias)
Sets User certificate alias.
void setDomainName(String domainName)
Sets EAS domain name.
void setProtocolVersion(String protocolVersion)
Sets EAS protocol version.
void setSyncLookback(int syncLookback)
Sets time internal to limit e-mail message download.
void setVibrateOnMail(boolean vibrateOnMail)
Sets whether to vibrate on email notification.
[Expand]
Inherited Methods
From class com.ardic.android.parcelables.EmailConfig
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int LOOKBACK_ALL

Added in API level 2

Download all e-mail messages from the server

Constant Value: 6 (0x00000006)

public static final int LOOKBACK_ONE_DAY

Added in API level 2

Download e-mail messages since yesterday

Constant Value: 1 (0x00000001)

public static final int LOOKBACK_ONE_MONTH

Added in API level 2

Download e-mail messages of past month

Constant Value: 5 (0x00000005)

public static final int LOOKBACK_ONE_WEEK

Added in API level 2

Download e-mail messages of past week

Constant Value: 3 (0x00000003)

public static final int LOOKBACK_THREE_DAYS

Added in API level 2

Download e-mail messages of past 3 days

Constant Value: 2 (0x00000002)

public static final int LOOKBACK_TWO_WEEKS

Added in API level 2

Download e-mail messages of past 2 weeks

Constant Value: 4 (0x00000004)

Public Constructors

public EmailConfigExchange (String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval, String domainName, String protocolVersion, int syncLookback, String clientCertAlias, boolean vibrateOnMail)

Added in API level 2

Constructor method

Parameters
displayName String: Display name of the e-mail account on the device.
username String: Account user name.
emailAddress String: Email Address of the e-mail account.
pwd String: Password of the e-mail account.
incomingServerAddress String: incoming e-mail server address.
incomingPort int: incoming e-mail server port.
incomingAuth int: incoming e-mail server authentication type. One of AUTH_NONE, AUTH_SSL_TLS, AUTH_SSL_TLS_ALL, AUTH_STARTTLS, AUTH_STARTTLS_ALL
senderName String: Sender name shown in outgoing messages.
signature String: Sender signature shown in outgoing messages.
syncInterval int: Time to query server for newly arrived e-mail messages.
domainName String: incoming e-mail server domain name. If domain name is given in username then this parameter is ignored.
protocolVersion String: EAS(Exchange Active Sync) Protocol Version
syncLookback int: Number of past days to download e-mail messages. One of LOOKBACK_ONE_DAY, LOOKBACK_ONE_WEEK, LOOKBACK_TWO_WEEKS , LOOKBACK_ONE_MONTH, LOOKBACK_ALL
clientCertAlias String: User certificate alias for authentication.
vibrateOnMail boolean: Whether vibrate on e-mail arrival or not.

public EmailConfigExchange (long id, String displayName, String username, String emailAddress, String pwd, String incomingServerAddress, int incomingPort, int incomingAuth, String senderName, String signature, int syncInterval, String domainName, String protocolVersion, int syncLookback, String clientCertAlias, boolean vibrateOnMail)

Added in API level 2

Constructor method

Parameters
id long: Account ID.
displayName String: Display name of the e-mail account on the device.
username String: Account user name.
emailAddress String: Email Address of the e-mail account.
pwd String: Password of the e-mail account
incomingServerAddress String: incoming e-mail server address.
incomingPort int: incoming e-mail server port.
incomingAuth int: incoming e-mail server authentication type. One of AUTH_NONE, AUTH_SSL_TLS, AUTH_SSL_TLS_ALL, AUTH_STARTTLS, AUTH_STARTTLS_ALL
senderName String: Sender name shown in outgoing messages.
signature String: Sender signature shown in outgoing messages.
syncInterval int: Time to query server for newly arrived e-mail messages.
domainName String: incoming e-mail server domain name. If domain name is given in username then this parameter is ignored.
protocolVersion String: EAS(Exchange Active Sync) Protocol Version
syncLookback int: Number of past days to download e-mail messages. One of LOOKBACK_ONE_DAY, LOOKBACK_ONE_WEEK, LOOKBACK_TWO_WEEKS , LOOKBACK_ONE_MONTH, LOOKBACK_ALL
clientCertAlias String: User certificate alias for authentication.
vibrateOnMail boolean: Whether vibrate on e-mail arrival or not.

Public Methods

public String getClientCertAlias ()

Added in API level 2

Returns User certificate alias.

Returns
String User certificate alias.

public String getDomainName ()

Added in API level 2

Returns domain name.

Returns
String Domain name.

public String getProtocolVersion ()

Added in API level 2

Returns EAS protocol version.

Returns
String EAS protocol version

public int getSyncLookback ()

Added in API level 2

Returns time internal to limit e-mail message download. One of LOOKBACK_ONE_DAY, LOOKBACK_ONE_WEEK, LOOKBACK_TWO_WEEKS, LOOKBACK_ONE_MONTH, LOOKBACK_ALL

Returns
int Time interval to download e-mail messages.

public boolean isVibrateOnMail ()

Added in API level 2

Queries whether to vibrate on email notification. This attribute maybe changed by Exchange Server.

Returns
boolean Whether to vibrate on email notification.

public void setClientCertAlias (String clientCertAlias)

Added in API level 2

Sets User certificate alias.

Parameters
clientCertAlias String: User certificate alias.

public void setDomainName (String domainName)

Added in API level 2

Sets EAS domain name. If domain name is given in username then this method has no effect.

Parameters
domainName String: EAS Domain name.

public void setProtocolVersion (String protocolVersion)

Added in API level 2

Sets EAS protocol version. This attribute maybe changed by Exchange Server.

Parameters
protocolVersion String: EAS Protocol version

public void setSyncLookback (int syncLookback)

Added in API level 2

Sets time internal to limit e-mail message download.

Parameters
syncLookback int: One of LOOKBACK_ONE_DAY, LOOKBACK_ONE_WEEK, LOOKBACK_TWO_WEEKS, LOOKBACK_ONE_MONTH, LOOKBACK_ALL

public void setVibrateOnMail (boolean vibrateOnMail)

Added in API level 2

Sets whether to vibrate on email notification.

Parameters
vibrateOnMail boolean: Whether to vibrate on email notification.