diff options
author | Saturneric <[email protected]> | 2023-07-13 06:51:32 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-07-13 06:51:32 +0000 |
commit | 7c96f052da1f73cbcd2f0671640d1019eaaa906a (patch) | |
tree | 814d98407a0a3bc8adb32f4b8065d8428f016eb9 /src/ui/UserInterfaceUtils.h | |
parent | feat: add CacheManager to deal with cache (diff) | |
download | GpgFrontend-7c96f052da1f73cbcd2f0671640d1019eaaa906a.tar.gz GpgFrontend-7c96f052da1f73cbcd2f0671640d1019eaaa906a.zip |
feat: support marking a key as favourite
Diffstat (limited to 'src/ui/UserInterfaceUtils.h')
-rw-r--r-- | src/ui/UserInterfaceUtils.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/UserInterfaceUtils.h b/src/ui/UserInterfaceUtils.h index 7dd7bb1e..59c803b9 100644 --- a/src/ui/UserInterfaceUtils.h +++ b/src/ui/UserInterfaceUtils.h @@ -31,6 +31,7 @@ #include "core/GpgModel.h" #include "core/function/result_analyse/GpgVerifyResultAnalyse.h" +#include "core/model/GpgKey.h" #include "ui/GpgFrontendUI.h" namespace GpgFrontend { @@ -150,6 +151,24 @@ class CommonUtils : public QWidget { */ bool isApplicationNeedRestart(); + /** + * @brief + * + */ + bool KeyExistsinFavouriteList(const GpgKey& key); + + /** + * @brief + * + */ + void AddKey2Favourtie(const GpgKey& key); + + /** + * @brief + * + */ + void RemoveKeyFromFavourite(const GpgKey& key); + signals: /** * @brief |