certmanager/lib

backendconfigwidget.h
1/*
2 backendconfigwidget.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 Copyright (c) 2002,2004 Klarälvdalens Datakonsult AB
6 Copyright (c) 2002,2003 Marc Mutz <mutz@kde.org>
7
8 Libkleopatra is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
12
13 Libkleopatra is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
22 In addition, as a special exception, the copyright holders give
23 permission to link the code of this program with any edition of
24 the TQt library by Trolltech AS, Norway (or with modified versions
25 of TQt that use the same license as TQt), and distribute linked
26 combinations including the two. You must obey the GNU General
27 Public License in all respects for all of the code used other than
28 TQt. If you modify this file, you may extend this exception to
29 your version of the file, but you are not obligated to do so. If
30 you do not wish to do so, delete this exception statement from
31 your version.
32 */
33
34#ifndef __KLEO_UI_BACKENDCONFIGWIDGET_H__
35#define __KLEO_UI_BACKENDCONFIGWIDGET_H__
36
37#include <tqwidget.h>
38#include <tdemacros.h>
39
40namespace Kleo {
41 class CryptoBackendFactory;
42}
43
44class TQListViewItem;
45
46namespace Kleo {
47
48 class TDE_EXPORT BackendConfigWidget : public TQWidget {
49 TQ_OBJECT
50
51 public:
52 BackendConfigWidget( CryptoBackendFactory * factory, TQWidget * parent=0, const char * name=0, WFlags f=0 );
53 ~BackendConfigWidget();
54
55 void load();
56 void save() const;
57
58 void emitChanged( bool b ) { emit changed( b ); }
59
60 signals:
61 void changed( bool );
62
63 private slots:
64 void slotSelectionChanged( TQListViewItem * );
65 void slotRescanButtonClicked();
66 void slotConfigureButtonClicked();
67
68 private:
69 class Private;
70 Private * d;
71 protected:
72 virtual void virtual_hook( int, void* );
73 };
74
75}
76
77#endif // __KLEO_UI_BACKENDCONFIGWIDGET_H__