KConfig 5.109.0
|
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. More...
#include <KEMailSettings>
Public Types | |
enum | Extension { POP3 , SMTP , OTHER } |
The various extensions allowed. More... | |
enum | 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. More... | |
Public Member Functions | |
KEMailSettings () | |
Default constructor, just sets things up and sets the default profile as the current profile. | |
KEMailSettings (const KEMailSettings &)=delete | |
~KEMailSettings () | |
Default destructor, nothing to see here. | |
QString | currentProfileName () const |
Returns the name of the current profile. | |
QString | defaultProfileName () const |
Returns the name of the default profile. | |
QString | getSetting (KEMailSettings::Setting s) const |
Get one of the predefined "basic" settings. | |
KEMailSettings & | operator= (const KEMailSettings &)=delete |
QStringList | profiles () const |
List of profiles available. | |
void | setDefault (const QString &def) |
Sets a new default. | |
void | setProfile (const QString &s) |
Change the current profile. | |
void | setSetting (KEMailSettings::Setting s, const QString &v) |
Set one of the predefined "basic" settings. | |
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.
The default profile is automatically selected in the constructor.
The various extensions allowed.
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.
Enumerator | |
---|---|
OutServerType |
|
OutServerCommand |
|
OutServerTLS |
|
InServerType |
|
InServerMBXType |
|
InServerTLS |
|
KEMailSettings::KEMailSettings | ( | ) |
Default constructor, just sets things up and sets the default profile as the current profile.
KEMailSettings::~KEMailSettings | ( | ) |
Default destructor, nothing to see here.
QString KEMailSettings::currentProfileName | ( | ) | const |
Returns the name of the current profile.
QString KEMailSettings::defaultProfileName | ( | ) | const |
Returns the name of the default profile.
QString KEMailSettings::getSetting | ( | KEMailSettings::Setting | s | ) | const |
Get one of the predefined "basic" settings.
s | the setting to get |
QStringList KEMailSettings::profiles | ( | ) | const |
List of profiles available.
void KEMailSettings::setDefault | ( | const QString & | def | ) |
Sets a new default.
def | the new default |
void KEMailSettings::setProfile | ( | const QString & | s | ) |
Change the current profile.
s | the name of the new profile |
void KEMailSettings::setSetting | ( | KEMailSettings::Setting | s, |
const QString & | v | ||
) |
Set one of the predefined "basic" settings.
s | the setting to set |
v | the new value of the setting, or QString() to unset |