• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kgpg

Public Types | Public Slots | Public Member Functions | Protected Member Functions | Properties | List of all members
KeyListProxyModel Class Reference

#include <keylistproxymodel.h>

Inherits QSortFilterProxyModel.

Public Types

enum  DisplayMode { MultiColumn = 0, SingleColumnIdFirst = 1, SingleColumnIdLast = 2 }
 

Public Slots

void setOnlySecret (const bool b)
 
void settingsChanged ()
 

Public Member Functions

 KeyListProxyModel (QObject *parent=0, const DisplayMode mode=MultiColumn)
 
virtual ~KeyListProxyModel ()
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
KGpgItemModel * getModel () const
 
virtual bool hasChildren (const QModelIndex &idx) const
 
int idLength () const
 
KGpgNode * nodeForIndex (const QModelIndex &index) const
 
QModelIndex nodeIndex (KGpgNode *node)
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setEncryptionKeyFilter (bool b)
 
void setIdLength (const int length)
 
void setKeyModel (KGpgItemModel *)
 
void setPreviewSize (const int pixel)
 
void setTrustFilter (const KgpgCore::KgpgKeyTrustFlag t)
 

Protected Member Functions

virtual bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const
 
virtual bool lessThan (const QModelIndex &left, const QModelIndex &right) const
 

Properties

KeyListProxyModelPrivate *const d_ptr
 
int idLength
 

Detailed Description

Definition at line 30 of file keylistproxymodel.h.

Member Enumeration Documentation

enum KeyListProxyModel::DisplayMode
Enumerator
MultiColumn 
SingleColumnIdFirst 
SingleColumnIdLast 

Definition at line 40 of file keylistproxymodel.h.

Constructor & Destructor Documentation

KeyListProxyModel::KeyListProxyModel ( QObject *  parent = 0,
const DisplayMode  mode = MultiColumn 
)
explicit

Definition at line 232 of file keylistproxymodel.cpp.

KeyListProxyModel::~KeyListProxyModel ( )
virtual

Definition at line 241 of file keylistproxymodel.cpp.

Member Function Documentation

QVariant KeyListProxyModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 510 of file keylistproxymodel.cpp.

bool KeyListProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
protectedvirtual

Definition at line 384 of file keylistproxymodel.cpp.

Qt::ItemFlags KeyListProxyModel::flags ( const QModelIndex &  index) const
virtual

Definition at line 584 of file keylistproxymodel.cpp.

KGpgItemModel * KeyListProxyModel::getModel ( ) const

Definition at line 533 of file keylistproxymodel.cpp.

bool KeyListProxyModel::hasChildren ( const QModelIndex &  idx) const
virtual

Definition at line 247 of file keylistproxymodel.cpp.

int KeyListProxyModel::idLength ( ) const
bool KeyListProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
protectedvirtual

Definition at line 262 of file keylistproxymodel.cpp.

KGpgNode * KeyListProxyModel::nodeForIndex ( const QModelIndex &  index) const

Definition at line 484 of file keylistproxymodel.cpp.

QModelIndex KeyListProxyModel::nodeIndex ( KGpgNode *  node)

Definition at line 492 of file keylistproxymodel.cpp.

bool KeyListProxyModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual

Definition at line 561 of file keylistproxymodel.cpp.

void KeyListProxyModel::setEncryptionKeyFilter ( bool  b)

show only keys capable of encryption

Definition at line 475 of file keylistproxymodel.cpp.

void KeyListProxyModel::setIdLength ( const int  length)

Definition at line 549 of file keylistproxymodel.cpp.

void KeyListProxyModel::setKeyModel ( KGpgItemModel *  md)

Definition at line 253 of file keylistproxymodel.cpp.

void KeyListProxyModel::setOnlySecret ( const bool  b)
slot

set if only secret keys should be shown

Parameters
bnew value

Definition at line 444 of file keylistproxymodel.cpp.

void KeyListProxyModel::setPreviewSize ( const int  pixel)

Definition at line 500 of file keylistproxymodel.cpp.

void KeyListProxyModel::settingsChanged ( )
slot

call this when the settings have changed

Definition at line 453 of file keylistproxymodel.cpp.

void KeyListProxyModel::setTrustFilter ( const KgpgCore::KgpgKeyTrustFlag  t)

set the minimum trust level to be shown

Parameters
ttrust level

This enables filtering by key trust. All keys that have a lower trust than the given value will be hidden.

Definition at line 466 of file keylistproxymodel.cpp.

Property Documentation

KeyListProxyModelPrivate* const KeyListProxyModel::d_ptr

Definition at line 37 of file keylistproxymodel.h.

int KeyListProxyModel::idLength
readwrite

Definition at line 34 of file keylistproxymodel.h.


The documentation for this class was generated from the following files:
  • keylistproxymodel.h
  • keylistproxymodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal