kgpg
selectpublickeydialog.cpp
Go to the documentation of this file.
38 KgpgSelectPublicKeyDlg::KgpgSelectPublicKeyDlg(QWidget *parent, KGpgItemModel *model, const KShortcut &goDefaultKey, const bool hideasciioption, const KUrl::List &files)
60 setCaption(i18np("Select Public Key for %2 and one more file", "Select Public Key for %2 and %1 more files", files.count() - 1, files.first().fileName()));
84 m_keyslist->setWhatsThis(i18n("<b>Public keys list</b>: select the key that will be used for encryption."));
85 connect(m_searchlineedit, SIGNAL(textChanged(QString)), iproxy, SLOT(setFilterFixedString(QString)));
97 m_cbarmor->setWhatsThis(i18n("<b>ASCII encryption</b>: makes it possible to open the encrypted file/message in a text editor"));
102 m_cbuntrusted->setWhatsThis(i18n("<b>Allow encryption with untrusted keys</b>: when you import a public key, it is usually "
103 "marked as untrusted and you cannot use it unless you sign it in order to make it 'trusted'. Checking this "
109 m_cbhideid->setWhatsThis(i18n("<b>Hide user ID</b>: Do not put the keyid into encrypted packets. This option hides the receiver "
110 "of the message and is a countermeasure against traffic analysis. It may slow down the decryption process because "
114 m_cbsymmetric->setWhatsThis(i18n("<b>Symmetrical encryption</b>: encryption does not use keys. You just need to give a password "
131 m_customoptions->setWhatsThis(i18n("<b>Custom option</b>: for experienced users only, allows you to enter a gpg command line option, like: '--armor'"));
143 connect(m_keyslist->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(slotSelectionChanged()));
240 m_keyslist->selectionModel()->setCurrentIndex(pidx, QItemSelectionModel::Clear | QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: selectkeyproxymodel.cpp:81
Definition: kgpgitemmodel.h:44
void setSelectionMode(QAbstractItemView::SelectionMode mode)
QStringList selectedKeys() const
Definition: selectpublickeydialog.cpp:156
QItemSelectionModel * selectionModel() const
void resizeColumnsToContents()
const KUrl::List & getFiles() const
return the files passed in the constructor
Definition: selectpublickeydialog.cpp:198
filter model to select a public key for encryption
Definition: selectkeyproxymodel.h:30
KgpgSelectPublicKeyDlg(QWidget *parent, KGpgItemModel *model, const KShortcut &goDefaultKey=KShortcut(QKeySequence(Qt::CTRL+Qt::Key_Home)), const bool hideasciioption=false, const KUrl::List &files=KUrl::List())
Definition: selectpublickeydialog.cpp:38
void setSortingEnabled(bool enable)
void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior)
QString getCustomOptions() const
Definition: selectpublickeydialog.cpp:181
void setBuddy(QWidget *buddy)
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void setModel(QAbstractItemModel *model)
void setLayout(QLayout *layout)
QModelIndexList selectedIndexes() const
bool hasSelection() const
void setKeyModel(KGpgItemModel *)
Definition: selectkeyproxymodel.cpp:37
static QString customEncryptionOptions()
Get Custom encryption options.
Definition: kgpgsettings.h:98
void setShowUntrusted(const bool b)
Definition: selectkeyproxymodel.cpp:170
void setMargin(int margin)
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
static bool allowCustomEncryptionOptions()
Get Allow custom encryption options.
Definition: kgpgsettings.h:117
KGpgKeyNode * findKey(const QString &keyId)
Find a key node with the given id.
Definition: KGpgRootNode.cpp:118
void setChecked(bool)
void setWhatsThis(const QString &)
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
static bool allowUntrustedKeys()
Get Allow encryption with untrusted keys.
Definition: kgpgsettings.h:193
int column() const
QModelIndex nodeIndex(KGpgNode *node, const int column=0)
Definition: kgpgitemmodel.cpp:406
bool getSymmetric() const
Definition: selectpublickeydialog.cpp:176
void setCurrentIndex(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
void setDisabled(bool disable)
bool getUntrusted() const
Definition: selectpublickeydialog.cpp:188
void setSpacing(int spacing)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 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:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.