KIO
ksslcertdialog.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 #ifndef _KSSLCERTDIALOG_H
00022 #define _KSSLCERTDIALOG_H
00023
00024 #include <kio/kio_export.h>
00025
00026 #include <QtCore/QStringList>
00027 #include <kdialog.h>
00028
00029 class QWidget;
00030 class QCheckBox;
00031 class QRadioButton;
00032 class QListWidget;
00033 class QPushButton;
00034
00045 class KIO_EXPORT KSSLCertDialog : public KDialog {
00046 Q_OBJECT
00047 public:
00055 explicit KSSLCertDialog(QWidget *parent=0L, const char *name=0L,
00056 bool modal=false);
00057
00061 virtual ~KSSLCertDialog();
00062
00071 KDE_DEPRECATED void setup(QStringList certs, bool saveChecked = false, bool sendChecked = true);
00072
00080 void setupDialog(const QStringList& certs, bool saveChecked = false, bool sendChecked = true);
00081
00087 QString getChoice();
00088
00094 bool wantsToSend();
00095
00101 bool saveChoice();
00102
00108 void setHost(const QString& host);
00109
00110 private Q_SLOTS:
00111 void slotSend();
00112 void slotDont();
00113
00114 private:
00115 class KSSLCertDialogPrivate;
00116 KSSLCertDialogPrivate* const d;
00117 QCheckBox *_save;
00118 QRadioButton *_send, *_dont;
00119 QListWidget *_certs;
00120 QPushButton *_ok;
00121 QString _host;
00122 };
00123
00124
00130 class KIO_EXPORT KSSLCertDialogRet {
00131 public:
00132 QString choice;
00133 bool ok;
00134 bool send;
00135 bool save;
00136 };
00137
00138 KIO_EXPORT QDataStream& operator<<(QDataStream& s, const KSSLCertDialogRet& r);
00139 KIO_EXPORT QDataStream& operator>>(QDataStream& s, KSSLCertDialogRet& r);
00140
00141 #endif
00142