12#include "core/modelinvariantindex.h"
14#include "messagelist_export.h"
30class MessageItemPrivate;
37 class MESSAGELIST_EXPORT Tag
45 const QColor &textColor()
const;
46 const QColor &backgroundColor()
const;
47 const QFont &font()
const;
50 void setTextColor(
const QColor &textColor);
51 void setBackgroundColor(
const QColor &backgroundColor);
52 void setFont(
const QFont &font);
53 void setPriority(
int priority);
57 std::unique_ptr<TagPrivate>
const d;
67 enum EncryptionState { NotEncrypted, PartiallyEncrypted, FullyEncrypted, EncryptionStateUnknown };
69 enum SignatureState { NotSigned, PartiallySigned, FullySigned, SignatureStateUnknown };
71 explicit MessageItem();
72 ~MessageItem()
override;
82 const Tag *findTag(
const QString &szTagId)
const;
84 [[nodiscard]]
QString tagListDescription()
const;
88 void invalidateTagCache();
90 const QColor &textColor()
const;
92 const QColor &backgroundColor()
const;
94 [[nodiscard]]
bool isBold()
const
99 [[nodiscard]]
bool isItalic()
const
101 return font().italic();
104 [[nodiscard]] SignatureState signatureState()
const;
106 void setSignatureState(SignatureState state);
108 [[nodiscard]] EncryptionState encryptionState()
const;
110 void setEncryptionState(EncryptionState state);
112 [[nodiscard]]
QByteArray messageIdMD5()
const;
116 [[nodiscard]]
QByteArray inReplyToIdMD5()
const;
118 void setInReplyToIdMD5(
const QByteArray &md5);
120 [[nodiscard]]
QByteArray referencesIdMD5()
const;
122 void setReferencesIdMD5(
const QByteArray &md5);
124 void setSubjectIsPrefixed(
bool subjectIsPrefixed);
126 [[nodiscard]]
bool subjectIsPrefixed()
const;
128 [[nodiscard]]
QByteArray strippedSubjectMD5()
const;
130 void setStrippedSubjectMD5(
const QByteArray &md5);
132 [[nodiscard]]
bool aboutToBeRemoved()
const;
134 void setAboutToBeRemoved(
bool aboutToBeRemoved);
136 [[nodiscard]] ThreadingStatus threadingStatus()
const;
138 void setThreadingStatus(ThreadingStatus threadingStatus);
140 [[nodiscard]]
unsigned long uniqueId()
const;
145 MessageItem *topmostMessage();
161 static void setUnreadMessageColor(
const QColor &color);
162 static void setImportantMessageColor(
const QColor &color);
163 static void setToDoMessageColor(
const QColor &color);
164 static void setGeneralFont(
const QFont &font);
165 static void setUnreadMessageFont(
const QFont &font);
166 static void setImportantMessageFont(
const QFont &font);
167 static void setToDoMessageFont(
const QFont &font);
170 explicit MessageItem(MessageItemPrivate *dd);
173 MESSAGELIST_NO_EXPORT
const QFont &font()
const;
175 MESSAGELIST_NO_EXPORT
QString accessibleTextForField(Theme::ContentItem::Type field);
177 Q_DECLARE_PRIVATE(MessageItem)
180class FakeItemPrivate;
A message item that can have a fake tag list and a fake annotation.
void setFakeTags(const QList< Tag * > &tagList)
Sets a list of fake tags for this item.
QList< Tag * > tagList() const override
Reimplemented to return the fake tag list.
A single item of the MessageList tree managed by MessageList::Model.
@ ImperfectParentFound
this message found an imperfect parent to attach to (might be fixed later)
@ ParentMissing
this message might belong to a thread but its parent is actually missing
@ PerfectParentFound
this message found a perfect parent to attach to
An invariant index that can be ALWAYS used to reference an item inside a QAbstractItemModel.
The Theme class defines the visual appearance of the MessageList.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.