File indexing completed on 2024-05-12 11:49:29
0001 /* This file is part of the KDE project 0002 Copyright (C) 2010 Andreas Hartmetz <ahartmetz@gmail.com> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 GNU General Public License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program; if not, write to the Free Software 0016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0017 02110-1301, USA. 0018 */ 0019 0020 #ifndef DISPLAYCERTDIALOG_P_H 0021 #define DISPLAYCERTDIALOG_P_H 0022 0023 #include "ui_displaycert.h" 0024 #include <QDialog> 0025 #include <QSslCertificate> 0026 0027 class DisplayCertDialog : public QDialog 0028 { 0029 Q_OBJECT 0030 public: 0031 DisplayCertDialog(QWidget *parent); 0032 void setCertificates(const QList<QSslCertificate> &certs); 0033 private: 0034 void showCertificate(int index); 0035 private Q_SLOTS: 0036 void nextClicked(); 0037 void previousClicked(); 0038 0039 private: 0040 Ui::DisplayCert m_ui; 0041 QList<QSslCertificate> m_certs; 0042 int m_index; 0043 QPushButton *m_previousButton; 0044 QPushButton *m_nextButton; 0045 }; 0046 #endif // DISPLAYCERTDIALOG_P_H