messagelist
#include <messageitem_p.h>
Public Member Functions | |
MessageItemPrivate (MessageItem *qq) | |
~MessageItemPrivate () | |
const MessageItem::Tag * | bestTag () const |
const MessageItem::Tag * | findTagInternal (const QString &szTagId) const |
QList< MessageItem::Tag * > | getTagList () const |
void | invalidateAnnotationCache () |
void | invalidateTagCache () |
void | resourceReceived (const Nepomuk2::Resource &resource) |
bool | tagListInitialized () const |
Public Member Functions inherited from MessageList::Core::ItemPrivate | |
ItemPrivate (Item *owner) | |
virtual | ~ItemPrivate () |
void | childItemDead (Item *child) |
template<class ItemComparator , bool bAscending> | |
bool | childItemNeedsReSorting (Item *child) |
template<class ItemComparator , bool bAscending> | |
int GCC_DONT_INLINE_THIS | insertChildItem (Model *model, Item *child) |
Public Attributes | |
bool | mAboutToBeRemoved: 1 |
Akonadi::Item | mAkonadiItem |
QWeakPointer < MessageCore::AnnotationEditDialog > | mAnnotationDialog |
bool | mAnnotationStateChecked: 1 |
MessageItem::EncryptionState | mEncryptionState: 4 |
bool | mHasAnnotation: 1 |
QByteArray | mInReplyToIdMD5 |
QByteArray | mMessageIdMD5 |
QByteArray | mReferencesIdMD5 |
MessageItem::SignatureState | mSignatureState: 4 |
QByteArray | mStrippedSubjectMD5 |
bool | mSubjectIsPrefixed: 1 |
MessageItem::ThreadingStatus | mThreadingStatus: 4 |
Public Attributes inherited from MessageList::Core::ItemPrivate | |
QList< Item * > * | mChildItems |
time_t | mDate |
Item::InitialExpandStatus | mInitialExpandStatus: 4 |
bool | mIsViewable: 1 |
qint64 | mItemId |
time_t | mMaxDate |
Item * | mParent |
QString | mReceiver |
QString | mSender |
size_t | mSize |
Akonadi::MessageStatus | mStatus |
QString | mSubject |
int | mThisItemIndexGuess |
Item::Type | mType: 4 |
bool | mUseReceiver: 1 |
Item *const | q |
Detailed Description
Definition at line 33 of file messageitem_p.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 149 of file messageitem.cpp.
MessageItemPrivate::~MessageItemPrivate | ( | ) |
Definition at line 162 of file messageitem.cpp.
Member Function Documentation
const MessageItem::Tag * MessageItemPrivate::bestTag | ( | ) | const |
Returns the tag with the highest priority, or 0 if there are no tags.
Definition at line 182 of file messageitem.cpp.
const MessageItem::Tag * MessageItemPrivate::findTagInternal | ( | const QString & | szTagId | ) | const |
Linear search in the list of tags.
The lists of tags associated to a message are supposed to be very short (c'mon.. you won't add more than a couple of tags to a single msg). so a linear search is better than a hash lookup in most cases.
Definition at line 322 of file messageitem.cpp.
QList< MessageItem::Tag * > MessageItemPrivate::getTagList | ( | ) | const |
Returns the list of tags. This is calculated on demand and cached in mTagList.
Definition at line 236 of file messageitem.cpp.
void MessageItemPrivate::invalidateAnnotationCache | ( | ) |
Deletes the cache of the annotation.
Definition at line 177 of file messageitem.cpp.
void MessageItemPrivate::invalidateTagCache | ( | ) |
Deletes the internal list of tags.
Definition at line 168 of file messageitem.cpp.
void MessageItemPrivate::resourceReceived | ( | const Nepomuk2::Resource & | resource | ) |
Callback for async Nepomuk resource retrieval.
Definition at line 251 of file messageitem.cpp.
bool MessageItemPrivate::tagListInitialized | ( | ) | const |
Definition at line 246 of file messageitem.cpp.
Member Data Documentation
bool MessageList::Core::MessageItemPrivate::mAboutToBeRemoved |
Set to true when this item is going to be deleted and shouldn't be selectable.
Definition at line 74 of file messageitem_p.h.
Akonadi::Item MessageList::Core::MessageItemPrivate::mAkonadiItem |
Definition at line 68 of file messageitem_p.h.
QWeakPointer<MessageCore::AnnotationEditDialog> MessageList::Core::MessageItemPrivate::mAnnotationDialog |
Definition at line 69 of file messageitem_p.h.
|
mutable |
The state of the annotation below has been checked.
Definition at line 76 of file messageitem_p.h.
MessageItem::EncryptionState MessageList::Core::MessageItemPrivate::mEncryptionState |
Definition at line 71 of file messageitem_p.h.
|
mutable |
Cached value for hasAnnotation()
Definition at line 77 of file messageitem_p.h.
QByteArray MessageList::Core::MessageItemPrivate::mInReplyToIdMD5 |
set only if we're doing threading
Definition at line 65 of file messageitem_p.h.
QByteArray MessageList::Core::MessageItemPrivate::mMessageIdMD5 |
always set
Definition at line 64 of file messageitem_p.h.
QByteArray MessageList::Core::MessageItemPrivate::mReferencesIdMD5 |
set only if we're doing threading
Definition at line 66 of file messageitem_p.h.
MessageItem::SignatureState MessageList::Core::MessageItemPrivate::mSignatureState |
Definition at line 72 of file messageitem_p.h.
QByteArray MessageList::Core::MessageItemPrivate::mStrippedSubjectMD5 |
set only if we're doing threading
Definition at line 67 of file messageitem_p.h.
bool MessageList::Core::MessageItemPrivate::mSubjectIsPrefixed |
set only if we're doing subject based threading
Definition at line 75 of file messageitem_p.h.
MessageItem::ThreadingStatus MessageList::Core::MessageItemPrivate::mThreadingStatus |
Definition at line 70 of file messageitem_p.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.