Messagelib
9 #ifndef MESSAGELIST_CORE_MESSAGEITEM_H 10 #define MESSAGELIST_CORE_MESSAGEITEM_H 12 #include "core/item.h" 13 #include "core/modelinvariantindex.h" 19 #include <messagelist_export.h> 28 class MessageItemPrivate;
35 class MESSAGELIST_EXPORT Tag
43 const QColor &textColor()
const;
44 const QColor &backgroundColor()
const;
45 const QFont &font()
const;
48 void setTextColor(
const QColor &textColor);
49 void setBackgroundColor(
const QColor &backgroundColor);
50 void setFont(
const QFont &font);
51 void setPriority(
int priority);
65 enum EncryptionState {
69 EncryptionStateUnknown
88 virtual bool hasAnnotation()
const;
91 Q_REQUIRED_RESULT
QString annotation()
const;
94 void editAnnotation(
QWidget *parent);
100 const Tag *findTag(
const QString &szTagId)
const;
102 Q_REQUIRED_RESULT
QString tagListDescription()
const;
106 void invalidateTagCache();
109 void invalidateAnnotationCache();
111 const QColor &textColor()
const;
113 const QColor &backgroundColor()
const;
115 Q_REQUIRED_RESULT
bool isBold()
const 117 return font().bold();
120 Q_REQUIRED_RESULT
bool isItalic()
const 122 return font().italic();
125 Q_REQUIRED_RESULT SignatureState signatureState()
const;
127 void setSignatureState(SignatureState state);
129 Q_REQUIRED_RESULT EncryptionState encryptionState()
const;
131 void setEncryptionState(EncryptionState state);
133 Q_REQUIRED_RESULT
QByteArray messageIdMD5()
const;
137 Q_REQUIRED_RESULT
QByteArray inReplyToIdMD5()
const;
139 void setInReplyToIdMD5(
const QByteArray &md5);
141 Q_REQUIRED_RESULT
QByteArray referencesIdMD5()
const;
143 void setReferencesIdMD5(
const QByteArray &md5);
145 void setSubjectIsPrefixed(
bool subjectIsPrefixed);
147 Q_REQUIRED_RESULT
bool subjectIsPrefixed()
const;
149 Q_REQUIRED_RESULT
QByteArray strippedSubjectMD5()
const;
151 void setStrippedSubjectMD5(
const QByteArray &md5);
153 Q_REQUIRED_RESULT
bool aboutToBeRemoved()
const;
155 void setAboutToBeRemoved(
bool aboutToBeRemoved);
161 Q_REQUIRED_RESULT
unsigned long uniqueId()
const;
163 Akonadi::Item akonadiItem()
const;
164 void setAkonadiItem(
const Akonadi::Item &item);
182 static void setUnreadMessageColor(
const QColor &color);
183 static void setImportantMessageColor(
const QColor &color);
184 static void setToDoMessageColor(
const QColor &color);
185 static void setGeneralFont(
const QFont &font);
186 static void setUnreadMessageFont(
const QFont &font);
187 static void setImportantMessageFont(
const QFont &font);
188 static void setToDoMessageFont(
const QFont &font);
193 const QFont &font()
const;
200 class FakeItemPrivate;
217 bool hasAnnotation()
const override;
this message might belong to a thread but its parent is actually missing
this message found an imperfect parent to attach to (might be fixed later)
this message found a perfect parent to attach to
Type
The available ContentItem types.
A single item of the MessageList tree managed by MessageList::Model.
A message item that can have a fake tag list and a fake annotation.
The Theme class defines the visual appearance of the MessageList.
An invariant index that can be ALWAYS used to reference an item inside a QAbstractItemModel.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:17:25 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.