libkleo
cryptobackendfactory.cpp
Go to the documentation of this file.
67 static const unsigned int numAvailableProtocols = sizeof availableProtocols / sizeof *availableProtocols;
94 for ( std::vector<CryptoBackend*>::iterator it = mBackendList.begin() ; it != mBackendList.end() ; ++it ) {
135 const Kleo::CryptoBackend::Protocol * Kleo::CryptoBackendFactory::protocol( const char * name ) const {
144 const Kleo::CryptoBackend::Protocol * Kleo::CryptoBackendFactory::protocol( GpgME::Protocol proto ) const {
163 for ( std::vector<CryptoBackend*>::const_iterator it = mBackendList.begin() ; it != mBackendList.end() ; ++it ) {
185 const Kleo::CryptoBackend * Kleo::CryptoBackendFactory::backendByName( const QString& name ) const {
186 for ( std::vector<CryptoBackend*>::const_iterator it = mBackendList.begin() ; it != mBackendList.end() ; ++it ) {
208 void Kleo::CryptoBackendFactory::setProtocolBackend( const char * protocol, const CryptoBackend * backend ) {
236 for ( ProtocolSet::const_iterator it = mAvailableProtocols.begin(), end = mAvailableProtocols.end() ; it != end ; ++it ) {
238 mBackends[*it] = backendByName( backend.isEmpty() ? QString::fromLatin1( defaultBackend( *it ) ) : backend );
static const char * defaultBackend(const char *proto)
Definition: cryptobackendfactory.cpp:216
void scanForBackends(QStringList *reasons=0)
Definition: cryptobackendfactory.cpp:162
CryptoConfig * config() const
Definition: cryptobackendfactory.cpp:153
std::vector< CryptoBackend * > mBackendList
Definition: cryptobackendfactory.h:96
const CryptoBackend::Protocol * smime() const
Definition: cryptobackendfactory.cpp:117
Definition: qgpgmebackend.h:47
void setProtocolBackend(const char *name, const CryptoBackend *backend)
Definition: cryptobackendfactory.cpp:208
static CryptoBackendFactory * instance()
Definition: cryptobackendfactory.cpp:102
const CryptoBackend * backend(unsigned int idx) const
Definition: cryptobackendfactory.cpp:181
Definition: cryptobackend.h:70
void setSMIMEBackend(const CryptoBackend *backend)
Definition: cryptobackendfactory.cpp:200
KConfig * configObject() const
Definition: cryptobackendfactory.cpp:193
const CryptoBackend::Protocol * protocol(const char *name) const
Definition: cryptobackendfactory.cpp:135
const char * enumerateProtocols(int i) const
Definition: cryptobackendfactory.cpp:242
CryptoBackendFactory()
Definition: cryptobackendfactory.cpp:69
~CryptoBackendFactory()
Definition: cryptobackendfactory.cpp:91
virtual QString name() const =0
bool knowsAboutProtocol(const char *name) const
Definition: cryptobackendfactory.cpp:283
bool hasBackends() const
Definition: cryptobackendfactory.cpp:158
Definition: chiasmusbackend.h:47
static const unsigned int numAvailableProtocols
Definition: cryptobackendfactory.cpp:67
void setOpenPGPBackend(const CryptoBackend *backend)
Definition: cryptobackendfactory.cpp:204
Definition: cryptobackend.h:99
const CryptoBackend::Protocol * openpgp() const
Definition: cryptobackendfactory.cpp:126
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
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.