Messagelib

messagedisplayformatattribute.h
1 /*
2  SPDX-FileCopyrightText: 2013-2023 Laurent Montel <[email protected]>
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 <[email protected]>
19  */
20 class MESSAGEVIEWER_EXPORT MessageDisplayFormatAttribute : public Akonadi::Attribute
21 {
22 public:
25 
26  Q_REQUIRED_RESULT MessageDisplayFormatAttribute *clone() const override;
27  Q_REQUIRED_RESULT QByteArray type() const override;
28  Q_REQUIRED_RESULT QByteArray serialized() const override;
29  void deserialize(const QByteArray &data) override;
30 
31  void setMessageFormat(Viewer::DisplayFormatMessage format);
32  Q_REQUIRED_RESULT Viewer::DisplayFormatMessage messageFormat() const;
33 
34  void setRemoteContent(bool remote);
35  Q_REQUIRED_RESULT bool remoteContent() const;
36 
37  Q_REQUIRED_RESULT 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-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.