Akonadi Contacts

messageformattingwidget.h
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#pragma once
10
11#include "akonadi_contact_widgets_private_export.h"
12#include <KContacts/Addressee>
13#include <QWidget>
14class QComboBox;
15class QCheckBox;
16namespace Akonadi
17{
18class AKONADI_CONTACT_WIDGETS_TESTS_EXPORT MessageFormattingWidget : public QWidget
19{
20 Q_OBJECT
21public:
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
29private:
30 QComboBox *mMailPreferFormatting = nullptr;
31 QCheckBox *mAllowRemoteContent = nullptr;
32};
33}
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.