certmanager/lib

cryptoconfigmodule.h
1 /*
2  cryptoconfigmodule.h
3 
4  This file is part of libkleopatra
5  Copyright (c) 2004,2005 Klarälvdalens Datakonsult AB
6 
7  Libkleopatra is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License,
9  version 2, as published by the Free Software Foundation.
10 
11  Libkleopatra is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 
20  In addition, as a special exception, the copyright holders give
21  permission to link the code of this program with any edition of
22  the TQt library by Trolltech AS, Norway (or with modified versions
23  of TQt that use the same license as TQt), and distribute linked
24  combinations including the two. You must obey the GNU General
25  Public License in all respects for all of the code used other than
26  TQt. If you modify this file, you may extend this exception to
27  your version of the file, but you are not obligated to do so. If
28  you do not wish to do so, delete this exception statement from
29  your version.
30 */
31 
32 #ifndef CRYPTOCONFIGMODULE_H
33 #define CRYPTOCONFIGMODULE_H
34 
35 #include <kjanuswidget.h>
36 
37 #include <tqvaluelist.h>
38 
39 namespace Kleo {
40 
41  class CryptoConfig;
42  class CryptoConfigComponentGUI;
43 
48  class CryptoConfigModule : public KJanusWidget {
49  TQ_OBJECT
50 
51  public:
52  CryptoConfigModule( Kleo::CryptoConfig* config, TQWidget * parent=0, const char * name=0 );
53 
54  bool hasError() const;
55 
56  void save();
57  void reset(); // i.e. reload current settings, discarding user input
58  void defaults();
59  void cancel();
60 
61  signals:
62  void changed();
63 
64  private:
65  Kleo::CryptoConfig* mConfig;
66  TQValueList<CryptoConfigComponentGUI *> mComponentGUIs;
67  };
68 
69 }
70 
71 #endif
Crypto Config Module widget, dynamically generated from CryptoConfig It's a simple TQWidget so that i...
Main interface to crypto configuration.
Definition: cryptoconfig.h:334