• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

ksslcertdialog.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
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 

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal