File indexing completed on 2024-11-17 04:50:27
0001 /* 0002 kleo/keygroupimportexport.h 0003 0004 This file is part of libkleopatra, the KDE keymanagement library 0005 SPDX-FileCopyrightText: 2021 g10 Code GmbH 0006 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #pragma once 0012 0013 #include "kleo_export.h" 0014 0015 #include <vector> 0016 0017 class QString; 0018 0019 namespace Kleo 0020 { 0021 class KeyGroup; 0022 0023 KLEO_EXPORT std::vector<KeyGroup> readKeyGroups(const QString &filename); 0024 0025 enum class WriteKeyGroups { 0026 Success, 0027 InvalidFilename, 0028 Error, 0029 }; 0030 0031 KLEO_EXPORT WriteKeyGroups writeKeyGroups(const QString &filename, const std::vector<KeyGroup> &groups); 0032 0033 }