Akonadi Contacts

messageformattingwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2017-2023 Laurent Montel <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include "contacteditor_private_export.h"
12 #include <KContacts/Addressee>
13 #include <QWidget>
14 class QComboBox;
15 class QCheckBox;
16 namespace ContactEditor
17 {
18 class CONTACTEDITOR_TESTS_EXPORT MessageFormattingWidget : public QWidget
19 {
20  Q_OBJECT
21 public:
22  explicit MessageFormattingWidget(QWidget *parent = nullptr);
23  ~MessageFormattingWidget() override;
24 
25  void loadContact(const KContacts::Addressee &contact);
26  void storeContact(KContacts::Addressee &contact) const;
27  void setReadOnly(bool readOnly);
28 
29 private:
30  QComboBox *mMailPreferFormatting = nullptr;
31  QCheckBox *mAllowRemoteContent = nullptr;
32 };
33 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.