File indexing completed on 2024-06-23 05:18:28
0001 /* 0002 SPDX-FileCopyrightText: 2022 Sandro Knauß <sknauss@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <Libkleo/Enum> 0010 0011 #include "messagecomposer_export.h" 0012 0013 namespace KContacts 0014 { 0015 class Addressee; 0016 } 0017 0018 namespace MessageComposer 0019 { 0020 class MESSAGECOMPOSER_EXPORT ContactPreference 0021 { 0022 public: 0023 ContactPreference(); 0024 0025 void fillFromAddressee(const KContacts::Addressee &contact); 0026 void fillAddressee(KContacts::Addressee &contact) const; 0027 0028 Kleo::EncryptionPreference encryptionPreference = Kleo::UnknownPreference; 0029 Kleo::SigningPreference signingPreference = Kleo::UnknownSigningPreference; 0030 Kleo::CryptoMessageFormat cryptoMessageFormat = Kleo::AutoFormat; 0031 QStringList pgpKeyFingerprints; 0032 QStringList smimeCertFingerprints; 0033 }; 0034 }