aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/GpgUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/utils/GpgUtils.h')
-rw-r--r--src/core/utils/GpgUtils.h35
1 files changed, 28 insertions, 7 deletions
diff --git a/src/core/utils/GpgUtils.h b/src/core/utils/GpgUtils.h
index 9fcfe5cf..13612b4f 100644
--- a/src/core/utils/GpgUtils.h
+++ b/src/core/utils/GpgUtils.h
@@ -151,19 +151,31 @@ auto GPGFRONTEND_CORE_EXPORT GetGpgKeyDatabaseName(int channel) -> QString;
/**
* @brief
*
+ * @param channel
* @param keys
- * @return QContainer<gpgme_key_t>
+ * @return KeyIdArgsList
*/
-auto GPGFRONTEND_CORE_EXPORT Convert2RawGpgMEKeyList(
- const QContainer<GpgKey>& keys) -> QContainer<gpgme_key_t>;
+auto GPGFRONTEND_CORE_EXPORT ConvertKey2GpgKeyIdList(
+ int channel, const GpgAbstractKeyPtrList& keys) -> KeyIdArgsList;
/**
* @brief
*
- * @param key
- * @return QString
+ * @param channel
+ * @param keys
+ * @return GpgKeyPtrList
*/
-auto GPGFRONTEND_CORE_EXPORT GetUsagesByKey(const GpgKey& key) -> QString;
+auto GPGFRONTEND_CORE_EXPORT ConvertKey2GpgKeyList(
+ int channel, const GpgAbstractKeyPtrList& keys) -> GpgKeyPtrList;
+
+/**
+ * @brief
+ *
+ * @param keys
+ * @return QContainer<gpgme_key_t>
+ */
+auto GPGFRONTEND_CORE_EXPORT Convert2RawGpgMEKeyList(
+ int channel, const GpgAbstractKeyPtrList& keys) -> QContainer<gpgme_key_t>;
/**
* @brief
@@ -171,7 +183,8 @@ auto GPGFRONTEND_CORE_EXPORT GetUsagesByKey(const GpgKey& key) -> QString;
* @param key
* @return QString
*/
-auto GPGFRONTEND_CORE_EXPORT GetUsagesBySubkey(const GpgSubKey& key) -> QString;
+auto GPGFRONTEND_CORE_EXPORT GetUsagesByAbstractKey(const GpgAbstractKey* key)
+ -> QString;
/**
* @brief
@@ -181,4 +194,12 @@ auto GPGFRONTEND_CORE_EXPORT GetUsagesBySubkey(const GpgSubKey& key) -> QString;
auto GPGFRONTEND_CORE_EXPORT GetGpgKeyByGpgAbstractKey(GpgAbstractKey*)
-> GpgKey;
+/**
+ * @brief
+ *
+ * @param id
+ * @return true
+ * @return false
+ */
+auto GPGFRONTEND_CORE_EXPORT IsKeyGroupID(const KeyId& id) -> bool;
} // namespace GpgFrontend \ No newline at end of file