kgpg
KGpgItemModel Class Reference
#include <kgpgitemmodel.h>

Detailed Description
Definition at line 37 of file kgpgitemmodel.h.
Public Slots | |
| KGpgGroupNode * | addGroup (const QString &name, const KGpgKeyNodeList &keys) |
| void | changeGroup (KGpgGroupNode *node, const QList< KGpgNode * > &keys) |
| void | delNode (const KGpgNode *node) |
| void | invalidateIndexes (KGpgNode *nd) |
| QModelIndex | nodeIndex (KGpgNode *node) |
| void | refreshGroups () |
| void | refreshKey (KGpgKeyNode *nd) |
| void | refreshKey (const QString &id) |
| void | refreshKeys (KGpgKeyNodeList keys) |
| void | refreshKeys (const QStringList &ids=QStringList()) |
| void | refreshTrust (const KgpgCore::KgpgKeyTrust &trust, const QColor &color) |
| void | setDefaultKey (const QString &def) |
Public Member Functions | |
| virtual int | columnCount (const QModelIndex &) const |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| KGpgRootNode * | getRootNode () const |
| virtual bool | hasChildren (const QModelIndex &parent) const |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| KGpgItemModel (QObject *parent=0) | |
| KGpgNode * | nodeForIndex (const QModelIndex &index) const |
| virtual QModelIndex | parent (const QModelIndex &child) const |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| QString | statusCountMessage () const |
| virtual | ~KGpgItemModel () |
Protected Member Functions | |
| void | fixPersistentIndexes () |
| bool | isDefaultKey (const KGpgNode *node) const |
| void | refreshKeyIds (KGpgKeyNodeList &nodes) |
| void | refreshKeyIds (const QStringList &id) |
| int | rowForNode (KGpgNode *node) const |
| void | updateNodeTrustColor (KGpgExpandableNode *node, const KgpgCore::KgpgKeyTrust &trust, const QColor &color) |
Constructor & Destructor Documentation
| KGpgItemModel::KGpgItemModel | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 26 of file kgpgitemmodel.cpp.
| KGpgItemModel::~KGpgItemModel | ( | ) | [virtual] |
Definition at line 33 of file kgpgitemmodel.cpp.
Member Function Documentation
| KGpgGroupNode * KGpgItemModel::addGroup | ( | const QString & | name, | |
| const KGpgKeyNodeList & | keys | |||
| ) | [slot] |
Definition at line 205 of file kgpgitemmodel.cpp.
| void KGpgItemModel::changeGroup | ( | KGpgGroupNode * | node, | |
| const QList< KGpgNode * > & | keys | |||
| ) | [slot] |
Definition at line 227 of file kgpgitemmodel.cpp.
| virtual int KGpgItemModel::columnCount | ( | const QModelIndex & | ) | const [inline, virtual] |
Definition at line 55 of file kgpgitemmodel.h.
| QVariant KGpgItemModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Definition at line 90 of file kgpgitemmodel.cpp.
| void KGpgItemModel::delNode | ( | const KGpgNode * | node | ) | [slot] |
Definition at line 218 of file kgpgitemmodel.cpp.
| void KGpgItemModel::fixPersistentIndexes | ( | ) | [protected] |
Definition at line 400 of file kgpgitemmodel.cpp.
| KGpgRootNode * KGpgItemModel::getRootNode | ( | ) | const |
Definition at line 184 of file kgpgitemmodel.cpp.
| bool KGpgItemModel::hasChildren | ( | const QModelIndex & | parent | ) | const [virtual] |
Definition at line 79 of file kgpgitemmodel.cpp.
| QVariant KGpgItemModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Definition at line 260 of file kgpgitemmodel.cpp.
| QModelIndex KGpgItemModel::index | ( | int | row, | |
| int | column, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const [virtual] |
Definition at line 39 of file kgpgitemmodel.cpp.
| void KGpgItemModel::invalidateIndexes | ( | KGpgNode * | nd | ) | [slot] |
Definition at line 429 of file kgpgitemmodel.cpp.
| bool KGpgItemModel::isDefaultKey | ( | const KGpgNode * | node | ) | const [protected] |
Definition at line 394 of file kgpgitemmodel.cpp.
| KGpgNode * KGpgItemModel::nodeForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 170 of file kgpgitemmodel.cpp.
| QModelIndex KGpgItemModel::nodeIndex | ( | KGpgNode * | node | ) | [slot] |
Definition at line 301 of file kgpgitemmodel.cpp.
| QModelIndex KGpgItemModel::parent | ( | const QModelIndex & | child | ) | const [virtual] |
Definition at line 50 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshGroups | ( | ) | [slot] |
Definition at line 379 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshKey | ( | KGpgKeyNode * | nd | ) | [slot] |
Definition at line 314 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshKey | ( | const QString & | id | ) | [slot] |
Definition at line 324 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshKeyIds | ( | KGpgKeyNodeList & | nodes | ) | [protected] |
Definition at line 368 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshKeyIds | ( | const QStringList & | id | ) | [protected] |
Definition at line 342 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshKeys | ( | KGpgKeyNodeList | keys | ) | [slot] |
Definition at line 330 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshKeys | ( | const QStringList & | ids = QStringList() |
) | [slot] |
Definition at line 336 of file kgpgitemmodel.cpp.
| void KGpgItemModel::refreshTrust | ( | const KgpgCore::KgpgKeyTrust & | trust, | |
| const QColor & | color | |||
| ) | [slot] |
Definition at line 444 of file kgpgitemmodel.cpp.
| int KGpgItemModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 68 of file kgpgitemmodel.cpp.
| int KGpgItemModel::rowForNode | ( | KGpgNode * | node | ) | const [protected] |
Definition at line 178 of file kgpgitemmodel.cpp.
| void KGpgItemModel::setDefaultKey | ( | const QString & | def | ) | [slot] |
Definition at line 281 of file kgpgitemmodel.cpp.
| QString KGpgItemModel::statusCountMessage | ( | ) | const |
Definition at line 190 of file kgpgitemmodel.cpp.
| void KGpgItemModel::updateNodeTrustColor | ( | KGpgExpandableNode * | node, | |
| const KgpgCore::KgpgKeyTrust & | trust, | |||
| const QColor & | color | |||
| ) | [protected] |
Definition at line 450 of file kgpgitemmodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference