kgpg
keylistproxymodel.cpp
Go to the documentation of this file.
55 KeyListProxyModelPrivate::KeyListProxyModelPrivate(KeyListProxyModel *parent, const KeyListProxyModel::DisplayMode mode)
157 KeyListProxyModelPrivate::dataSingleColumn(const QModelIndex &index, int role, const KGpgNode *node) const
214 KeyListProxyModelPrivate::dataMultiColumn(const QModelIndex &index, int role, const KGpgNode *node) const
273 KeyListProxyModelPrivate::lessThan(const KGpgNode *left, const KGpgNode *right, const int &column) const
290 bool test1 = (left->getType() & ITYPE_PUBLIC) && !(left->getType() & ITYPE_SECRET); // only a public key
291 bool test2 = (right->getType() & ITYPE_PUBLIC) && !(right->getType() & ITYPE_SECRET); // only a public key
318 KeyListProxyModelPrivate::nodeLessThan(const KGpgNode *left, const KGpgNode *right, const int &column) const
325 if (left->getName().startsWith(QLatin1Char( '[' )) && !right->getName().startsWith(QLatin1Char( '[' )))
327 else if (!left->getName().startsWith(QLatin1Char( '[' )) && right->getName().startsWith(QLatin1Char( '[' )))
329 else if (left->getName().startsWith(QLatin1Char( '[' )) && right->getName().startsWith(QLatin1Char( '[' )))
Definition: kgpgitemmodel.h:44
KGpgExpandableNode * getParentKeyNode() const
Returns the parent node in the key hierarchy.
Definition: KGpgNode.cpp:330
virtual ~KeyListProxyModel()
Definition: keylistproxymodel.cpp:241
virtual unsigned int getEncryptionKeySize() const
Returns the size of the first encryption subkey.
Definition: KGpgGroupMemberNode.cpp:89
void setEncryptionKeyFilter(bool b)
show only keys capable of encryption
Definition: keylistproxymodel.cpp:475
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: keylistproxymodel.cpp:484
static QString reverseListAndJoinWithChar(const QStringList &list, const QChar &separator)
Reverses the list's order (this modifies the list) and returns a string containing the reversed list'...
Definition: keylistproxymodel.cpp:72
void setKeyModel(KGpgItemModel *)
Definition: keylistproxymodel.cpp:253
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Definition: keylistproxymodel.cpp:262
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
virtual unsigned int getSignKeySize() const
Returns the size of the signing key.
Definition: KGpgGroupMemberNode.cpp:81
void setTrustFilter(const KgpgCore::KgpgKeyTrustFlag t)
set the minimum trust level to be shown
Definition: keylistproxymodel.cpp:466
virtual QString getSize() const
Returns a string describing the size of this object.
Definition: KGpgNode.cpp:288
virtual bool hasChildren(const QModelIndex &idx) const
Definition: keylistproxymodel.cpp:247
bool canEncrypt() const
return if this key can be used for encryption
Definition: KGpgKeyNode.cpp:349
int idLength() const
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: keylistproxymodel.cpp:584
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: keylistproxymodel.cpp:561
void setIdLength(const int length)
Definition: keylistproxymodel.cpp:549
virtual unsigned int getEncryptionKeySize() const
Returns the size of the first encryption subkey.
Definition: KGpgKeyNode.cpp:199
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
virtual unsigned int getSignKeySize() const
Returns the size of the signing key.
Definition: KGpgKeyNode.cpp:193
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: keylistproxymodel.cpp:384
Definition: keylistproxymodel.h:30
Definition: kgpgsettings.h:13
void setOnlySecret(const bool b)
set if only secret keys should be shown
Definition: keylistproxymodel.cpp:444
KeyListProxyModel(QObject *parent=0, const DisplayMode mode=MultiColumn)
Definition: keylistproxymodel.cpp:232
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: kgpgitemmodel.cpp:230
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: keylistproxymodel.cpp:510
QModelIndex nodeIndex(KGpgNode *node)
Definition: keylistproxymodel.cpp:492
void setPreviewSize(const int pixel)
Definition: keylistproxymodel.cpp:500
trust value unknown (i.e. no entry in gpg's trust database)
Definition: kgpgkey.h:59
void settingsChanged()
call this when the settings have changed
Definition: keylistproxymodel.cpp:453
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:51 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 23:07:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.