Messagelib

messagedisplayformatattribute.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include "messageviewer/viewer.h"
11#include "messageviewer_export.h"
12#include <Akonadi/Attribute>
13namespace MessageViewer
14{
15class MessageDisplayFormatAttributePrivate;
16/**
17 * @brief The MessageDisplayFormatAttribute class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class MESSAGEVIEWER_EXPORT MessageDisplayFormatAttribute : public Akonadi::Attribute
21{
22public:
25
26 [[nodiscard]] MessageDisplayFormatAttribute *clone() const override;
27 [[nodiscard]] QByteArray type() const override;
28 [[nodiscard]] QByteArray serialized() const override;
29 void deserialize(const QByteArray &data) override;
30
31 void setMessageFormat(Viewer::DisplayFormatMessage format);
32 [[nodiscard]] Viewer::DisplayFormatMessage messageFormat() const;
33
34 void setRemoteContent(bool remote);
35 [[nodiscard]] bool remoteContent() const;
36
37 [[nodiscard]] bool operator==(const MessageDisplayFormatAttribute &other) const;
38
39private:
40 friend class MessageDisplayFormatAttributePrivate;
41 std::unique_ptr<MessageDisplayFormatAttributePrivate> const d;
42};
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.