org.kde.koala
Class KEMailSettings

java.lang.Object
  extended by org.kde.koala.KEMailSettings
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KEMailSettings
extends java.lang.Object
implements org.kde.qt.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

Field Summary
static int ClientProgram
          The list of settings that I thought of when I wrote this class.
static int ClientTerminal
           
static int EmailAddress
           
static int InServer
           
static int InServerLogin
           
static int InServerMBXType
           
static int InServerPass
           
static int InServerTLS
           
static int InServerType
           
static int Organization
           
static int OTHER
           
static int OutServer
           
static int OutServerCommand
           
static int OutServerLogin
           
static int OutServerPass
           
static int OutServerTLS
           
static int OutServerType
           
static int POP3
          The various extensions allowed.
static int RealName
           
static int ReplyToAddress
           
static int SMTP
           
 
Constructor Summary
  KEMailSettings()
          Default constructor, just sets things up.
protected KEMailSettings(java.lang.Class dummy)
           
 
Method Summary
 java.lang.String currentProfileName()
          Returns the name of the current profile.
 java.lang.String defaultProfileName()
          Returns the name of the default profile.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 java.lang.String getSetting(int s)
          Get one of the predefined "basic" settings.
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 java.util.ArrayList profiles()
          List of profiles available.
 void setDefault(java.lang.String def)
          Sets a new default.
 void setProfile(java.lang.String s)
          Change the current profile.
 void setSetting(int s, java.lang.String v)
          Set one of the predefined "basic" settings.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getSetting(int), setSetting(int, java.lang.String), #getExtendedSetting, #setExtendedSetting, Constant Field Values

ClientTerminal

public static final int ClientTerminal
See Also:
Constant Field Values

RealName

public static final int RealName
See Also:
Constant Field Values

EmailAddress

public static final int EmailAddress
See Also:
Constant Field Values

ReplyToAddress

public static final int ReplyToAddress
See Also:
Constant Field Values

Organization

public static final int Organization
See Also:
Constant Field Values

OutServer

public static final int OutServer
See Also:
Constant Field Values

OutServerLogin

public static final int OutServerLogin
See Also:
Constant Field Values

OutServerPass

public static final int OutServerPass
See Also:
Constant Field Values

OutServerType

public static final int OutServerType
See Also:
Constant Field Values

OutServerCommand

public static final int OutServerCommand
See Also:
Constant Field Values

OutServerTLS

public static final int OutServerTLS
See Also:
Constant Field Values

InServer

public static final int InServer
See Also:
Constant Field Values

InServerLogin

public static final int InServerLogin
See Also:
Constant Field Values

InServerPass

public static final int InServerPass
See Also:
Constant Field Values

InServerType

public static final int InServerType
See Also:
Constant Field Values

InServerMBXType

public static final int InServerMBXType
See Also:
Constant Field Values

InServerTLS

public static final int InServerTLS
See Also:
Constant Field Values

POP3

public static final int POP3
The various extensions allowed.

See Also:
Constant Field Values

SMTP

public static final int SMTP
See Also:
Constant Field Values

OTHER

public static final int OTHER
See Also:
Constant Field Values
Constructor Detail

KEMailSettings

protected KEMailSettings(java.lang.Class dummy)

KEMailSettings

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

Method Detail

profiles

public java.util.ArrayList profiles()
List of profiles available.

Returns:
the list of profiles

currentProfileName

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

Returns:
what profile we're currently using

setProfile

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

Parameters:
s - the name of the new profile

defaultProfileName

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

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

setDefault

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

Parameters:
def - the new default

getSetting

public java.lang.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

setSetting

public void setSetting(int s,
                       java.lang.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

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

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


isDisposed

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