kio Library API Documentation

kemailsettings.h

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  *  $Id: kemailsettings.h,v 1.6 2002/06/17 17:19:59 garbanzo Exp $
00027  */
00028 
00029 #ifndef _KEMAILSETTINGS_H
00030 #define _KEMAILSETTINGS_H "$Id: kemailsettings.h,v 1.6 2002/06/17 17:19:59 garbanzo Exp $"
00031 
00032 #include <qstring.h>
00033 #include <qstringlist.h>
00034 
00035 class KEMailSettingsPrivate;
00036 
00037 
00045 class KEMailSettings {
00046 public:
00054     enum Setting {
00055         ClientProgram,
00056         ClientTerminal,
00057         RealName,
00058         EmailAddress,
00059         ReplyToAddress,
00060         Organization,
00061         OutServer,
00062         OutServerLogin,
00063         OutServerPass,
00064         OutServerType,
00065         OutServerCommand,
00066         OutServerTLS,
00067         InServer,
00068         InServerLogin,
00069         InServerPass,
00070         InServerType,
00071         InServerMBXType,
00072         InServerTLS
00073     };
00074 
00078     enum Extension {
00079         POP3,
00080         SMTP,
00081         OTHER
00082     };
00083 
00087     KEMailSettings();
00088 
00092     ~KEMailSettings();
00093 
00097     QStringList profiles() const;
00098 
00102     QString currentProfileName() const;
00103 
00107     void setProfile (const QString &);
00108 
00112     QString defaultProfileName() const;
00113 
00117     void setDefault(const QString &);
00118 
00122     QString getSetting(KEMailSettings::Setting s);
00123     void setSetting(KEMailSettings::Setting s, const QString &v);
00124 
00130     QString getExtendedSetting(KEMailSettings::Extension e, const QString &s );
00131 
00137     void setExtendedSetting(KEMailSettings::Extension e, const QString &s, const QString &v );
00138 
00139 private:
00140     KEMailSettingsPrivate *p;
00141 };
00142 
00143 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:29 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001