kleopatra
resolverecipientspage.cpp
Go to the documentation of this file.
78 ResolveRecipientsPage::ListWidget::ListWidget( QWidget* parent, Qt::WindowFlags flags ) : QWidget( parent, flags ), m_protocol( UnknownProtocol )
110 void ResolveRecipientsPage::ListWidget::addEntry( const QString& id, const QString& name, const Mailbox& mbox )
130 void ResolveRecipientsPage::ListWidget::setCertificates( const QString& id, const std::vector<Key>& pgp, const std::vector<Key>& cms )
142 GpgME::Key ResolveRecipientsPage::ListWidget::selectedCertificate( const QString& id, GpgME::Protocol prot ) const
189 ResolveRecipientsPage::ItemWidget::ItemWidget( const QString& id, const QString& name, const Mailbox& mbox,
190 QWidget* parent, Qt::WindowFlags flags ) : QWidget( parent, flags ), m_id( id ), m_mailbox( mbox ), m_protocol( UnknownProtocol ), m_selected( false )
257 static CertificateSelectionDialog * createCertificateSelectionDialog( QWidget* parent, GpgME::Protocol prot ) {
270 QPointer<CertificateSelectionDialog> dlg = createCertificateSelectionDialog( this, m_protocol );
339 void ResolveRecipientsPage::ItemWidget::setCertificates( const std::vector<Key>& pgp, const std::vector<Key>& cms )
349 return KeyCache::instance()->findByKeyIDOrFingerprint( m_certCombo->itemData( m_certCombo->currentIndex(), ListWidget::IdRole ).toString().toStdString() );
351 const QString tmpStr = m_certCombo->itemData( m_certCombo->currentIndex(), ListWidget::IdRole ).toString();
369 certs.push_back( KeyCache::instance()->findByKeyIDOrFingerprint( m_certCombo->itemData( i, ListWidget::IdRole ).toString().toStdString() ) );
412 : q( qq ), m_presetProtocol( UnknownProtocol ), m_selectedProtocol( m_presetProtocol ), m_multipleProtocolsAllowed( false ), m_recipientPreferences()
462 const bool haveSecret = std::find_if( keys.begin(), keys.end(), boost::bind( &Key::hasSecret, _1 ) ) != keys.end();
464 q->setExplanation( i18n( "<b>Warning:</b> None of the selected certificates seem to be your own. You will not be able to decrypt the encrypted data again." ) );
573 QPointer<CertificateSelectionDialog> dlg = createCertificateSelectionDialog( q, q->selectedProtocol() );
585 const std::vector<Key> pgp = key.protocol() == OpenPGP ? std::vector<Key>( 1, key ) : std::vector<Key>();
586 const std::vector<Key> cms = key.protocol() == CMS ? std::vector<Key>( 1, key ) : std::vector<Key>();
594 std::vector<Key> makeSuggestions( const boost::shared_ptr<RecipientPreferences>& prefs, const Mailbox& mb, GpgME::Protocol prot )
612 void ResolveRecipientsPage::setAdditionalRecipientsInfo( const std::vector<Key> & recipients ) {
621 void ResolveRecipientsPage::setRecipients( const std::vector<Mailbox>& recipients, const std::vector<Mailbox> & encryptToSelfRecipients )
691 void ResolveRecipientsPage::setRecipientPreferences( const boost::shared_ptr<RecipientPreferences>& prefs )
void setOptions(Options options)
Definition: certificateselectiondialog.cpp:206
Definition: resolverecipientspage_p.h:71
bool isComplete() const
Definition: resolverecipientspage.cpp:483
void removeEntry(const QString &id)
Definition: resolverecipientspage.cpp:161
void setMultipleProtocolsAllowed(bool allowed)
Definition: resolverecipientspage.cpp:547
void setPresetProtocol(GpgME::Protocol protocol)
Definition: resolverecipientspage.cpp:526
void showSelectionDialog()
Definition: resolverecipientspage.cpp:268
void setCertificates(const std::vector< GpgME::Key > &pgp, const std::vector< GpgME::Key > &cms)
Definition: resolverecipientspage.cpp:339
void addEntry(const QString &id, const QString &name)
Definition: resolverecipientspage.cpp:105
void setProtocol(GpgME::Protocol prot)
Definition: resolverecipientspage.cpp:152
static QString listKeysForInfo(const std::vector< Key > &keys)
Definition: resolverecipientspage.cpp:606
bool isSelected() const
Definition: resolverecipientspage.cpp:244
void completeChanged()
void setRecipientsUserMutable(bool isMutable)
Definition: resolverecipientspage.cpp:674
QString id() const
Definition: resolverecipientspage.cpp:227
QString formatForComboBox(const GpgME::Key &key)
Definition: formatting.cpp:497
std::vector< GpgME::Key > resolvedCertificates() const
Definition: resolverecipientspage.cpp:650
~ResolveRecipientsPage()
Definition: resolverecipientspage.cpp:503
static std::vector< GpgME::Key > resolveRecipient(const KMime::Types::Mailbox &recipient, GpgME::Protocol proto)
Definition: certificateresolver.cpp:67
GpgME::Key selectedCertificate() const
Definition: resolverecipientspage.cpp:346
Definition: classify.h:49
std::vector< GpgME::Key > selectedCertificates() const
Definition: certificateselectiondialog.cpp:246
Definition: classify.h:48
bool multipleProtocolsAllowed() const
Definition: resolverecipientspage.cpp:542
std::vector< GpgME::Key > certificates() const
Definition: resolverecipientspage.cpp:364
QStringList identifiers() const
Definition: resolverecipientspage.cpp:147
void setRecipientPreferences(const boost::shared_ptr< RecipientPreferences > &prefs)
Definition: resolverecipientspage.cpp:691
GpgME::Protocol selectedProtocol() const
The protocol selected by the user (which is chosen by the user in case none was preset) ...
Definition: resolverecipientspage.cpp:505
void setCertificates(const QString &id, const std::vector< GpgME::Key > &pgpCerts, const std::vector< GpgME::Key > &cmsCerts)
Definition: resolverecipientspage.cpp:130
static CertificateSelectionDialog * createCertificateSelectionDialog(QWidget *parent, GpgME::Protocol prot)
Definition: resolverecipientspage.cpp:257
ResolveRecipientsPage(QWidget *parent=0)
Definition: resolverecipientspage.cpp:498
QStringList selectedEntries() const
Definition: resolverecipientspage.cpp:178
void setProtocol(GpgME::Protocol protocol)
Definition: resolverecipientspage.cpp:328
bool recipientsUserMutable() const
if true, the user is allowed to remove/add recipients via the UI.
Definition: resolverecipientspage.cpp:680
void showSelectionDialog(const QString &id)
Definition: resolverecipientspage.cpp:171
KMime::Types::Mailbox mailbox() const
Definition: resolverecipientspage.cpp:282
KMime::Types::Mailbox mailbox(const QString &id) const
Definition: resolverecipientspage.cpp:125
static boost::shared_ptr< const KeyCache > instance()
Definition: keycache.cpp:189
static CertificateSelectionDialog::Option protocol2option(GpgME::Protocol proto)
Definition: resolverecipientspage.cpp:249
void setSelected(bool selected)
Definition: resolverecipientspage.cpp:232
~ItemWidget()
Definition: resolverecipientspage.cpp:223
~ListWidget()
Definition: resolverecipientspage.cpp:87
Definition: wizardpage.h:48
void setAdditionalRecipientsInfo(const std::vector< GpgME::Key > &recipients)
Definition: resolverecipientspage.cpp:612
QString formatKeyLink(const GpgME::Key &key)
boost::shared_ptr< RecipientPreferences > recipientPreferences() const
Definition: resolverecipientspage.cpp:686
GpgME::Protocol presetProtocol() const
the protocol set before the dialog is shown.
Definition: resolverecipientspage.cpp:537
ItemWidget(const QString &id, const QString &name, const KMime::Types::Mailbox &mbox, QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: resolverecipientspage.cpp:189
void setRecipients(const std::vector< KMime::Types::Mailbox > &recipients, const std::vector< KMime::Types::Mailbox > &encryptToSelfRecipients)
Definition: resolverecipientspage.cpp:621
Definition: classify.h:58
Definition: commands/command.h:46
GpgME::Key selectedCertificate(const QString &id) const
Definition: resolverecipientspage.cpp:136
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 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:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.