• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

kemailsettings.h

Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 2000 Alex Zepeda <zipzippy@sonic.net>
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  *
00014  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00015  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00016  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00017  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00018  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00019  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00020  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00021  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00022  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00023  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00024  * SUCH DAMAGE.
00025  *
00026  */
00027 
00028 #ifndef _KEMAILSETTINGS_H
00029 #define _KEMAILSETTINGS_H
00030 
00031 #include <qstring.h>
00032 #include <qstringlist.h>
00033 
00034 #include <kdelibs_export.h>
00035 
00036 class KEMailSettingsPrivate;
00037 
00038 
00046 class KIO_EXPORT KEMailSettings {
00047 public:
00057     enum Setting {
00058         ClientProgram,
00059         ClientTerminal,
00060         RealName,
00061         EmailAddress,
00062         ReplyToAddress,
00063         Organization,
00064         OutServer,
00065         OutServerLogin,
00066         OutServerPass,
00067         OutServerType,
00068         OutServerCommand,
00069         OutServerTLS,
00070         InServer,
00071         InServerLogin,
00072         InServerPass,
00073         InServerType,
00074         InServerMBXType,
00075         InServerTLS
00076     };
00077 
00081     enum Extension {
00082         POP3,
00083         SMTP,
00084         OTHER
00085     };
00086 
00090     KEMailSettings();
00091 
00095     ~KEMailSettings();
00096 
00101     QStringList profiles() const;
00102 
00107     QString currentProfileName() const;
00108 
00113     void setProfile (const QString &s);
00114 
00119     QString defaultProfileName() const;
00120 
00125     void setDefault(const QString &def);
00126 
00133     QString getSetting(KEMailSettings::Setting s);
00134 
00141     void setSetting(KEMailSettings::Setting s, const QString &v);
00142 
00143 private:
00144     KEMailSettingsPrivate *p;
00145 };
00146 
00147 #endif

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal