Commit c2163f1b authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add possibility to filter out invalid keys

parent 6d26b255
Pipeline #39463 passed with stage
in 10 minutes and 14 seconds
......@@ -47,6 +47,7 @@ public:
......@@ -78,6 +79,7 @@ public:
TriState mIsOpenPGP;
TriState mWasValidated;
TriState mIsDeVs;
TriState mBad;
LevelState mOwnerTrust;
GpgME::Key::OwnerTrust mOwnerTrustReferenceLevel;
......@@ -122,6 +124,7 @@ bool DefaultKeyFilter::matches(const Key &key, MatchContexts contexts) const
return false;
MATCH(d_ptr->mHasSecret, hasSecret);
  • Hi @kloecker, is this the same as the reverted 5314843f? :-)

    Sorry to be such a nuisance - normally I wouldn't care, but I only just managed to hack Kontact to build on Windows with MSVC and Craft, but we only have gpgme 1.11.1 there :(

    Edited by Daniel Vrátil
  • @dvratil: Oops! Sorry! Actually, this was supposed to be something else (as the commit message suggests), namely 3324d59c.

Please register or sign in to reply
#undef MATCH
if (d_ptr->mIsOpenPGP != DoesNotMatter &&
bool(key.protocol() == GpgME::OpenPGP) != bool(d_ptr->mIsOpenPGP == Set)) {
......@@ -348,6 +351,11 @@ void DefaultKeyFilter::setIsDeVs(DefaultKeyFilter::TriState value) const
d_ptr->mIsDeVs = value;
void DefaultKeyFilter::setIsBad(DefaultKeyFilter::TriState value) const
d_ptr->mBad = value;
QColor DefaultKeyFilter::fgColor() const
return d_ptr->mFgColor;
......@@ -497,3 +505,8 @@ DefaultKeyFilter::TriState DefaultKeyFilter::isDeVS() const
return d_ptr->mIsDeVs;
DefaultKeyFilter::TriState DefaultKeyFilter::isBad() const
return d_ptr->mBad;
......@@ -87,6 +87,7 @@ public:
TriState isOpenPGP() const;
TriState wasValidated() const;
TriState isDeVS() const;
TriState isBad() const;
LevelState ownerTrust() const;
GpgME::Key::OwnerTrust ownerTrustReferenceLevel() const;
......@@ -112,6 +113,7 @@ public:
void setIsOpenPGP(const TriState) const;
void setWasValidated(const TriState) const;
void setIsDeVs(const TriState) const;
void setIsBad(const TriState) const;
void setOwnerTrust(const LevelState) const;
void setOwnerTrustReferenceLevel(const GpgME::Key::OwnerTrust) const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment