#include <tdeemailsettings.h>
Public Types | |
enum | Setting { ClientProgram , ClientTerminal , RealName , EmailAddress , ReplyToAddress , Organization , OutServer , OutServerLogin , OutServerPass , OutServerType , OutServerCommand , OutServerTLS , InServer , InServerLogin , InServerPass , InServerType , InServerMBXType , InServerTLS } |
enum | Extension { POP3 , SMTP , OTHER } |
Public Member Functions | |
KEMailSettings () | |
~KEMailSettings () | |
TQStringList | profiles () const |
TQString | currentProfileName () const |
void | setProfile (const TQString &s) |
TQString | defaultProfileName () const |
void | setDefault (const TQString &def) |
TQString | getSetting (KEMailSettings::Setting s) |
void | setSetting (KEMailSettings::Setting s, const TQString &v) |
Detailed Description
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.
Definition at line 46 of file tdeemailsettings.h.
Member Enumeration Documentation
◆ Extension
The various extensions allowed.
Definition at line 81 of file tdeemailsettings.h.
◆ Setting
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()
- setSetting()
- getExtendedSetting()
- setExtendedSetting()
Definition at line 57 of file tdeemailsettings.h.
Constructor & Destructor Documentation
◆ KEMailSettings()
KEMailSettings::KEMailSettings | ( | ) |
Default constructor, just sets things up.
Definition at line 240 of file tdeemailsettings.cpp.
◆ ~KEMailSettings()
KEMailSettings::~KEMailSettings | ( | ) |
Default destructor, nothing to see here.
Definition at line 269 of file tdeemailsettings.cpp.
Member Function Documentation
◆ currentProfileName()
TQString KEMailSettings::currentProfileName | ( | ) | const |
Returns the name of the current profile.
- Returns
- what profile we're currently using
Definition at line 230 of file tdeemailsettings.cpp.
◆ defaultProfileName()
TQString KEMailSettings::defaultProfileName | ( | ) | const |
Returns the name of the default profile.
- Returns
- the name of the one that's currently default TQString::null if none
Definition at line 44 of file tdeemailsettings.cpp.
◆ getSetting()
TQString KEMailSettings::getSetting | ( | KEMailSettings::Setting | s | ) |
Get one of the predefined "basic" settings.
- Parameters
-
s the setting to get
- Returns
- the value of the setting, or TQString::null if not set
Definition at line 49 of file tdeemailsettings.cpp.
◆ profiles()
TQStringList KEMailSettings::profiles | ( | ) | const |
List of profiles available.
- Returns
- the list of profiles
Definition at line 235 of file tdeemailsettings.cpp.
◆ setDefault()
void KEMailSettings::setDefault | ( | const TQString & | def | ) |
Sets a new default.
- Parameters
-
def the new default
Definition at line 208 of file tdeemailsettings.cpp.
◆ setProfile()
void KEMailSettings::setProfile | ( | const TQString & | s | ) |
Change the current profile.
- Parameters
-
s the name of the new profile
Definition at line 217 of file tdeemailsettings.cpp.
◆ setSetting()
void KEMailSettings::setSetting | ( | KEMailSettings::Setting | s, |
const TQString & | v | ||
) |
Set one of the predefined "basic" settings.
- Parameters
-
s the setting to set v the new value of the setting, or TQString::null to unset
Definition at line 128 of file tdeemailsettings.cpp.
The documentation for this class was generated from the following files: