• 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
  • backends
  • chiasmus
chiasmusbackend.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  chiasmusbackend.h
3 
4  This file is part of libkleopatra, the KDE keymanagement library
5  Copyright (c) 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 as
9  published by the Free Software Foundation; either version 2 of the
10  License, or (at your option) any later version.
11 
12  Libkleopatra 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  General Public License for more details.
16 
17  You should have received a copy of the GNU 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  In addition, as a special exception, the copyright holders give
22  permission to link the code of this program with any edition of
23  the Qt library by Trolltech AS, Norway (or with modified versions
24  of Qt that use the same license as Qt), and distribute linked
25  combinations including the two. You must obey the GNU General
26  Public License in all respects for all of the code used other than
27  Qt. If you modify this file, you may extend this exception to
28  your version of the file, but you are not obligated to do so. If
29  you do not wish to do so, delete this exception statement from
30  your version.
31 */
32 
33 
34 #ifndef __KLEO_CHIASMUSBACKEND_H__
35 #define __KLEO_CHIASMUSBACKEND_H__
36 
37 #include "kleo/cryptobackend.h"
38 
39 
40 namespace Kleo {
41  class CryptoConfig;
42 }
43 class QString;
44 
45 namespace Kleo {
46 
47  class ChiasmusBackend : public Kleo::CryptoBackend {
48  public:
49  ChiasmusBackend();
50  ~ChiasmusBackend();
51 
52  static const ChiasmusBackend * instance() { return self; }
53 
54  QString name() const;
55  QString displayName() const;
56 
57  Kleo::CryptoConfig * config() const;
58 
59  Kleo::CryptoBackend::Protocol * openpgp() const { return 0; }
60  Kleo::CryptoBackend::Protocol * smime() const { return 0; }
61  Kleo::CryptoBackend::Protocol * protocol( const char * name ) const;
62 
63  bool checkForOpenPGP( QString * reason=0 ) const;
64  bool checkForSMIME( QString * reason=0 ) const;
65  bool checkForChiasmus( QString * reason=0 ) const;
66  bool checkForProtocol( const char * name, QString * reason=0 ) const;
67 
68  bool supportsOpenPGP() const { return false; }
69  bool supportsSMIME() const { return false; }
70  bool supportsProtocol( const char * name ) const;
71 
72  const char * enumerateProtocols( int i ) const;
73 
74  private:
75  class CryptoConfig;
76  class Protocol;
77  mutable CryptoConfig * mCryptoConfig;
78  mutable Protocol * mProtocol;
79  static ChiasmusBackend * self;
80  };
81 
82 }
83 
84 
85 #endif // __KLEO_CHIASMUSBACKEND_H__
Kleo::ChiasmusBackend::supportsOpenPGP
bool supportsOpenPGP() const
Definition: chiasmusbackend.h:68
Kleo::ChiasmusBackend::instance
static const ChiasmusBackend * instance()
Definition: chiasmusbackend.h:52
Kleo::ChiasmusBackend::openpgp
Kleo::CryptoBackend::Protocol * openpgp() const
Definition: chiasmusbackend.h:59
Kleo::ChiasmusBackend::name
QString name() const
Definition: chiasmusbackend.cpp:435
QString
cryptobackend.h
Kleo::CryptoBackend
Definition: cryptobackend.h:70
Kleo::ChiasmusBackend::config
Kleo::CryptoConfig * config() const
Definition: chiasmusbackend.cpp:443
Kleo::ChiasmusBackend::protocol
Kleo::CryptoBackend::Protocol * protocol(const char *name) const
Definition: chiasmusbackend.cpp:449
Kleo::ChiasmusBackend::checkForOpenPGP
bool checkForOpenPGP(QString *reason=0) const
Definition: chiasmusbackend.cpp:458
Kleo::ChiasmusBackend::~ChiasmusBackend
~ChiasmusBackend()
Definition: chiasmusbackend.cpp:429
Kleo::ChiasmusBackend::checkForSMIME
bool checkForSMIME(QString *reason=0) const
Definition: chiasmusbackend.cpp:464
Kleo::ChiasmusBackend::supportsSMIME
bool supportsSMIME() const
Definition: chiasmusbackend.h:69
Kleo::ChiasmusBackend
Definition: chiasmusbackend.h:47
Kleo::ChiasmusBackend::enumerateProtocols
const char * enumerateProtocols(int i) const
Definition: chiasmusbackend.cpp:503
Kleo::ChiasmusBackend::checkForChiasmus
bool checkForChiasmus(QString *reason=0) const
Definition: chiasmusbackend.cpp:470
Kleo::ChiasmusBackend::displayName
QString displayName() const
Definition: chiasmusbackend.cpp:439
Kleo::ChiasmusBackend::supportsProtocol
bool supportsProtocol(const char *name) const
Definition: chiasmusbackend.cpp:499
Kleo::CryptoBackend::Protocol
Definition: cryptobackend.h:99
Kleo::ChiasmusBackend::ChiasmusBackend
ChiasmusBackend()
Definition: chiasmusbackend.cpp:421
Kleo::ChiasmusBackend::smime
Kleo::CryptoBackend::Protocol * smime() const
Definition: chiasmusbackend.h:60
Kleo::ChiasmusBackend::checkForProtocol
bool checkForProtocol(const char *name, QString *reason=0) const
Definition: chiasmusbackend.cpp:491
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