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

kleopatra

  • sources
  • kde-4.12
  • kdepim
  • kleopatra
  • libkleopatraclient
  • gui
certificaterequester.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  gui/certificaterequester.h
3 
4  This file is part of KleopatraClient, the Kleopatra interface library
5  Copyright (c) 2008 Klarälvdalens Datakonsult AB
6 
7  KleopatraClient is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Library General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  KleopatraClient is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 
22 #ifndef __LIBKLEOPATRACLIENT_GUI_CERTIFICATEREQUESTER_H__
23 #define __LIBKLEOPATRACLIENT_GUI_CERTIFICATEREQUESTER_H__
24 
25 #include <libkleopatraclient/kleopatraclient_export.h>
26 
27 #include <QWidget>
28 
29 namespace KLEOPATRACLIENT_NAMESPACE {
30 namespace Gui {
31 
32  class KLEOPATRACLIENTGUI_EXPORT CertificateRequester : public QWidget {
33  Q_OBJECT
34  Q_PROPERTY( bool multipleCertificatesAllowed READ multipleCertificatesAllowed WRITE setMultipleCertificatesAllowed )
35  Q_PROPERTY( bool onlySigningCertificatesAllowed READ onlySigningCertificatesAllowed WRITE setOnlySigningCertificatesAllowed )
36  Q_PROPERTY( bool onlyEncryptionCertificatesAllowed READ onlyEncryptionCertificatesAllowed WRITE setOnlyEncryptionCertificatesAllowed )
37  Q_PROPERTY( bool onlyOpenPGPCertificatesAllowed READ onlyOpenPGPCertificatesAllowed WRITE setOnlyOpenPGPCertificatesAllowed )
38  Q_PROPERTY( bool onlyX509CertificatesAllowed READ onlyX509CertificatesAllowed WRITE setOnlyX509CertificatesAllowed )
39  Q_PROPERTY( bool onlySecretKeysAllowed READ onlySecretKeysAllowed WRITE setOnlySecretKeysAllowed )
40  Q_PROPERTY( QStringList selectedCertificates READ selectedCertificates WRITE setSelectedCertificates )
41  public:
42  explicit CertificateRequester( QWidget * parent=0, Qt::WindowFlags f=0 );
43  ~CertificateRequester();
44 
45  void setMultipleCertificatesAllowed( bool allow );
46  bool multipleCertificatesAllowed() const;
47 
48  void setOnlySigningCertificatesAllowed( bool allow );
49  bool onlySigningCertificatesAllowed() const;
50 
51  void setOnlyEncryptionCertificatesAllowed( bool allow );
52  bool onlyEncryptionCertificatesAllowed() const;
53 
54  void setOnlyOpenPGPCertificatesAllowed( bool allow );
55  bool onlyOpenPGPCertificatesAllowed() const;
56 
57  void setOnlyX509CertificatesAllowed( bool allow );
58  bool onlyX509CertificatesAllowed() const;
59 
60  void setOnlySecretKeysAllowed( bool allow );
61  bool onlySecretKeysAllowed() const;
62 
63  void setSelectedCertificates( const QStringList & certs );
64  QStringList selectedCertificates() const;
65 
66  void setSelectedCertificate( const QString & cert );
67  QString selectedCertificate() const;
68 
69  Q_SIGNALS:
70  void selectedCertificatesChanged( const QStringList & certs );
71 
72  private:
73  class Private;
74  Private * d;
75  Q_PRIVATE_SLOT( d, void slotButtonClicked() )
76  Q_PRIVATE_SLOT( d, void slotCommandFinished() )
77  };
78 
79 }
80 }
81 
82 #endif /* __LIBKLEOPATRACLIENT_GUI_CERTIFICATEREQUESTER_H__ */
QWidget
d
#define d
Definition: adduseridcommand.cpp:90
kleopatraclient_export.h
KLEOPATRACLIENT_NAMESPACE::Gui::CertificateRequester
Definition: certificaterequester.h:32
KLEOPATRACLIENTGUI_EXPORT
#define KLEOPATRACLIENTGUI_EXPORT
Definition: kleopatraclient_export.h:57
KLEOPATRACLIENT_NAMESPACE
#define KLEOPATRACLIENT_NAMESPACE
Definition: kleopatraclient_export.h:61
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kleopatra

Skip menu "kleopatra"
  • 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