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 00084 void setWarnOnEnter(bool x); 00085 00091 bool warnOnUnencrypted() const; 00092 00098 void setWarnOnUnencrypted(bool x); 00099 00104 bool warnOnLeave() const; 00105 00112 void setWarnOnLeave(bool x); 00113 00118 bool warnOnMixed() const; 00119 00124 bool warnOnSelfSigned() const KDE_DEPRECATED; 00125 00130 bool warnOnRevoked() const KDE_DEPRECATED; 00131 00136 bool warnOnExpired() const KDE_DEPRECATED; 00137 00142 bool useEGD() const; 00143 00148 bool useEFile() const; 00149 00154 void setTLSv1(bool enabled); 00155 00160 void setSSLv2(bool enabled); 00161 00166 void setSSLv3(bool enabled); 00167 00173 bool autoSendX509() const; 00174 00180 bool promptSendX509() const; 00181 00187 QString getCipherList(); 00188 00194 QString& getEGDPath(); 00195 00199 void load(); 00200 00204 void defaults(); 00205 00209 void save(); 00210 00211 private: 00212 KConfig *m_cfg; 00213 bool m_bUseSSLv2, m_bUseSSLv3, m_bUseTLSv1; 00214 bool m_bWarnOnEnter, m_bWarnOnUnencrypted, m_bWarnOnLeave, m_bWarnOnMixed; 00215 bool m_bWarnSelfSigned, m_bWarnRevoked, m_bWarnExpired; 00216 00217 QValueList<QString> v2ciphers, v2selectedciphers, v3ciphers, v3selectedciphers; 00218 QValueList<int> v2bits, v3bits; 00219 00220 KSSLSettingsPrivate *d; 00221 }; 00222 00223 00224 #endif 00225
KDE Logo
This file is part of the documentation for kio Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:43:54 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003