Messagelib

autocryptstorage.h
1/*
2 SPDX-FileCopyrightText: 2020 Sandro Knauß <knauss@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagecore_export.h"
10
11#include "autocryptrecipient.h"
12
13#include <QSharedPointer>
14
15class AutocryptStorageTest;
16class AutocryptUtilsTest;
17
18namespace MessageCore
19{
20class AutocryptStoragePrivate;
21
22class MESSAGECORE_EXPORT AutocryptStorage
23{
24public:
26 static AutocryptStorage::Ptr self();
27
28 AutocryptRecipient::Ptr getRecipient(const QByteArray &addr);
29 void save();
30 AutocryptRecipient::Ptr addRecipient(const QByteArray &addr);
31 void deleteRecipient(const QByteArray &addr);
32
33private:
34 MESSAGECORE_NO_EXPORT AutocryptStorage();
35 static AutocryptStorage::Ptr mSelf;
36
37private:
38 std::unique_ptr<AutocryptStoragePrivate> d_ptr;
39 Q_DECLARE_PRIVATE(AutocryptStorage)
40
41 friend class ::AutocryptStorageTest;
42 friend class ::AutocryptUtilsTest;
43};
44}
KGuiItem save()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.