File indexing completed on 2024-11-24 04:39:31
0001 /* 0002 This file is part of Contact Editor. 0003 0004 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include "akonadi_contact_widgets_private_export.h" 0012 #include <KContacts/Addressee> 0013 #include <QWidget> 0014 class QComboBox; 0015 class QCheckBox; 0016 namespace Akonadi 0017 { 0018 class AKONADI_CONTACT_WIDGETS_TESTS_EXPORT MessageFormattingWidget : public QWidget 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit MessageFormattingWidget(QWidget *parent = nullptr); 0023 ~MessageFormattingWidget() override; 0024 0025 void loadContact(const KContacts::Addressee &contact); 0026 void storeContact(KContacts::Addressee &contact) const; 0027 void setReadOnly(bool readOnly); 0028 0029 private: 0030 QComboBox *mMailPreferFormatting = nullptr; 0031 QCheckBox *mAllowRemoteContent = nullptr; 0032 }; 0033 }