kio Library API Documentation

ksslcertdlg.h

00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2001-2003 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 #include <kdemacros.h>
00027 
00028 class QWidget;
00029 class QCheckBox;
00030 class QRadioButton;
00031 class QListView;
00032 class QPushButton;
00033 
00044 class KSSLCertDlg : public KDialog {
00045     Q_OBJECT
00046 public:
00054     KSSLCertDlg(QWidget *parent=0L, const char *name=0L, bool modal=false);
00055 
00059     virtual ~KSSLCertDlg();
00060 
00069     void setup(QStringList certs, bool saveChecked = false, bool sendChecked = true) KDE_DEPRECATED;
00070 
00078     void setupDialog(const QStringList& certs, bool saveChecked = false, bool sendChecked = true);
00079 
00085     QString getChoice();
00086 
00092     bool wantsToSend();
00093 
00099     bool saveChoice();
00100 
00106     void setHost(const QString& host);
00107 
00108 private slots:
00109     void slotSend();
00110     void slotDont();
00111 
00112 private:
00113     class KSSLCertDlgPrivate;
00114     KSSLCertDlgPrivate *d;
00115     QCheckBox *_save;
00116     QRadioButton *_send, *_dont;
00117     QListView *_certs;
00118     QPushButton *_ok;
00119     QString _host;
00120 };
00121 
00122 
00123 class KSSLCertDlgRet {
00124 public:
00125    bool ok;
00126    QString choice;
00127    bool send;
00128    bool save;
00129 
00130 protected:
00131    class KSSLCertDlgRetPrivate;
00132    KSSLCertDlgRetPrivate *d;
00133 };
00134 
00135 QDataStream& operator<<(QDataStream& s, const KSSLCertDlgRet& r);
00136 QDataStream& operator>>(QDataStream& s, KSSLCertDlgRet& r);
00137 
00138 
00139 
00140 
00141 #endif
00142 
KDE Logo
This file is part of the documentation for kio Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Aug 4 05:25:35 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2003