Reorganize code.

Move KeyEdit::IsOurKey to Tools::IsOurKey.
This commit is contained in:
SET
2020-11-14 11:25:00 +01:00
parent bb4df1423a
commit 6ac7ea7c0f
5 changed files with 32 additions and 22 deletions

View File

@@ -44,9 +44,16 @@ public:
static WString GetUidStatus(const GpgME::UserID& uid);
static WString GetSigStatus(const GpgME::UserID::Signature& sig);
static bool KeyHasSecret(const WString& fpr);
/**
* If the fingerprint is that of a private key we manage, returns true.
* @param fpr
* @param ourPrivKeys
* @return
*/
static bool IsOurKey(const WString& fpr, vector<WString>& ourPrivKeys);
private:
static bool IsFound(const WString& item, vector<WString>& items);
};
#endif /* TOOLS_H */