messagelist
messageitem.cpp
Go to the documentation of this file.
271 Akonadi::EntityAnnotationsAttribute *attr = d->mAkonadiItem.attribute<Akonadi::EntityAnnotationsAttribute>();
579 return status().isRead() ? i18nc( "Status of an item", "Read" ) : i18nc( "Status of an item", "Unread" );
581 return accessibleTextForField( Theme::ContentItem::ReadStateIcon ) + accessibleTextForField( Theme::ContentItem::RepliedStateIcon );
The ContentItem class defines a content item inside a Row.
Definition: theme.h:73
Tag(const QPixmap &pix, const QString &tagName, const QString &tagId)
Definition: messageitem.cpp:57
void setFakeTags(const QList< Tag * > &tagList)
Sets a list of fake tags for this item.
Definition: messageitem.cpp:684
void cancelRequest(MessageItemPrivate *m)
Definition: messageitem.cpp:748
The icon that displays the unread/read state (never disabled)
Definition: theme.h:154
QString annotation() const
Returns the annotation of the message, given that hasAnnotation() is true.
Definition: messageitem.cpp:267
void setBackgroundColor(const QColor &backgroundColor)
Definition: messageitem.cpp:110
static void setUnreadMessageColor(const QColor &color)
Definition: messageitem.cpp:623
bool contains(const Key &key) const
Definition: messageitem.h:46
const QList< ContentItem * > & rightItems() const
Returns the list of right aligned items for this row.
Definition: theme.h:513
void setThreadingStatus(ThreadingStatus threadingStatus)
Definition: messageitem.cpp:528
void subTreeToList(QList< MessageItem * > &list)
Appends the whole subtree originating at this item to the specified list.
Definition: messageitem.cpp:609
const QString & senderOrReceiver() const
Returns the sender or the receiver, depending on the underlying StorageModel settings.
Definition: item.cpp:461
QColor backgroundColor() const
Definition: messageitem.cpp:90
void fillTagList(const Akonadi::Tag::List &taglist)
Definition: messageitem.cpp:184
The combined icon that displays the unread/read/replied/forwarded state (never disabled) ...
Definition: theme.h:210
MessageItem * topmostMessage()
Definition: messageitem.cpp:552
void setTextColor(const QColor &textColor)
Definition: messageitem.cpp:105
static void setImportantMessageColor(const QColor &color)
Definition: messageitem.cpp:629
void setPriority(int priority)
Definition: messageitem.cpp:120
virtual bool hasAnnotation() const
Reimplemented to always return true.
Definition: messageitem.cpp:690
The Row class defines a row of items inside a Column.
Definition: theme.h:466
void setStrippedSubjectMD5(const QByteArray &md5)
Definition: messageitem.cpp:504
EncryptionState encryptionState() const
Definition: messageitem.cpp:438
void setAboutToBeRemoved(bool aboutToBeRemoved)
Definition: messageitem.cpp:516
QString formattedSize() const
A string with a text rappresentation of size().
Definition: item.cpp:254
T * object(const Key &key) const
Definition: item_p.h:41
void setMessageIdMD5(const QByteArray &md5)
Definition: messageitem.cpp:456
void setAkonadiItem(const Akonadi::Item &item)
Definition: messageitem.cpp:546
QList< MessageItem::Tag * > getTagList() const
Returns the list of tags. This is calculated on demand and cached in mTagList.
Definition: messageitem.cpp:225
void setMaxCost(int cost)
QString join(const QString &separator) const
this message might belong to a thread but its parent is actually missing
Definition: messageitem.h:76
static void setToDoMessageFont(const QFont &font)
Definition: messageitem.cpp:659
void editAnnotation()
Shows a dialog to edit or delete the annotation.
Definition: messageitem.cpp:283
QColor textColor() const
Definition: messageitem.cpp:85
const QList< Row * > & messageRows() const
Returns the list of rows visible in this column for a MessageItem.
Definition: theme.h:774
void retrieveTags(const Akonadi::Tag::List &tags, MessageItemPrivate *m)
Definition: messageitem.cpp:722
The icon that displays the replied/forwarded state (may be disabled)
Definition: theme.h:162
void setInReplyToIdMD5(const QByteArray &md5)
Definition: messageitem.cpp:468
unsigned long uniqueId() const
Definition: messageitem.cpp:534
const MessageItem::Tag * bestTag() const
Returns the tag with the highest priority, or 0 if there are no tags.
Definition: messageitem.cpp:174
virtual QList< Tag * > tagList() const
Reimplemented to return the fake tag list.
Definition: messageitem.cpp:678
virtual bool hasAnnotation() const
Returns true if this message has an annotation.
Definition: messageitem.cpp:260
void append(const T &value)
Akonadi::Item akonadiItem() const
Definition: messageitem.cpp:540
bool fromString(const QString &descrip)
QByteArray strippedSubjectMD5() const
Definition: messageitem.cpp:498
Display the subject of the message item.
Definition: theme.h:130
void setEncryptionState(EncryptionState state)
Definition: messageitem.cpp:444
QString key() const
QByteArray messageIdMD5() const
Definition: messageitem.cpp:450
bool isEmpty() const
bool aboutToBeRemoved() const
Definition: messageitem.cpp:510
const Tag * findTag(const QString &szTagId) const
Returns Tag associated to this message that has the specified id or 0 if no such tag exists...
Definition: messageitem.cpp:305
SignatureState signatureState() const
Definition: messageitem.cpp:426
QString tagListDescription() const
Definition: messageitem.cpp:311
void setReferencesIdMD5(const QByteArray &md5)
Definition: messageitem.cpp:480
bool insert(const Key &key, T *object, int cost)
bool tagListInitialized() const
Definition: messageitem.cpp:235
Formatted date time of the message/group.
Definition: theme.h:134
const QList< ContentItem * > & leftItems() const
Returns the list of left aligned items for this row.
Definition: theme.h:482
void setSignatureState(SignatureState state)
Definition: messageitem.cpp:432
QString formattedDate() const
A string with a text rappresentation of date() obtained via Manager.
Definition: item.cpp:259
From: or To: strip, depending on the folder settings.
Definition: theme.h:138
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:52
A message item that can have a fake tag list and a fake annotation.
Definition: messageitem.h:214
ThreadingStatus threadingStatus() const
Definition: messageitem.cpp:522
void setSubjectIsPrefixed(bool subjectIsPrefixed)
Definition: messageitem.cpp:486
QColor backgroundColor() const
Definition: messageitem.cpp:356
static void setUnreadMessageFont(const QFont &font)
Definition: messageitem.cpp:647
void invalidateAnnotationCache()
Deletes the cache of the annotation.
Definition: messageitem.cpp:170
virtual QList< Tag * > tagList() const
Returns the list of tags for this item.
Definition: messageitem.cpp:254
const MessageItem::Tag * findTagInternal(const QString &szTagId) const
Linear search in the list of tags.
Definition: messageitem.cpp:296
static void setImportantMessageFont(const QFont &font)
Definition: messageitem.cpp:653
static void setToDoMessageColor(const QColor &color)
Definition: messageitem.cpp:635
~MessageItemPrivate()
Definition: messageitem.cpp:155
bool subjectIsPrefixed() const
Definition: messageitem.cpp:492
QString accessibleText(const MessageList::Core::Theme *theme, int columnIndex)
Definition: messageitem.cpp:588
void insert(int i, const T &value)
Column * column(int idx) const
Returns a pointer to the column at the specified index or 0 if there is no such column.
Definition: theme.h:947
FakeItemPrivate(FakeItem *qq)
Definition: messageitem.cpp:665
QString fromLatin1(const char *str, int size)
const Akonadi::MessageStatus & status() const
Returns the status associated to this Item.
Definition: item.cpp:401
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:65
static void setGeneralFont(const QFont &font)
Definition: messageitem.cpp:641
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Item * parent() const
Returns the parent Item in the tree, or 0 if this item isn't attached to the tree.
Definition: item.cpp:391
bool remove(const Key &key)
An invariant index that can be ALWAYS used to reference an item inside a QAbstractItemModel.
Definition: modelinvariantindex.h:44
void setFont(const QFont &font)
Definition: messageitem.cpp:115
iterator begin()
QByteArray referencesIdMD5() const
Definition: messageitem.cpp:474
QByteArray inReplyToIdMD5() const
Definition: messageitem.cpp:462
bool isValid() const
void invalidateAnnotationCache()
Same as invalidateTagCache(), only for the annotation.
Definition: messageitem.cpp:330
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.