libkleo
keyfiltermanager.cpp
Go to the documentation of this file.
186 const shared_ptr<KeyFilter> & KeyFilterManager::filterMatching( const Key & key, KeyFilter::MatchContexts contexts ) const {
196 std::vector< shared_ptr<KeyFilter> > KeyFilterManager::filtersMatching( const Key & key, KeyFilter::MatchContexts contexts ) const {
206 struct ByDecreasingSpecificity : std::binary_function<shared_ptr<KeyFilter>,shared_ptr<KeyFilter>,bool> {
219 const QStringList groups = config->groupList().filter( QRegExp( QLatin1String("^Key Filter #\\d+$") ) );
243 const shared_ptr<KeyFilter> & KeyFilterManager::fromModelIndex( const QModelIndex & idx ) const {
258 > pair = std::equal_range( d->filters.begin(), d->filters.end(), kf, ByDecreasingSpecificity() );
299 static QColor get_color( const std::vector< shared_ptr<KeyFilter> > & filters, const Key & key, QColor (KeyFilter::*fun)() const ) {
310 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:299
const boost::shared_ptr< KeyFilter > & fromModelIndex(const QModelIndex &mi) const
Definition: keyfiltermanager.cpp:243
virtual QString id() const =0
virtual QColor bgColor() const =0
FontDescription resolve(const FontDescription &other) const
Definition: kconfigbasedkeyfilter.cpp:111
Definition: keyfilter.h:60
QIcon icon(const GpgME::Key &key) const
Definition: keyfiltermanager.cpp:329
virtual FontDescription fontDesription() const =0
static CryptoBackendFactory * instance()
Definition: cryptobackendfactory.cpp:102
virtual QString icon() const =0
Definition: keyfiltermanager.h:59
QModelIndex toModelIndex(const boost::shared_ptr< KeyFilter > &kf) const
Definition: keyfiltermanager.cpp:252
void reset()
bool isValid() const
bool isEmpty() const
int row() const
const boost::shared_ptr< KeyFilter > & keyFilterByID(const QString &id) const
Definition: keyfiltermanager.cpp:233
QAbstractItemModel * model() const
Definition: keyfiltermanager.cpp:229
QCoreApplication * instance()
void deleteLater()
iterator end()
static KeyFilterManager * instance()
Definition: keyfiltermanager.cpp:180
Value accumulate_transform_if(InputIterator first, InputIterator last, UnaryFunction map, UnaryPredicate pred, const Value &value=Value())
Definition: stl_util.h:166
const QAbstractItemModel * model() const
QColor fgColor(const GpgME::Key &key) const
Definition: keyfiltermanager.cpp:325
QColor bgColor(const GpgME::Key &key) const
Definition: keyfiltermanager.cpp:321
QFont font(const GpgME::Key &key, const QFont &baseFont) const
Definition: keyfiltermanager.cpp:292
std::vector< boost::shared_ptr< KeyFilter > > filtersMatching(const GpgME::Key &key, KeyFilter::MatchContexts contexts) const
Definition: keyfiltermanager.cpp:196
Definition: keyfilter.h:80
static std::vector< shared_ptr< KeyFilter > > defaultFilters()
Definition: keyfiltermanager.cpp:137
static QString get_string(const std::vector< shared_ptr< KeyFilter > > &filters, const Key &key, QString(KeyFilter::*fun)() const )
Definition: keyfiltermanager.cpp:310
QStringList filter(const QString &str, Qt::CaseSensitivity cs) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KeyFilterManager(QObject *parent=0)
Definition: keyfiltermanager.cpp:163
virtual bool matches(const GpgME::Key &key, MatchContexts ctx) const =0
virtual QColor fgColor() const =0
iterator begin()
const boost::shared_ptr< KeyFilter > & filterMatching(const GpgME::Key &key, KeyFilter::MatchContexts contexts) const
Definition: keyfiltermanager.cpp:186
bool isValid() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 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:33:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.