Messagelib

contactpreference.h
1/*
2 SPDX-FileCopyrightText: 2022 Sandro Knauß <sknauss@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <Libkleo/Enum>
10
11#include "messagecomposer_export.h"
12
13namespace KContacts
14{
15class Addressee;
16}
17
18namespace MessageComposer
19{
20class MESSAGECOMPOSER_EXPORT ContactPreference
21{
22public:
23 ContactPreference();
24
25 void fillFromAddressee(const KContacts::Addressee &contact);
26 void fillAddressee(KContacts::Addressee &contact) const;
27
28 Kleo::EncryptionPreference encryptionPreference = Kleo::UnknownPreference;
29 Kleo::SigningPreference signingPreference = Kleo::UnknownSigningPreference;
30 Kleo::CryptoMessageFormat cryptoMessageFormat = Kleo::AutoFormat;
31 QStringList pgpKeyFingerprints;
32 QStringList smimeCertFingerprints;
33};
34}
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.