KIO
ksslsettings.h
Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef _KSSLSETTINGS_H 00022 #define _KSSLSETTINGS_H 00023 00024 #include <kio/kio_export.h> 00025 00026 #include <QtCore/QString> 00027 00028 #include <kconfig.h> 00029 00030 class KSSLSettingsPrivate; 00031 00041 class KIO_EXPORT KSSLSettings { 00042 public: 00048 KSSLSettings(bool readConfig = true); 00049 00053 ~KSSLSettings(); 00054 00059 bool warnOnEnter() const; 00060 00066 void setWarnOnEnter(bool x); 00067 00073 bool warnOnUnencrypted() const; 00074 00080 void setWarnOnUnencrypted(bool x); 00081 00086 bool warnOnLeave() const; 00087 00093 void setWarnOnLeave(bool x); 00094 00099 bool warnOnMixed() const; 00100 00105 bool useEGD() const; 00106 00111 bool useEFile() const; 00112 00118 bool autoSendX509() const; 00119 00125 bool promptSendX509() const; 00126 00132 QString getCipherList(); 00133 00139 QString& getEGDPath(); 00140 00144 void load(); 00145 00149 void defaults(); 00150 00154 void save(); 00155 00156 private: 00157 KConfig *m_cfg; 00158 bool m_bWarnOnEnter, m_bWarnOnUnencrypted, m_bWarnOnLeave, m_bWarnOnMixed; 00159 bool m_bWarnSelfSigned, m_bWarnRevoked, m_bWarnExpired; 00160 00161 QList<QString> v3ciphers, v3selectedciphers; 00162 QList<int> v3bits; 00163 00164 KSSLSettingsPrivate* const d; 00165 }; 00166 00167 00168 #endif 00169
KDE 4.6 API Reference