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 {
71 EncryptionStateUnknown
81 explicit MessageItem();
82 ~MessageItem()
override;
92 const Tag *findTag(
const QString &szTagId)
const;
94 [[nodiscard]]
QString tagListDescription()
const;
98 void invalidateTagCache();
100 const QColor &textColor()
const;
102 const QColor &backgroundColor()
const;
104 [[nodiscard]]
bool isBold()
const
106 return font().bold();
109 [[nodiscard]]
bool isItalic()
const
111 return font().italic();
114 [[nodiscard]] SignatureState signatureState()
const;
116 void setSignatureState(SignatureState state);
118 [[nodiscard]] EncryptionState encryptionState()
const;
120 void setEncryptionState(EncryptionState state);
122 [[nodiscard]]
QByteArray messageIdMD5()
const;
126 [[nodiscard]]
QByteArray inReplyToIdMD5()
const;
128 void setInReplyToIdMD5(
const QByteArray &md5);
130 [[nodiscard]]
QByteArray referencesIdMD5()
const;
132 void setReferencesIdMD5(
const QByteArray &md5);
134 void setSubjectIsPrefixed(
bool subjectIsPrefixed);
136 [[nodiscard]]
bool subjectIsPrefixed()
const;
138 [[nodiscard]]
QByteArray strippedSubjectMD5()
const;
140 void setStrippedSubjectMD5(
const QByteArray &md5);
142 [[nodiscard]]
bool aboutToBeRemoved()
const;
144 void setAboutToBeRemoved(
bool aboutToBeRemoved);
146 [[nodiscard]] ThreadingStatus threadingStatus()
const;
148 void setThreadingStatus(ThreadingStatus threadingStatus);
150 [[nodiscard]]
unsigned long uniqueId()
const;
155 MessageItem *topmostMessage();
171 static void setUnreadMessageColor(
const QColor &color);
172 static void setImportantMessageColor(
const QColor &color);
173 static void setToDoMessageColor(
const QColor &color);
174 static void setGeneralFont(
const QFont &font);
175 static void setUnreadMessageFont(
const QFont &font);
176 static void setImportantMessageFont(
const QFont &font);
177 static void setToDoMessageFont(
const QFont &font);
180 explicit MessageItem(MessageItemPrivate *dd);
183 MESSAGELIST_NO_EXPORT
const QFont &font()
const;
185 MESSAGELIST_NO_EXPORT
QString accessibleTextForField(Theme::ContentItem::Type field);
187 Q_DECLARE_PRIVATE(MessageItem)
190class 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 Mon Nov 4 2024 16:33:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.