# class KEMailSettings

###

Module | kio
Namespace |
Class | KEMailSettings
Inherits |

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

### enums

- Extension { POP3, SMTP, OTHER }
- Setting { ClientProgram, ClientTerminal, RealName, EmailAddress, ReplyToAddress, Organization, OutServer, OutServerLogin, OutServerPass, OutServerType, OutServerCommand, OutServerTLS, InServer, InServerLogin, InServerPass, InServerType, InServerMBXType, InServerTLS }

enum details

### methods

- KEMailSettings ( )

  returns ctor

  Default constructor, just sets things up.

- currentProfileName ( )

  returns QString

  Returns the name of the current profile. Returns what profile we're currently using

- defaultProfileName ( )

  returns QString

  Returns the name of the default profile. Returns the name of the one that's currently default QString() if none

- getSetting (s)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  s | KEMailSettings.Setting |

  Get one of the predefined "basic" settings.

  s - the setting to get Returns the value of the setting, or QString() if not set

- profiles ( )

  returns QStringList

  List of profiles available. Returns the list of profiles

- setDefault (def)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  def | QString |

  Sets a new default.

  def - the new default

- setProfile (s)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

  Change the current profile.

  s - the name of the new profile

- setSetting (s, v)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  s | KEMailSettings.Setting |
  v | QString |

  Set one of the predefined "basic" settings.

  s - the setting to set

  v - the new value of the setting, or QString() to unset

### enums - detail

- Extension { POP3, SMTP, OTHER }

  The various extensions allowed.

  | POP3 | - | - |
  | SMTP | - | - |
  | OTHER | - | - |

- Setting { ClientProgram, ClientTerminal, RealName, EmailAddress, ReplyToAddress, Organization, OutServer, OutServerLogin, OutServerPass, OutServerType, OutServerCommand, OutServerTLS, InServer, InServerLogin, InServerPass, InServerType, InServerMBXType, InServerTLS }

  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()

  See also setSetting()

  See also getExtendedSetting()

  See also setExtendedSetting()

  | ClientProgram | - | - |
  | ClientTerminal | - | - |
  | RealName | - | - |
  | EmailAddress | - | - |
  | ReplyToAddress | - | - |
  | Organization | - | - |
  | OutServer | - | - |
  | OutServerLogin | - | - |
  | OutServerPass | - | - |
  | OutServerType | - | - |
  | OutServerCommand | - | - |
  | OutServerTLS | - | - |
  | InServer | - | - |
  | InServerLogin | - | - |
  | InServerPass | - | - |
  | InServerType | - | - |
  | InServerMBXType | - | - |
  | InServerTLS | - | - |