KIO
ksslinfodialog.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
00022 #ifndef _KSSLINFODIALOG_H
00023 #define _KSSLINFODIALOG_H
00024
00025 #include <kdialog.h>
00026
00027 #include "ksslx509map.h"
00028 #include "ksslcertificate.h"
00029 #include "kssl.h"
00030 #include <QtNetwork/QSslError>
00031
00032 class QWidget;
00033 class KSSLCertBox;
00034 class QSslCertificate;
00035 class KTcpSocket;
00036
00050 class KIO_EXPORT KSSLInfoDialog : public KDialog {
00051 Q_OBJECT
00052 public:
00058 explicit KSSLInfoDialog(QWidget *parent = 0);
00059
00063 virtual ~KSSLInfoDialog();
00064
00071 void setSecurityInQuestion(bool isIt);
00072
00086 void setSslInfo(const QList<QSslCertificate> &certificateChain,
00087 const QString &ip, const QString &url,
00088 const QString &sslProtocol, const QString &cipher,
00089 int usedBits, int bits,
00090 const QList<QSslError::SslError> &validationErrors);
00091
00092 void setMainPartEncrypted(bool);
00093 void setAuxiliaryPartsEncrypted(bool);
00094
00104 void setup(const KTcpSocket &socket, const QString &ip, const QString &url);
00105
00106 private:
00107 void updateWhichPartsEncrypted();
00108
00109 class KSSLInfoDialogPrivate;
00110 KSSLInfoDialogPrivate* const d;
00111
00112 private Q_SLOTS:
00113 void launchConfig();
00114 void displayFromChain(int);
00115 };
00116
00117 #endif