| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# ksslinfodlg.h

    00001 /* This file is part of the KDE project
    00002  *
    00003  * Copyright (C) 2000,2001 George Staikos <staikos@kde.org>
    00004  * Copyright (C) 2000 Malte Starostik <malte@kde.org>
    00005  *
    00006  * This library is free software; you can redistribute it and/or
    00007  * modify it under the terms of the GNU Library General Public
    00008  * License as published by the Free Software Foundation; either
    00009  * version 2 of the License, or (at your option) any later version.
    00010  *
    00011  * This library is distributed in the hope that it will be useful,
    00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014  * Library General Public License for more details.
    00015  *
    00016  * You should have received a copy of the GNU Library General Public License
    00017  * along with this library; see the file COPYING.LIB.  If not, write to
    00018  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00019  * Boston, MA 02111-1307, USA.
    00020  */
    00021
    00022 #ifndef _KSSLINFODLG_H
    00023 #define _KSSLINFODLG_H
    00024
    00025 #include <kdialog.h>
    00026
    00027 #include "ksslx509map.h"
    00028 #include "ksslcertificate.h"
    00029 #include "kssl.h"
    00030 #include <qscrollview.h>
    00031
    00032 class QWidget;
    00033 class KSSLCertBox;
    00034 class KSSLCertChain;
    00035
    00036
    00037 //  NO GUARANTEES THAT KSSLInfoDlg:: will remain BC
    00038 //  Contact staikos@kde.org for details if needed
    00039
    00040 class KSSLInfoDlg : public KDialog {
    00041
    00042   Q_OBJECT
    00043
    00044 public:
    00045   KSSLInfoDlg(bool secureConnection, QWidget *parent = 0, const char *name = 0, bool modal = false);
    00046   virtual ~KSSLInfoDlg();
    00047
    00048   void setSecurityInQuestion(bool isIt);
    00049   void setup(KSSLCertificate *cert,
    00050              const QString& ip, const QString& url,
    00051              const QString& cipher, const QString& cipherdesc,
    00052              const QString& sslversion, int usedbits, int bits,
    00053              KSSLCertificate::KSSLValidation certState);
    00054
    00055 public:
    00056   void setup( KSSL & ssl, const QString & ip, const QString & url );
    00057   static KSSLCertBox *certInfoWidget(QWidget *parent, const QString &certName, QWidget *mailCatcher=0);
    00058
    00059 private:
    00060   QScrollView *buildCertInfo(const QString &certName);
    00061   void displayCert(KSSLCertificate *x);
    00062
    00063   class KSSLInfoDlgPrivate;
    00064   KSSLInfoDlgPrivate *d;
    00065
    00066 private slots:
    00067   void launchConfig();
    00068   void urlClicked(const QString &url);
    00069   void mailClicked(const QString &url);
    00070   void slotChain(int x);
    00071 };
    00072
    00073
    00074 class KSSLCertBox : public QScrollView {
    00075 public:
    00076    KSSLCertBox(QWidget *parent=0, const char *name=0, WFlags f=0);
    00077    void setValues(QString certName, QWidget *mailCatcher=0);
    00078 private:
    00079    QFrame *_frame;
    00080 };
    00081
    00082 #endif
    00083

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:14:26 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001