KIO
kssl.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 * 00003 * Copyright (C) 2000-2005 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 _KSSL_H 00022 #define _KSSL_H 00023 00024 #include <ksslsettings.h> 00025 00026 class QIODevice; 00027 class KSSLPrivate; 00028 class KSSLSession; 00029 00039 class KIO_EXPORT KSSL { 00040 public: 00047 KSSL(bool init = true); 00048 00054 ~KSSL(); 00055 00061 static bool doesSSLWork(); 00062 00071 bool initialize(); 00072 00079 bool TLSInit(); 00080 00091 bool setSession(const KSSLSession *session); 00092 00096 void close(); 00097 00107 bool reInitialize(); 00108 00118 bool reconfig(); 00119 00129 void setAutoReconfig(bool ar); 00130 00138 int seedWithEGD(); 00139 00148 bool setSettings(KSSLSettings *settings); 00149 00156 KSSLSettings * settings(); 00157 00158 private: 00159 static bool m_bSSLWorks; 00160 bool m_bInit; 00161 bool m_bAutoReconfig; 00162 KSSLSettings *m_cfg; 00163 00164 KSSLPrivate *d; 00165 }; 00166 00167 00168 #endif 00169
KDE 4.6 API Reference