Libkleo

keygroupconfig.h
1/*
2 kleo/keygroupconfig.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2021 g10 Code GmbH
6 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include "kleo_export.h"
14
15#include <memory>
16#include <vector>
17
18class QString;
19
20namespace GpgME
21{
22class Key;
23}
24
25namespace Kleo
26{
27class KeyGroup;
28
29class KLEO_EXPORT KeyGroupConfig
30{
31public:
32 explicit KeyGroupConfig(const QString &filename);
33 ~KeyGroupConfig();
34
35 std::vector<KeyGroup> readGroups() const;
36
37 void writeGroups(const std::vector<KeyGroup> &groups);
38
39 KeyGroup writeGroup(const KeyGroup &group);
40
41 bool removeGroup(const KeyGroup &group);
42
43private:
44 class Private;
45 std::unique_ptr<Private> d;
46};
47
48}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:39:42 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.