kleopatra
signerresolvepage.cpp
Go to the documentation of this file.
87 return i18nc( "%1=protocol (S/Mime, OpenPGP), %2=certificate", "Sign using %1: %2", Formatting::displayName( p ),
99 AbstractSigningProtocolSelectionWidget::AbstractSigningProtocolSelectionWidget( QWidget* p, Qt::WindowFlags f ) : QWidget( p, f ) {
102 ReadOnlyProtocolSelectionWidget::ReadOnlyProtocolSelectionWidget( QWidget* p, Qt::WindowFlags f ) : AbstractSigningProtocolSelectionWidget( p, f ) {
134 SigningProtocolSelectionWidget::SigningProtocolSelectionWidget( QWidget* parent, Qt::WindowFlags f )
168 for ( std::map<Protocol,QCheckBox*>::const_iterator it = m_buttons.begin(), end = m_buttons.end();
263 return ( q->protocolSelectionUserMutable() || presetProtocols.empty() ) && q->operation() == SignOnly;
282 q->connect( signEncryptGroup, SIGNAL(buttonClicked(int)), q, SLOT(operationButtonClicked(int)) );
342 void SignerResolvePage::setValidator( const boost::shared_ptr<SignerResolvePage::Validator>& validator )
362 void SignerResolvePage::Private::setCertificates( const QMap<GpgME::Protocol, GpgME::Key>& certs )
384 selectCertificatesButton->setEnabled(signingProtocolSelectionWidget->checkedProtocols().size()>0);
420 const bool canSignAndEncrypt = !noSigningPossible && !noEncryptionPossible; bothMutable && presetProtocols != std::vector<Protocol>( 1, CMS );
440 dlg->setAllowedProtocols( QVector<Protocol>::fromStdVector( signingProtocolSelectionWidget->checkedProtocols() ) );
502 void SignerResolvePage::setSignersAndCandidates( const std::vector<KMime::Types::Mailbox> & signers,
555 if ( protocol != CMS && d->signingProtocolSelectionWidget->isProtocolChecked( OpenPGP ) && !d->certificates[OpenPGP].isNull() )
557 if ( protocol != OpenPGP && d->signingProtocolSelectionWidget->isProtocolChecked( CMS ) && !d->certificates[CMS].isNull() )
650 void SignerResolvePage::setSigningPreferences( const boost::shared_ptr<SigningPreferences>& prefs )
QLayout * layout() const
Operation operation() const
Definition: signerresolvepage.cpp:483
void setAsciiArmorEnabled(bool enabled)
Definition: signerresolvepage.cpp:635
boost::shared_ptr< SigningPreferences > signingPreferences() const
Definition: signerresolvepage.cpp:659
bool multipleProtocolsAllowed() const
Definition: signerresolvepage.cpp:407
void setProtocolChecked(GpgME::Protocol protocol, bool checked)
Definition: signerresolvepage.cpp:113
bool isEncryptionUserMutable() const
Definition: signerresolvepage.cpp:600
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
bool protocolSelectionUserMutable() const
Definition: signerresolvepage.cpp:395
void setValidator(const boost::shared_ptr< Validator > &)
Definition: signerresolvepage.cpp:342
void addButton(QAbstractButton *button)
boost::shared_ptr< Validator > validator() const
Definition: signerresolvepage.cpp:349
SigningProtocolSelectionWidget(QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: signerresolvepage.cpp:134
void setSigningUserMutable(bool ismutable)
Definition: signerresolvepage.cpp:616
QString displayName(GpgME::Protocol prot)
virtual void setVisible(bool visible)
void setCertificate(GpgME::Protocol protocol, const GpgME::Key &key)
Definition: signerresolvepage.cpp:199
void setRemoveUnencryptedFile(bool remove)
Definition: signerresolvepage.cpp:645
void setTitle(const QString &title)
Definition: wizardpage.cpp:102
void setEncryptionUserMutable(bool ismutable)
Definition: signerresolvepage.cpp:610
bool signingSelected() const
Definition: signerresolvepage.cpp:588
void setExclusive(bool exclusive)
Definition: signerresolvepage.cpp:176
~SignerResolvePage()
Definition: signerresolvepage.cpp:500
bool isNull() const
QList< Key > keys() const
QString formatForComboBox(const GpgME::Key &key)
Definition: formatting.cpp:497
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
std::vector< GpgME::Protocol > selectedProtocolsWithoutSigningCertificate() const
Definition: signerresolvepage.cpp:622
SignerResolvePage(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: signerresolvepage.cpp:489
void userSelectionChanged()
void setMultipleProtocolsAllowed(bool allowed)
Definition: signerresolvepage.cpp:399
void setSignersAndCandidates(const std::vector< KMime::Types::Mailbox > &signers, const std::vector< std::vector< GpgME::Key > > &keys)
Definition: signerresolvepage.cpp:502
bool removeUnencryptedFile() const
Definition: signerresolvepage.cpp:640
Definition: classify.h:49
void setExclusive(bool)
std::vector< GpgME::Key > resolvedSigners() const
Definition: signerresolvepage.cpp:562
bool isEmpty() const
Definition: classify.h:48
void setText(const QString &)
void setMargin(int margin)
void setCertificate(GpgME::Protocol protocol, const GpgME::Key &key)
Definition: signerresolvepage.cpp:205
ReadOnlyProtocolSelectionWidget(QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: signerresolvepage.cpp:102
void push_back(QChar ch)
bool isAsciiArmorEnabled() const
Definition: signerresolvepage.cpp:630
void setChecked(bool)
std::vector< GpgME::Protocol > selectedProtocols() const
Definition: signerresolvepage.cpp:548
void setSigningSelected(bool selected)
Definition: signerresolvepage.cpp:593
void addStretch(int stretch)
void setColumnStretch(int column, int stretch)
void setTitle(const QString &title)
void setSigningPreferences(const boost::shared_ptr< SigningPreferences > &prefs)
Definition: signerresolvepage.cpp:650
void setProtocolChecked(GpgME::Protocol protocol, bool checked)
Definition: signerresolvepage.cpp:152
void setProtocolSelectionUserMutable(bool ismutable)
Definition: signerresolvepage.cpp:388
bool isExclusive() const
Definition: signerresolvepage.cpp:195
void setPresetProtocols(const std::vector< GpgME::Protocol > &protocols)
Definition: signerresolvepage.cpp:537
void setEncryptionSelected(bool selected)
Definition: signerresolvepage.cpp:581
std::vector< GpgME::Key > signingCertificates(GpgME::Protocol protocol=GpgME::UnknownProtocol) const
Definition: signerresolvepage.cpp:552
Definition: signingcertificateselectiondialog.h:49
void setText(const QString &text)
bool isComplete() const
Definition: signerresolvepage.cpp:570
typedef WindowFlags
std::vector< GpgME::Protocol > checkedProtocols() const
Definition: signerresolvepage.cpp:125
bool isProtocolChecked(GpgME::Protocol protocol) const
Definition: signerresolvepage.cpp:159
bool isProtocolChecked(GpgME::Protocol protocol) const
Definition: signerresolvepage.cpp:119
Definition: wizardpage.h:48
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setPresetProtocol(GpgME::Protocol protocol)
Definition: signerresolvepage.cpp:525
bool encryptionSelected() const
Definition: signerresolvepage.cpp:576
void setSpacing(int spacing)
std::vector< GpgME::Protocol > checkedProtocols() const
Definition: signerresolvepage.cpp:166
const T value(const Key &key) const
bool isSigningUserMutable() const
Definition: signerresolvepage.cpp:605
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.