KIO
ksslsettings.h
Go to the documentation of this file.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 <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