ksslsettings.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
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 
 
This file is part of the documentation for kio Library Version 3.2.0.