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
33 ~AutocryptStorage();
34
35private:
36 MESSAGECORE_NO_EXPORT AutocryptStorage();
37 static AutocryptStorage::Ptr mSelf;
38
39private:
40 std::unique_ptr<AutocryptStoragePrivate> d_ptr;
41 Q_DECLARE_PRIVATE(AutocryptStorage)
42
43 friend class ::AutocryptStorageTest;
44 friend class ::AutocryptUtilsTest;
45};
46}
const QList< QKeySequence > & save()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.