certmanager/lib
backendconfigwidget.h
00001 /* -*- c++ -*- 00002 backendconfigwidget.h 00003 00004 This file is part of libkleopatra, the KDE keymanagement library 00005 Copyright (c) 2002,2004 Klarälvdalens Datakonsult AB 00006 Copyright (c) 2002,2003 Marc Mutz <mutz@kde.org> 00007 00008 Libkleopatra is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License as 00010 published by the Free Software Foundation; either version 2 of the 00011 License, or (at your option) any later version. 00012 00013 Libkleopatra is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 00022 In addition, as a special exception, the copyright holders give 00023 permission to link the code of this program with any edition of 00024 the Qt library by Trolltech AS, Norway (or with modified versions 00025 of Qt that use the same license as Qt), and distribute linked 00026 combinations including the two. You must obey the GNU General 00027 Public License in all respects for all of the code used other than 00028 Qt. If you modify this file, you may extend this exception to 00029 your version of the file, but you are not obligated to do so. If 00030 you do not wish to do so, delete this exception statement from 00031 your version. 00032 */ 00033 00034 #ifndef __KLEO_UI_BACKENDCONFIGWIDGET_H__ 00035 #define __KLEO_UI_BACKENDCONFIGWIDGET_H__ 00036 00037 #include <qwidget.h> 00038 #include <kdepimmacros.h> 00039 00040 namespace Kleo { 00041 class CryptoBackendFactory; 00042 } 00043 00044 class QListViewItem; 00045 00046 namespace Kleo { 00047 00048 class KDE_EXPORT BackendConfigWidget : public QWidget { 00049 Q_OBJECT 00050 public: 00051 BackendConfigWidget( CryptoBackendFactory * factory, QWidget * parent=0, const char * name=0, WFlags f=0 ); 00052 ~BackendConfigWidget(); 00053 00054 void load(); 00055 void save() const; 00056 00057 void emitChanged( bool b ) { emit changed( b ); } 00058 00059 signals: 00060 void changed( bool ); 00061 00062 private slots: 00063 void slotSelectionChanged( QListViewItem * ); 00064 void slotRescanButtonClicked(); 00065 void slotConfigureButtonClicked(); 00066 00067 private: 00068 class Private; 00069 Private * d; 00070 protected: 00071 virtual void virtual_hook( int, void* ); 00072 }; 00073 00074 } 00075 00076 #endif // __KLEO_UI_BACKENDCONFIGWIDGET_H__