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 TQt library by Trolltech AS, Norway (or with modified versions 00025 of TQt that use the same license as TQt), 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 TQt. 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 <tqwidget.h> 00038 #include <kdepimmacros.h> 00039 00040 namespace Kleo { 00041 class CryptoBackendFactory; 00042 } 00043 00044 class TQListViewItem; 00045 00046 namespace Kleo { 00047 00048 class KDE_EXPORT BackendConfigWidget : public TQWidget { 00049 Q_OBJECT 00050 TQ_OBJECT 00051 public: 00052 BackendConfigWidget( CryptoBackendFactory * factory, TQWidget * parent=0, const char * name=0, WFlags f=0 ); 00053 ~BackendConfigWidget(); 00054 00055 void load(); 00056 void save() const; 00057 00058 void emitChanged( bool b ) { emit changed( b ); } 00059 00060 signals: 00061 void changed( bool ); 00062 00063 private slots: 00064 void slotSelectionChanged( TQListViewItem * ); 00065 void slotRescanButtonClicked(); 00066 void slotConfigureButtonClicked(); 00067 00068 private: 00069 class Private; 00070 Private * d; 00071 protected: 00072 virtual void virtual_hook( int, void* ); 00073 }; 00074 00075 } 00076 00077 #endif // __KLEO_UI_BACKENDCONFIGWIDGET_H__