KIO
cacertificatespage.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2010 Andreas Hartmetz <ahartmetz@gmail.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301, USA. 00018 */ 00019 00020 #ifndef CACERTIFICATESPAGE_H 00021 #define CACERTIFICATESPAGE_H 00022 00023 #include "ui_cacertificates.h" 00024 00025 #include <QWidget> 00026 class QTreeWidgetItem; 00027 class KSslCaCertificate; 00028 00029 class CaCertificatesPage : public QWidget 00030 { 00031 Q_OBJECT 00032 public: 00033 CaCertificatesPage(QWidget *parent); 00034 00035 void load(); 00036 void save(); 00037 void defaults(); 00038 00039 private Q_SLOTS: 00040 void itemSelectionChanged(); 00041 00042 void displaySelectionClicked(); 00043 void disableSelectionClicked(); 00044 void enableSelectionClicked(); 00045 void removeSelectionClicked(); 00046 void addCertificateClicked(); 00047 void itemChanged(QTreeWidgetItem *item, int column); 00048 00049 Q_SIGNALS: 00050 void changed(bool state); 00051 00052 protected: 00053 void showEvent(QShowEvent *event); 00054 00055 private: 00056 bool addCertificateItem(const KSslCaCertificate &caCert); 00057 void enableDisableSelectionClicked(bool isEnable); 00058 00059 Ui::CaCertificatesPage m_ui; 00060 QTreeWidgetItem *m_systemCertificatesParent; 00061 QTreeWidgetItem *m_userCertificatesParent; 00062 QSet<QByteArray> m_knownCertificates; 00063 bool m_firstShowEvent; 00064 bool m_blockItemChanged; 00065 }; 00066 00067 #endif
KDE 4.6 API Reference