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

# ksslcertdlg.h

    00001 /* This file is part of the KDE project
    00002  *
    00003  * Copyright (C) 2001 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., 59 Temple Place - Suite 330,
    00018  * Boston, MA 02111-1307, USA.
    00019  */
    00020
    00021 #ifndef _KSSLCERTDLG_H
    00022 #define _KSSLCERTDLG_H
    00023
    00024 #include <kdialog.h>
    00025 #include <qstringlist.h>
    00026
    00027 class QWidget;
    00028 class QCheckBox;
    00029 class QRadioButton;
    00030 class QListView;
    00031 class QPushButton;
    00032
    00033 class KSSLCertDlg : public KDialog {
    00034
    00035   Q_OBJECT
    00036
    00037 public:
    00038   KSSLCertDlg(QWidget *parent = 0, const char *name = 0, bool modal = false);
    00039   virtual ~KSSLCertDlg();
    00040
    00041   void setup(QStringList certs, bool saveChecked = false, bool sendChecked = true);
    00042
    00043   QString getChoice();
    00044
    00045   bool wantsToSend();
    00046
    00047   bool saveChoice();
    00048
    00049   void setHost(const QString& host);
    00050
    00051 private slots:
    00052   void slotSend();
    00053   void slotDont();
    00054
    00055
    00056 private:
    00057   class KSSLCertDlgPrivate;
    00058   KSSLCertDlgPrivate *d;
    00059   QCheckBox *_save;
    00060   QRadioButton *_send, *_dont;
    00061   QListView *_certs;
    00062   QPushButton *_ok;
    00063   QString _host;
    00064
    00065 };
    00066
    00067
    00068 class KSSLCertDlgRet {
    00069 public:
    00070    bool ok;
    00071    QString choice;
    00072    bool send;
    00073    bool save;
    00074
    00075 protected:
    00076    class KSSLCertDlgRetPrivate;
    00077    KSSLCertDlgRetPrivate *d;
    00078 };
    00079
    00080 QDataStream& operator<<(QDataStream& s, const KSSLCertDlgRet& r);
    00081 QDataStream& operator>>(QDataStream& s, KSSLCertDlgRet& r);
    00082
    00083
    00084
    00085
    00086 #endif
    00087

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:22 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001