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>
13 namespace MessageViewer
14 {
15 class MessageDisplayFormatAttributePrivate;
16 /**
17  * @brief The MessageDisplayFormatAttribute class
18  * @author Laurent Montel <montel@kde.org>
19  */
20 class MESSAGEVIEWER_EXPORT MessageDisplayFormatAttribute : public Akonadi::Attribute
21 {
22 public:
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 
39 private:
40  friend class MessageDisplayFormatAttributePrivate;
41  std::unique_ptr<MessageDisplayFormatAttributePrivate> const d;
42 };
43 }
The MessageDisplayFormatAttribute class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.