MessageList::Core::MessageItem
#include <messageitem.h>

Public Types | |
enum | EncryptionState { NotEncrypted, PartiallyEncrypted, FullyEncrypted, EncryptionStateUnknown } |
enum | SignatureState { NotSigned, PartiallySigned, FullySigned, SignatureStateUnknown } |
enum | ThreadingStatus { PerfectParentFound, ImperfectParentFound, ParentMissing, NonThreadable } |
![]() | |
enum | InitialExpandStatus { ExpandNeeded, NoExpandNeeded, ExpandExecuted } |
enum | Type { GroupHeader, Message, InvisibleRoot } |
Public Member Functions | |
bool | aboutToBeRemoved () const |
QString | accessibleText (const MessageList::Core::Theme *theme, int columnIndex) |
Akonadi::Item | akonadiItem () const |
QString | annotation () const |
const QColor & | backgroundColor () const |
void | editAnnotation (QWidget *parent) |
EncryptionState | encryptionState () const |
const Tag * | findTag (const QString &szTagId) const |
virtual bool | hasAnnotation () const |
QByteArray | inReplyToIdMD5 () const |
void | invalidateAnnotationCache () |
void | invalidateTagCache () |
bool | isBold () const |
bool | isItalic () const |
QByteArray | messageIdMD5 () const |
QByteArray | referencesIdMD5 () const |
void | setAboutToBeRemoved (bool aboutToBeRemoved) |
void | setAkonadiItem (const Akonadi::Item &item) |
void | setEncryptionState (EncryptionState state) |
void | setInReplyToIdMD5 (const QByteArray &md5) |
void | setMessageIdMD5 (const QByteArray &md5) |
void | setReferencesIdMD5 (const QByteArray &md5) |
void | setSignatureState (SignatureState state) |
void | setStrippedSubjectMD5 (const QByteArray &md5) |
void | setSubjectIsPrefixed (bool subjectIsPrefixed) |
void | setThreadingStatus (ThreadingStatus threadingStatus) |
SignatureState | signatureState () const |
QByteArray | strippedSubjectMD5 () const |
bool | subjectIsPrefixed () const |
void | subTreeToList (QList< MessageItem * > &list) |
virtual QList< Tag * > | tagList () const |
QString | tagListDescription () const |
const QColor & | textColor () const |
ThreadingStatus | threadingStatus () const |
MessageItem * | topmostMessage () |
unsigned long | uniqueId () const |
![]() | |
virtual | ~Item () |
int | appendChildItem (Model *model, Item *child) |
Item * | childItem (int idx) const |
int | childItemCount () const |
QList< Item * > * | childItems () const |
void | childItemStats (ChildItemStats &stats) const |
time_t | date () const |
Item * | deepestItem () |
QString | displayReceiver () const |
QString | displaySender () const |
QString | displaySenderOrReceiver () const |
void | dump (const QString &prefix) |
Item * | firstChildItem () const |
const QString & | folder () const |
QString | formattedDate () const |
QString | formattedMaxDate () const |
QString | formattedSize () const |
bool | hasAncestor (const Item *it) const |
bool | hasChildren () const |
int | indexOfChildItem (Item *item) const |
InitialExpandStatus | initialExpandStatus () const |
void | initialSetup (time_t date, size_t size, const QString &sender, const QString &receiver, bool useReceiver) |
bool | isViewable () const |
Item * | itemAbove () |
Item * | itemAboveChild (Item *child) |
Item * | itemBelow () |
Item * | itemBelowChild (Item *child) |
qint64 | itemId () const |
void | killAllChildItems () |
time_t | maxDate () const |
Item * | parent () const |
qint64 | parentCollectionId () const |
void | rawAppendChildItem (Item *child) |
const QString & | receiver () const |
bool | recomputeMaxDate () |
const QString & | sender () const |
const QString & | senderOrReceiver () const |
void | setDate (time_t date) |
void | setFolder (const QString &folder) |
void | setIndexGuess (int index) |
void | setInitialExpandStatus (InitialExpandStatus initialExpandStatus) |
void | setItemId (qint64 id) |
void | setMaxDate (time_t date) |
void | setParent (Item *pParent) |
void | setParentCollectionId (qint64 id) |
void | setReceiver (const QString &receiver) |
void | setSender (const QString &sender) |
void | setSize (size_t size) |
void | setStatus (Akonadi::MessageStatus status) |
void | setSubject (const QString &subject) |
void | setSubjectAndStatus (const QString &subject, Akonadi::MessageStatus status) |
void | setViewable (Model *model, bool bViewable) |
size_t | size () const |
const Akonadi::MessageStatus & | status () const |
QString | statusDescription () const |
const QString & | subject () const |
void | takeChildItem (Model *model, Item *child) |
Item * | topmostNonRoot () |
Type | type () const |
bool | useReceiver () const |
![]() | |
int | currentModelIndexRow () |
bool | isValid () const |
Static Public Member Functions | |
static void | setGeneralFont (const QFont &font) |
static void | setImportantMessageColor (const QColor &color) |
static void | setImportantMessageFont (const QFont &font) |
static void | setToDoMessageColor (const QColor &color) |
static void | setToDoMessageFont (const QFont &font) |
static void | setUnreadMessageColor (const QColor &color) |
static void | setUnreadMessageFont (const QFont &font) |
Protected Member Functions | |
MessageItem (MessageItemPrivate *dd) | |
![]() | |
Item (Type type) | |
Item (Type type, ItemPrivate *dd) | |
Additional Inherited Members | |
![]() | |
ItemPrivate *const | d_ptr |
Detailed Description
The MessageItem class.
Definition at line 34 of file messageitem.h.
Member Enumeration Documentation
◆ ThreadingStatus
Definition at line 60 of file messageitem.h.
Member Function Documentation
◆ annotation()
QString MessageItem::annotation | ( | ) | const |
Returns the annotation of the message, given that hasAnnotation() is true.
Definition at line 251 of file messageitem.cpp.
◆ editAnnotation()
void MessageItem::editAnnotation | ( | QWidget * | parent | ) |
Shows a dialog to edit or delete the annotation.
Definition at line 269 of file messageitem.cpp.
◆ findTag()
const MessageItem::Tag * MessageItem::findTag | ( | const QString & | szTagId | ) | const |
Returns Tag associated to this message that has the specified id or 0 if no such tag exists.
mTagList will be 0 in 99% of the cases.
Definition at line 291 of file messageitem.cpp.
◆ hasAnnotation()
|
virtual |
Returns true if this message has an annotation.
Reimplemented in MessageList::Core::FakeItem.
Definition at line 244 of file messageitem.cpp.
◆ invalidateAnnotationCache()
void MessageItem::invalidateAnnotationCache | ( | ) |
Same as invalidateTagCache(), only for the annotation.
Definition at line 318 of file messageitem.cpp.
◆ invalidateTagCache()
void MessageItem::invalidateTagCache | ( | ) |
Deletes all cached tags.
The next time someone asks this item for the tags, they are fetched again
Definition at line 312 of file messageitem.cpp.
◆ subTreeToList()
void MessageItem::subTreeToList | ( | QList< MessageItem * > & | list | ) |
Appends the whole subtree originating at this item to the specified list.
This item is included!
Definition at line 571 of file messageitem.cpp.
◆ tagList()
|
virtual |
Returns the list of tags for this item.
Reimplemented in MessageList::Core::FakeItem.
Definition at line 238 of file messageitem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:53:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.