Messagelib

contactpreference.h
1 /*
2  SPDX-FileCopyrightText: 2022 Sandro Knauß <[email protected]>
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 
13 namespace KContacts
14 {
15 class Addressee;
16 }
17 
18 namespace MessageComposer
19 {
20 class MESSAGECOMPOSER_EXPORT ContactPreference
21 {
22 public:
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-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.