File indexing completed on 2024-06-02 05:24:52
0001 /* utils/tags.h 0002 0003 This file is part of Kleopatra, the KDE keymanager 0004 SPDX-FileCopyrightText: 2019 g10code GmbH 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 #pragma once 0009 0010 #include <gpgme++/key.h> 0011 0012 #include <vector> 0013 0014 namespace Kleo 0015 { 0016 namespace Tags 0017 { 0018 /* Helper functions to work with tags configuration */ 0019 bool tagsEnabled(); 0020 void enableTags(); 0021 /* Read / write a single tag key into configuration. */ 0022 GpgME::Key tagKey(); 0023 void setTagKey(const GpgME::Key &key); 0024 0025 /* Get multiple keys to use for tags. Currently 0026 * this returns all fully trusted OpenPGP Keys. */ 0027 std::vector<GpgME::Key> tagKeys(); 0028 } 0029 } // namespace Kleo