• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkleo

  • sources
  • kde-4.12
  • kdepim
  • libkleo
  • ui
cryptoconfigmodule.h
Go to the documentation of this file.
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 Qt library by Trolltech AS, Norway (or with modified versions
23  of Qt that use the same license as Qt), 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  Qt. 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 "kleo/kleo_export.h"
36 #include <kpagedialog.h>
37 #include <QtCore/QList>
38 
39 namespace Kleo {
40 
41  class CryptoConfig;
42  class CryptoConfigComponentGUI;
43 
44  struct ParsedKeyserver {
45  QString url;
46  QVector< QPair<QString,QString> > options;
47  };
48 
49  KLEO_EXPORT ParsedKeyserver parseKeyserver( const QString & str );
50  KLEO_EXPORT QString assembleKeyserver( const ParsedKeyserver & keyserver );
51 
52 
57  class KLEO_EXPORT CryptoConfigModule : public KPageWidget {
58  Q_OBJECT
59  public:
60  enum Layout { TabbedLayout, IconListLayout, LinearizedLayout };
61  explicit CryptoConfigModule( Kleo::CryptoConfig* config, QWidget * parent=0 );
62  explicit CryptoConfigModule( Kleo::CryptoConfig* config, Layout layout, QWidget * parent=0 );
63 
64  bool hasError() const;
65 
66  void save();
67  void reset(); // i.e. reload current settings, discarding user input
68  void defaults();
69  void cancel();
70 
71  Q_SIGNALS:
72  void changed();
73 
74  private:
75  void init( Layout layout );
76 
77  private:
78  Kleo::CryptoConfig* mConfig;
79  QList<CryptoConfigComponentGUI *> mComponentGUIs;
80  };
81 
82 }
83 
84 #endif
Kleo::ParsedKeyserver
Definition: cryptoconfigmodule.h:44
Kleo::parseKeyserver
KLEO_EXPORT ParsedKeyserver parseKeyserver(const QString &str)
Definition: cryptoconfigmodule.cpp:946
Kleo::CryptoConfigModule::Layout
Layout
Definition: cryptoconfigmodule.h:60
QWidget
QString
Kleo::CryptoConfigModule::TabbedLayout
Definition: cryptoconfigmodule.h:60
Kleo::assembleKeyserver
KLEO_EXPORT QString assembleKeyserver(const ParsedKeyserver &keyserver)
Definition: cryptoconfigmodule.cpp:968
KLEO_EXPORT
#define KLEO_EXPORT
Definition: kleo_export.h:41
KPageWidget
Kleo::CryptoConfigModule
Crypto Config Module widget, dynamically generated from CryptoConfig It's a simple QWidget so that it...
Definition: cryptoconfigmodule.h:57
Kleo::ParsedKeyserver::options
QVector< QPair< QString, QString > > options
Definition: cryptoconfigmodule.h:46
kleo_export.h
Kleo::ParsedKeyserver::url
QString url
Definition: cryptoconfigmodule.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkleo

Skip menu "libkleo"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal