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.8 2003/09/21 14:27:52 ggarand Exp $
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
KDE Logo
This file is part of the documentation for kio Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 3 19:23:39 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003