libkpgp
kpgpui.cpp
Go to the documentation of this file.
482 childItem->setText( 1, i18n( "Fingerprint: %1" , beautifyFingerprint( key->primaryFingerprint() ) ) );
483 if( primaryUserID->isSelected() && mListView->selectionMode() == QTreeWidget::ExtendedSelection ) {
489 if( primaryUserID->isSelected() && mListView->selectionMode() == QTreeWidget::ExtendedSelection ) {
500 if( primaryUserID->isSelected() && mListView->selectionMode() == QTreeWidget::ExtendedSelection ) {
1301 return pgp->selectPublicKeys( mDialogCaption, mDialogMessage, mKeys, QString(), mAllowedKeys );
1387 keyidsL->setText( QLatin1String("0x") + keyIDs[0].toStringList().join( QLatin1String("\n0x") ) );
1472 encrPrefCombo->addItem( i18nc( "@item:inlistbox", "Encrypt Whenever Encryption is Possible") );
KeyApprovalDialog(const QStringList &, const QVector< KeyIDList > &, const int allowedKeys, QWidget *parent=0)
Definition: kpgpui.cpp:1330
Definition: kpgp.h:238
Definition: kpgp.h:59
bool isValidEncryptionKey() const
Returns true if the key is a valid encryption key.
Definition: kpgpkey.cpp:187
Definition: kpgp.h:60
void clear()
Validity
These are the possible validity values for a PGP user id and for the owner trust. ...
Definition: kpgpkey.h:32
void setHeight(int height)
void setWidget(QWidget *widget)
QString toUpper() const
void slotDialogButtonClicked()
Definition: kpgpui.cpp:1240
int width() const
bool isSelected() const
void setSelectionMode(QAbstractItemView::SelectionMode mode)
virtual void slotSelectionChanged()
Definition: kpgpui.cpp:862
Definition: kpgp.h:57
iterator begin()
QTreeWidgetItem * child(int index) const
Definition: kpgp.h:238
void addButton(QAbstractButton *button)
void scrollToItem(const QTreeWidgetItem *item, QAbstractItemView::ScrollHint hint)
bool isMultipleKeysEnabled() const
Definition: kpgpui.cpp:1266
Definition: kpgp.h:54
virtual void slotSearch(const QString &text)
Definition: kpgpui.cpp:1079
QString escape(const QString &str)
QByteArray & fill(char ch, int size)
void readPublicKeys(bool reread=false)
Reads the list of public keys if necessary or if reread is true.
Definition: kpgp.cpp:1562
void setMinimumWidth(int minw)
Definition: kpgpkey.h:39
void insert(int i, const T &value)
bool isEmpty() const
Definition: kpgpkey.h:38
QPoint mapToGlobal(const QPoint &pos) const
void setEncryptionPreference(const QString &address, const EncryptPref pref)
Writes the given encryption preference for the given address to the config file.
Definition: kpgp.cpp:1867
QWidget * viewport() const
virtual void setData(int column, int role, const QVariant &value)
iterator erase(iterator pos)
int height() const
KeySelectionDialog(const KeyList &keyList, const QString &title, const QString &text=QString(), const KeyIDList &keyIds=KeyIDList(), const bool rememberChoice=false, const unsigned int allowedKeys=AllKeys, const bool extendedSelection=false, QWidget *parent=0)
allowedKeys: see kpgp.h
Definition: kpgpui.cpp:284
Definition: kpgp.h:238
void setSortIndicatorShown(bool show)
virtual void virtual_hook(int, void *)
Definition: kpgpui.cpp:1679
Definition: kpgpui.h:203
KeyID selectSecretKey(const QString &title, const QString &text=QString(), const KeyID &keyId=KeyID())
Shows a key selection dialog with all secret keys and the given title and the (optional) text...
Definition: kpgp.cpp:974
void clear()
QString join(const QString &separator) const
bool canEncrypt() const
Returns true if the key can be used to encrypt data.
Definition: kpgpkey.h:712
Key * rereadKey(const KeyID &keyID, const bool readTrust=true)
Rereads the key data for the given key and returns the reread data.
Definition: kpgp.cpp:866
int length() const
void setStorePassPhrase(bool)
store passphrase in pgp object Problem: passphrase stays in memory.
Definition: kpgp.cpp:180
void setFrameStyle(int style)
virtual KeyID key() const
Returns the key ID of the selected key in single selection mode.
Definition: kpgpui.cpp:429
void setEditable(bool editable)
void setDialogMessage(const QString &message)
Definition: kpgpui.cpp:1262
void setIcon(const QIcon &icon)
time_t creationDate() const
Returns the creation date of the primary subkey.
Definition: kpgpkey.h:822
int size() const
void clear()
bool isNull() const
int indexOf(const T &value, int from) const
void addItem(const QString &text, const QVariant &userData)
width
void setBuddy(QWidget *buddy)
void setBold(bool enable)
int indexIn(const QString &str, int offset, CaretMode caretMode) const
KeyRequester(QWidget *parent=0, bool multipleKeys=false, unsigned int allowedKeys=AllKeys, const char *name=0)
Definition: kpgpui.cpp:1176
Definition: kpgp.h:62
virtual QSizeF documentSize() const =0
CipherTextDialog(const QByteArray &text, const QByteArray &charset=0, QWidget *parent=0)
Definition: kpgpui.cpp:1622
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
Definition: kpgp.h:75
void resize(int size)
KeyIDList selectPublicKeys(const QString &title, const QString &text=QString(), const KeyIDList &oldKeyIds=KeyIDList(), const QString &address=QString(), const unsigned int allowedKeys=AllKeys)
Shows a key selection dialog with all public keys and the given title and the (optional) text...
Definition: kpgp.cpp:1029
bool empty() const
virtual void slotCheckSelection(QTreeWidgetItem *=0)
Definition: kpgpui.cpp:878
Definition: kpgp.h:238
Definition: kpgp.h:238
void setFocus()
Definition: kpgp.h:55
void setDialogCaption(const QString &caption)
Definition: kpgpui.cpp:1258
void slotChangeEncryptionKey(int)
Definition: kpgpui.cpp:1519
virtual ~KeySelectionDialog()
Definition: kpgpui.cpp:415
void setWidth(int width)
bool isEmpty() const
void setObjectName(const QString &name)
bool isEmpty() const
KeyIDList keyRequestHook(Module *pgp) const
Reimplement this to return a list of selected keys.
Definition: kpgpui.cpp:1299
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
Definition: kpgpkey.h:50
QTreeWidgetItem * itemAt(const QPoint &p) const
enum Kpgp::Module::PGPType pgpType
QAbstractTextDocumentLayout * documentLayout() const
typedef Iterator
Definition: kpgpkey.h:35
T & first()
void setText(const QString &)
void setAllColumnsShowFocus(bool enable)
QTreeWidgetItem * currentItem() const
Definition: kpgpkey.h:57
KeyIDList keyRequestHook(Module *pgp) const
Reimplement this to return a list of selected keys.
Definition: kpgpui.cpp:1315
QString primaryUserID() const
Returns the primary user ID or a null string if there are no user IDs.
Definition: kpgpkey.h:777
QScrollBar * verticalScrollBar() const
void setMargin(int margin)
SecretKeyRequester(QWidget *parent=0, bool multipleKeys=false, unsigned int allowedKeys=SecretKeys, const char *name=0)
Definition: kpgpui.cpp:1304
void setSizePolicy(QSizePolicy)
void sortItems(int column, Qt::SortOrder order)
void setHidden(bool hide)
iterator end()
void setMultipleKeysEnabled(bool enable)
Definition: kpgpui.cpp:1270
QByteArray toLocal8Bit() const
QTextDocument * document() const
Definition: kpgpkey.h:37
font
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
void setWidgetResizable(bool resizable)
EncryptPref encryptionPreference(const QString &address)
Reads the encryption preference for the given address from the config file.
Definition: kpgp.cpp:1855
void stop()
QTreeWidgetItem * parent() const
QList< QTreeWidgetItem * > selectedItems() const
void setCurrentItem(QTreeWidgetItem *item)
void setChecked(bool)
void setHeaderLabels(const QStringList &labels)
bool isValidSigningKey() const
Returns true if the key is a valid signing key.
Definition: kpgpkey.cpp:194
void setSortingEnabled(bool enable)
void setExpanded(bool expand)
void changed()
void setWhatsThis(const QString &)
Definition: kpgp.h:58
Definition: kpgpkey.h:46
Definition: kpgpkey.h:51
int width() const
QString mid(int position, int n) const
QDate date() const
QFontMetrics fontMetrics() const
QByteArray primaryFingerprint() const
Returns the fingerprint of the primary key or a null string if there are no subkeys.
Definition: kpgpkey.h:797
virtual KeyIDList keyRequestHook(Module *pgp) const =0
Reimplement this to return a list of selected keys.
void addStretch(int stretch)
void setSelected(bool select)
Definition: kpgp.h:56
const QChar at(int position) const
QTextCodec * codecForName(const QByteArray &name)
typedef ConstIterator
int height() const
void setText(int column, const QString &text)
void setCurrentIndex(int index)
PublicKeyRequester(QWidget *parent=0, bool multipleKeys=false, unsigned int allowedKeys=PublicKeys, const char *name=0)
Definition: kpgpui.cpp:1288
Definition: kpgpkey.h:48
Definition: kpgpkey.h:36
int length() const
void setMinimumHeight(int minh)
Definition: kpgpkey.h:47
char * data()
Definition: kpgpkey.h:34
QString fromLatin1(const char *str, int size)
void start(int msec)
QHeaderView * header() const
Definition: kpgpkey.h:49
void addItems(const QStringList &texts)
Definition: kpgp.h:238
virtual void virtual_hook(int, void *)
Definition: kpgpui.cpp:1683
void setReadOnly(bool ro)
QTreeWidgetItem * topLevelItem(int index) const
void setToolTip(const QString &)
void changed()
QStringList toStringList() const
Converts from a KeyIDList to a QStringList.
Definition: kpgpkey.cpp:30
void setRootIsDecorated(bool show)
Key * publicKey(const KeyID &keyID)
Returns the public key with the given key ID or null if no matching key is found. ...
Definition: kpgp.cpp:786
topLevelItemCount
void setStretchLastSection(bool stretch)
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int size() const
void setShowKeyApprovalDlg(const bool flag)
Definition: kpgp.h:450
void setText(const QString &text)
int childCount() const
void readSecretKeys(bool reread=false)
Reads the list of secret keys if necessary or if reread is true.
Definition: kpgp.cpp:1605
bool exactMatch(const QString &str) const
iterator end()
QString text(int column) const
iterator begin()
void setWordWrap(bool on)
virtual ~SecretKeyRequester()
Definition: kpgpui.cpp:1311
int lineSpacing() const
void setSpacing(int spacing)
QString toUnicode(const QByteArray &a) const
PassphraseDialog(QWidget *parent=0, const QString &caption=QString(), const QString &keyID=QString())
Definition: kpgpui.cpp:70
void addLayout(QLayout *layout, int stretch)
void setTime_t(uint seconds)
void setAutoDefault(bool)
virtual ~PublicKeyRequester()
Definition: kpgpui.cpp:1295
QTreeWidgetItem * takeChild(int index)
void setSingleShot(bool singleShot)
KeyID primaryKeyID() const
Returns the key ID of the primary key or a null string if there are no subkeys.
Definition: kpgpkey.h:787
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:22 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:32:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.