kemailsettings.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 #ifndef _KEMAILSETTINGS_H
00030 #define _KEMAILSETTINGS_H "$Id: kemailsettings.h,v 1.8 2003/09/21 14:27:52 ggarand Exp $"
00031 
00032 #include <qstring.h>
00033 #include <qstringlist.h>
00034 
00035 class KEMailSettingsPrivate;
00036 
00037 
00045 class KEMailSettings {
00046 public:
00056     enum Setting {
00057         ClientProgram,
00058         ClientTerminal,
00059         RealName,
00060         EmailAddress,
00061         ReplyToAddress,
00062         Organization,
00063         OutServer,
00064         OutServerLogin,
00065         OutServerPass,
00066         OutServerType,
00067         OutServerCommand,
00068         OutServerTLS,
00069         InServer,
00070         InServerLogin,
00071         InServerPass,
00072         InServerType,
00073         InServerMBXType,
00074         InServerTLS
00075     };
00076 
00080     enum Extension {
00081         POP3,
00082         SMTP,
00083         OTHER
00084     };
00085 
00089     KEMailSettings();
00090 
00094     ~KEMailSettings();
00095 
00100     QStringList profiles() const;
00101 
00106     QString currentProfileName() const;
00107 
00112     void setProfile (const QString &s);
00113 
00118     QString defaultProfileName() const;
00119 
00124     void setDefault(const QString &def);
00125 
00132     QString getSetting(KEMailSettings::Setting s);
00133 
00140     void setSetting(KEMailSettings::Setting s, const QString &v);
00141 
00142 private:
00143     KEMailSettingsPrivate *p;
00144 };
00145 
00146 #endif
 
This file is part of the documentation for kio Library Version 3.2.0.