Libkleo
12#include "kleo_export.h"
14#include <Libkleo/KeyFilter>
18#include <gpgme++/global.h>
38class KLEO_EXPORT KeyFilterManager :
public QObject
44 FilterMatchContextsRole,
48 explicit KeyFilterManager(
QObject *parent =
nullptr);
49 ~KeyFilterManager()
override;
52 static KeyFilterManager *instance();
57 void alwaysFilterByProtocol(GpgME::Protocol protocol);
59 const std::shared_ptr<KeyFilter> &filterMatching(
const GpgME::Key &key, KeyFilter::MatchContexts contexts)
const;
60 std::vector<std::shared_ptr<KeyFilter>> filtersMatching(
const GpgME::Key &key, KeyFilter::MatchContexts contexts)
const;
64 const std::shared_ptr<KeyFilter> &keyFilterByID(
const QString &
id)
const;
65 const std::shared_ptr<KeyFilter> &fromModelIndex(
const QModelIndex &mi)
const;
66 QModelIndex toModelIndex(
const std::shared_ptr<KeyFilter> &kf)
const;
70 QFont font(
const GpgME::Key &key,
const QFont &baseFont)
const;
71 QColor bgColor(
const GpgME::Key &key)
const;
72 QColor bgColor(
const GpgME::UserID &userID)
const;
73 QColor fgColor(
const GpgME::Key &key)
const;
74 QColor fgColor(
const GpgME::UserID &userID)
const;
75 QIcon icon(
const GpgME::Key &key)
const;
80 std::unique_ptr<Private> d;
81 static KeyFilterManager *mSelf;
const QList< QKeySequence > & reload()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:12 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.