kio Library API Documentation

ksslsettings.h

00001 /* This file is part of the KDE project 00002 * 00003 * Copyright (C) 2000-2003 George Staikos <staikos@kde.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public License 00016 * along with this library; see the file COPYING.LIB. If not, write to 00017 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 * Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef _KSSLSETTINGS_H 00022 #define _KSSLSETTINGS_H 00023 00024 #include <qstring.h> 00025 #include <qvaluelist.h> 00026 #include <kconfig.h> 00027 #include <kdemacros.h> 00028 00029 class KSSLSettingsPrivate; 00030 00040 class KSSLSettings { 00041 public: 00047 KSSLSettings(bool readConfig = true); 00048 00052 ~KSSLSettings(); 00053 00058 bool sslv2() const; 00059 00064 bool sslv3() const; 00065 00070 bool tlsv1() const; 00071 00076 bool warnOnEnter() const; 00077 00083 bool warnOnUnencrypted() const; 00084 00090 void setWarnOnUnencrypted(bool x); 00091 00096 bool warnOnLeave() const; 00097 00102 bool warnOnMixed() const; 00103 00108 bool warnOnSelfSigned() const KDE_DEPRECATED; 00109 00114 bool warnOnRevoked() const KDE_DEPRECATED; 00115 00120 bool warnOnExpired() const KDE_DEPRECATED; 00121 00126 bool useEGD() const; 00127 00132 bool useEFile() const; 00133 00138 void setTLSv1(bool enabled); 00139 00144 void setSSLv2(bool enabled); 00145 00150 void setSSLv3(bool enabled); 00151 00157 bool autoSendX509() const; 00158 00164 bool promptSendX509() const; 00165 00171 QString getCipherList(); 00172 00178 QString& getEGDPath(); 00179 00183 void load(); 00184 00188 void defaults(); 00189 00193 void save(); 00194 00195 private: 00196 KConfig *m_cfg; 00197 bool m_bUseSSLv2, m_bUseSSLv3, m_bUseTLSv1; 00198 bool m_bWarnOnEnter, m_bWarnOnUnencrypted, m_bWarnOnLeave, m_bWarnOnMixed; 00199 bool m_bWarnSelfSigned, m_bWarnRevoked, m_bWarnExpired; 00200 00201 QValueList<QString> v2ciphers, v2selectedciphers, v3ciphers, v3selectedciphers; 00202 QValueList<int> v2bits, v3bits; 00203 00204 KSSLSettingsPrivate *d; 00205 }; 00206 00207 00208 #endif 00209
KDE Logo
This file is part of the documentation for kio Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 16 17:22:32 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003