kgpg
kgpgitemmodel.cpp
Go to the documentation of this file.
276 return i18nc("%1 = something like 7 keys, %2 = something like 2 groups", "%1, %2", keyString, groupString);
373 case KEYCOLUMN_EMAIL: return QString(i18nc("@title:column Title of a column of emails", "Email"));
540 KGpgItemModel::updateNodeTrustColor(KGpgExpandableNode *node, const KgpgCore::KgpgKeyTrust trust, const QColor &color)
546 emit dataChanged(createIndex(i, KEYCOLUMN_TRUST, child), createIndex(i, KEYCOLUMN_TRUST, child));
bool hasIndex(int row, int column, const QModelIndex &parent) const
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
void changePersistentIndex(const QModelIndex &from, const QModelIndex &to)
KGpgExpandableNode * getParentKeyNode() const
Returns the parent node in the key hierarchy.
Definition: KGpgNode.cpp:330
virtual const KGpgNode::List & getChildren() const
Definition: KGpgExpandableNode.cpp:71
bool isDefaultKey(const KGpgNode *node) const
Definition: kgpgitemmodel.cpp:515
virtual int getChildIndex(KGpgNode *node) const
Returns the index for a given child node.
Definition: KGpgExpandableNode.cpp:77
virtual QString getSignCount() const
Return the number of signatures of the primary user id.
Definition: KGpgKeyNode.cpp:166
void updateNodeTrustColor(KGpgExpandableNode *node, const KgpgCore::KgpgKeyTrust trust, const QColor &color)
Definition: kgpgitemmodel.cpp:540
KGpgGroupNode * addGroup(const QString &name, const KGpgKeyNode::List &keys)
Definition: kgpgitemmodel.cpp:281
const T & at(int i) const
const QString & getFingerprint() const
Definition: KGpgOrphanNode.cpp:81
static QString statusCountMessageString(const unsigned int keys, const unsigned int groups)
Definition: kgpgitemmodel.cpp:265
void refreshTrust(const KgpgCore::KgpgKeyTrust trust, const QColor &color)
Definition: kgpgitemmodel.cpp:534
virtual bool hasChildren(const QModelIndex &parent) const
Definition: kgpgitemmodel.cpp:84
virtual KGpgNode * getChild(const int index) const
Returns the child node at the given index.
Definition: KGpgExpandableNode.cpp:41
QModelIndexList persistentIndexList() const
void clear()
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: kgpgitemmodel.cpp:73
void invalidateIndexes(KGpgNode *nd)
Definition: kgpgitemmodel.cpp:521
void setBold(bool enable)
void beginResetModel()
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
bool isValid() const
int count(const T &value) const
void append(const T &value)
KGpgKeyNode * findKeyNode(const QString &id) const
Definition: kgpgitemmodel.cpp:238
virtual QString getSize() const
Returns a string describing the size of this object.
Definition: KGpgNode.cpp:288
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
static QColor colorUltimate()
Get Color used for ultimately trusted keys.
Definition: kgpgsettings.h:801
bool isEmpty() const
bool isEmpty() const
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void * internalPointer() const
void refreshKeyIds(const QStringList &id)
Definition: kgpgitemmodel.cpp:447
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kgpgitemmodel.cpp:44
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kgpgitemmodel.cpp:95
QString statusCountMessage() const
Definition: kgpgitemmodel.cpp:256
void changeGroup(KGpgGroupNode *node, const KGpgNode::List &keys)
Definition: kgpgitemmodel.cpp:306
virtual KGpgGroupNode * getParentKeyNode() const
Definition: KGpgGroupMemberNode.cpp:97
static QStringList readGroups()
get all groups from GnuPG config file
Definition: KGpgGroupNode.cpp:255
QString right(int n) const
QModelIndex createIndex(int row, int column, void *ptr) const
The abstract base class for all classes representing keyring data.
Definition: KGpgNode.h:42
trust value undefined (i.e. you did not set a trust level)
Definition: kgpgkey.h:59
KGpgKeyNode * findKey(const QString &keyId)
Find a key node with the given id.
Definition: KGpgRootNode.cpp:118
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
void addKeys(const QStringList &ids=QStringList())
Definition: KGpgRootNode.cpp:64
void beginInsertRows(const QModelIndex &parent, int first, int last)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: kgpgitemmodel.cpp:363
The abstract base class for all classes that may have child objects.
Definition: KGpgExpandableNode.h:34
Definition: kgpgsettings.h:13
QDate date() const
int findKeyRow(const QString &keyId)
Return the child number of the key with the given id.
Definition: KGpgRootNode.cpp:129
void refreshKeys(const QStringList &ids=QStringList())
Definition: kgpgitemmodel.cpp:441
virtual bool wasExpanded() const
check if there are any child nodes present in memory
Definition: KGpgExpandableNode.cpp:64
static QColor colorMarginal()
Get Color used for marginally trusted keys.
Definition: kgpgsettings.h:820
typedef ConstIterator
virtual KGpgNode * getChild(const int index) const
Returns the child node at the given index.
Definition: KGpgNode.cpp:268
int column() const
int length() const
KGpgNode * nodeForIndex(const QModelIndex &index) const
Definition: kgpgitemmodel.cpp:230
QModelIndex nodeIndex(KGpgNode *node, const int column=0)
Definition: kgpgitemmodel.cpp:406
void deleteFromGroup(KGpgGroupNode *group, KGpgGroupMemberNode *member)
Definition: kgpgitemmodel.cpp:348
trust value unknown (i.e. no entry in gpg's trust database)
Definition: kgpgkey.h:60
const_iterator constEnd() const
void endRemoveRows()
this key has highest possible level of trust (e.g. your own secret keys)
Definition: kgpgkey.h:64
const_iterator constBegin() const
void endResetModel()
QObject * parent() const
virtual int columnCount(const QModelIndex &) const
Definition: kgpgitemmodel.h:62
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.