org.kde.koala

Class KEMailSettings

public class KEMailSettings extends Object implements QtSupport

This is just a small class to facilitate accessing e-mail settings in a sane way, and allowing any program to manage multiple e-mail profiles effortlessly

Author: Alex Zepeda zipzippy@sonic.net

UNKNOWN: This is just a small class to facilitate accessing e-mail settings in a sane way, and allowing any program to manage multiple e-mail profiles effortlessly

Field Summary
static intClientProgram
The list of settings that I thought of when I wrote this class.
static intClientTerminal
static intEmailAddress
static intInServer
static intInServerLogin
static intInServerMBXType
static intInServerPass
static intInServerTLS
static intInServerType
static intOrganization
static intOTHER
static intOutServer
static intOutServerCommand
static intOutServerLogin
static intOutServerPass
static intOutServerTLS
static intOutServerType
static intPOP3
The various extensions allowed.
static intRealName
static intReplyToAddress
static intSMTP
Constructor Summary
protected KEMailSettings(Class dummy)
KEMailSettings()
Default constructor, just sets things up.
Method Summary
StringcurrentProfileName()
Returns the name of the current profile.
StringdefaultProfileName()
Returns the name of the default profile.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
StringgetSetting(int s)
Get one of the predefined "basic" settings.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
ArrayListprofiles()
List of profiles available.
voidsetDefault(String def)
Sets a new default.
voidsetProfile(String s)
Change the current profile.
voidsetSetting(int s, String v)
Set one of the predefined "basic" settings.

Field Detail

ClientProgram

public static final int ClientProgram
The list of settings that I thought of when I wrote this class. Any extra settings thought of later can be accessed easily with getExtendedSetting and setExtendedSetting.

See Also: KEMailSettings KEMailSettings KEMailSettings KEMailSettings

UNKNOWN: The list of settings that I thought of when I wrote this class.

ClientTerminal

public static final int ClientTerminal

EmailAddress

public static final int EmailAddress

InServer

public static final int InServer

InServerLogin

public static final int InServerLogin

InServerMBXType

public static final int InServerMBXType

InServerPass

public static final int InServerPass

InServerTLS

public static final int InServerTLS

InServerType

public static final int InServerType

Organization

public static final int Organization

OTHER

public static final int OTHER

OutServer

public static final int OutServer

OutServerCommand

public static final int OutServerCommand

OutServerLogin

public static final int OutServerLogin

OutServerPass

public static final int OutServerPass

OutServerTLS

public static final int OutServerTLS

OutServerType

public static final int OutServerType

POP3

public static final int POP3
The various extensions allowed.

UNKNOWN: The various extensions allowed.

RealName

public static final int RealName

ReplyToAddress

public static final int ReplyToAddress

SMTP

public static final int SMTP

Constructor Detail

KEMailSettings

protected KEMailSettings(Class dummy)

KEMailSettings

public KEMailSettings()
Default constructor, just sets things up.

UNKNOWN: Default constructor, just sets things up.

Method Detail

currentProfileName

public String currentProfileName()
Returns the name of the current profile.

Returns: what profile we're currently using

UNKNOWN: Returns the name of the current profile.

defaultProfileName

public String defaultProfileName()
Returns the name of the default profile.

Returns: the name of the one that's currently default null if none

UNKNOWN: Returns the name of the default profile.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

getSetting

public String getSetting(int s)
Get one of the predefined "basic" settings.

Parameters: s the setting to get

Returns: the value of the setting, or null if not set

UNKNOWN: Get one of the predefined "basic" settings.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

profiles

public ArrayList profiles()
List of profiles available.

Returns: the list of profiles

UNKNOWN: List of profiles available.

setDefault

public void setDefault(String def)
Sets a new default.

Parameters: def the new default

UNKNOWN: Sets a new default.

setProfile

public void setProfile(String s)
Change the current profile.

Parameters: s the name of the new profile

UNKNOWN: Change the current profile.

setSetting

public void setSetting(int s, String v)
Set one of the predefined "basic" settings.

Parameters: s the setting to set v the new value of the setting, or null to unset

UNKNOWN: Set one of the predefined "basic" settings.