libkleo
keyfiltermanager.cpp
Go to the documentation of this file.
184 const shared_ptr<KeyFilter> & KeyFilterManager::filterMatching( const Key & key, KeyFilter::MatchContexts contexts ) const {
194 std::vector< shared_ptr<KeyFilter> > KeyFilterManager::filtersMatching( const Key & key, KeyFilter::MatchContexts contexts ) const {
204 struct ByDecreasingSpecificity : std::binary_function<shared_ptr<KeyFilter>,shared_ptr<KeyFilter>,bool> {
217 const QStringList groups = config->groupList().filter( QRegExp( QLatin1String("^Key Filter #\\d+$") ) );
241 const shared_ptr<KeyFilter> & KeyFilterManager::fromModelIndex( const QModelIndex & idx ) const {
256 > pair = std::equal_range( d->filters.begin(), d->filters.end(), kf, ByDecreasingSpecificity() );
297 static QColor get_color( const std::vector< shared_ptr<KeyFilter> > & filters, const Key & key, QColor (KeyFilter::*fun)() const ) {
308 static QString get_string( const std::vector< shared_ptr<KeyFilter> > & filters, const Key & key, QString (KeyFilter::*fun)() const ) {
static QColor get_color(const std::vector< shared_ptr< KeyFilter > > &filters, const Key &key, QColor(KeyFilter::*fun)() const )
Definition: keyfiltermanager.cpp:297
const boost::shared_ptr< KeyFilter > & fromModelIndex(const QModelIndex &mi) const
Definition: keyfiltermanager.cpp:241
virtual QString id() const =0
virtual QColor bgColor() const =0
FontDescription resolve(const FontDescription &other) const
Definition: kconfigbasedkeyfilter.cpp:109
Definition: keyfilter.h:60
QIcon icon(const GpgME::Key &key) const
Definition: keyfiltermanager.cpp:327
virtual FontDescription fontDesription() const =0
static CryptoBackendFactory * instance()
Definition: cryptobackendfactory.cpp:102
virtual QString icon() const =0
Definition: keyfiltermanager.h:57
QModelIndex toModelIndex(const boost::shared_ptr< KeyFilter > &kf) const
Definition: keyfiltermanager.cpp:250
const boost::shared_ptr< KeyFilter > & keyFilterByID(const QString &id) const
Definition: keyfiltermanager.cpp:231
QAbstractItemModel * model() const
Definition: keyfiltermanager.cpp:227
static KeyFilterManager * instance()
Definition: keyfiltermanager.cpp:178
Value accumulate_transform_if(InputIterator first, InputIterator last, UnaryFunction map, UnaryPredicate pred, const Value &value=Value())
Definition: stl_util.h:164
QColor fgColor(const GpgME::Key &key) const
Definition: keyfiltermanager.cpp:323
QColor bgColor(const GpgME::Key &key) const
Definition: keyfiltermanager.cpp:319
QFont font(const GpgME::Key &key, const QFont &baseFont) const
Definition: keyfiltermanager.cpp:290
std::vector< boost::shared_ptr< KeyFilter > > filtersMatching(const GpgME::Key &key, KeyFilter::MatchContexts contexts) const
Definition: keyfiltermanager.cpp:194
Definition: keyfilter.h:80
static std::vector< shared_ptr< KeyFilter > > defaultFilters()
Definition: keyfiltermanager.cpp:135
static QString get_string(const std::vector< shared_ptr< KeyFilter > > &filters, const Key &key, QString(KeyFilter::*fun)() const )
Definition: keyfiltermanager.cpp:308
KeyFilterManager(QObject *parent=0)
Definition: keyfiltermanager.cpp:161
virtual bool matches(const GpgME::Key &key, MatchContexts ctx) const =0
virtual QColor fgColor() const =0
const boost::shared_ptr< KeyFilter > & filterMatching(const GpgME::Key &key, KeyFilter::MatchContexts contexts) const
Definition: keyfiltermanager.cpp:184
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 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 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.