• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messagelist

  • MessageList
  • Core
  • MessageItem
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MessageList::Core::MessageItem Class Reference

#include <messageitem.h>

Inheritance diagram for MessageList::Core::MessageItem:
Inheritance graph
[legend]

Classes

class  Tag
 

Public Types

enum  EncryptionState { NotEncrypted, PartiallyEncrypted, FullyEncrypted, EncryptionStateUnknown }
 
enum  SignatureState { NotSigned, PartiallySigned, FullySigned, SignatureStateUnknown }
 
enum  ThreadingStatus { PerfectParentFound, ImperfectParentFound, ParentMissing, NonThreadable }
 
- Public Types inherited from MessageList::Core::Item
enum  InitialExpandStatus { ExpandNeeded, NoExpandNeeded, ExpandExecuted }
 
enum  Type { GroupHeader, Message, InvisibleRoot }
 

Public Member Functions

 MessageItem ()
 
virtual ~MessageItem ()
 
bool aboutToBeRemoved () const
 
QString accessibleText (const MessageList::Core::Theme *theme, int columnIndex)
 
Akonadi::Item akonadiItem () const
 
QString annotation () const
 
QColor backgroundColor () const
 
void editAnnotation ()
 
EncryptionState encryptionState () const
 
const Tag * findTag (const QString &szTagId) const
 
QFont font () const
 
QString fontKey () const
 
virtual bool hasAnnotation () const
 
QByteArray inReplyToIdMD5 () const
 
void invalidateAnnotationCache ()
 
void invalidateTagCache ()
 
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
 
QColor textColor () const
 
ThreadingStatus threadingStatus () const
 
MessageItem * topmostMessage ()
 
unsigned long uniqueId () const
 
- Public Member Functions inherited from MessageList::Core::Item
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 ()
 
void dump (const QString &prefix)
 
Item * firstChildItem () 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
 
void rawAppendChildItem (Item *child)
 
const QString & receiver () const
 
bool recomputeMaxDate ()
 
const QString & sender () const
 
const QString & senderOrReceiver () const
 
void setDate (time_t date)
 
void setIndexGuess (int index)
 
void setInitialExpandStatus (InitialExpandStatus initialExpandStatus)
 
void setItemId (qint64 id)
 
void setMaxDate (time_t date)
 
void setParent (Item *pParent)
 
void setReceiver (const QString &receiver)
 
void setSender (const QString &sender)
 
void setSize (size_t size)
 
void setStatus (const Akonadi::MessageStatus &status)
 
void setSubject (const QString &subject)
 
void setSubjectAndStatus (const QString &subject, const Akonadi::MessageStatus &status)
 
void setViewable (Model *model, bool bViewable)
 
size_t size () const
 
const Akonadi::MessageStatus & status () const
 
QString statusDescription (bool hasNepomukTag) const
 
const QString & subject () const
 
void takeChildItem (Model *model, Item *child)
 
Item * topmostNonRoot ()
 
Type type () const
 
bool useReceiver () const
 
- Public Member Functions inherited from MessageList::Core::ModelInvariantIndex
 ModelInvariantIndex ()
 
virtual ~ModelInvariantIndex ()
 
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)
 
- Protected Member Functions inherited from MessageList::Core::Item
 Item (Type type)
 
 Item (Type type, ItemPrivate *dd)
 

Additional Inherited Members

- Protected Attributes inherited from MessageList::Core::Item
ItemPrivate *const d_ptr
 

Detailed Description

Definition at line 50 of file messageitem.h.

Member Enumeration Documentation

enum MessageList::Core::MessageItem::EncryptionState
Enumerator
NotEncrypted 
PartiallyEncrypted 
FullyEncrypted 
EncryptionStateUnknown 

Definition at line 84 of file messageitem.h.

enum MessageList::Core::MessageItem::SignatureState
Enumerator
NotSigned 
PartiallySigned 
FullySigned 
SignatureStateUnknown 

Definition at line 92 of file messageitem.h.

enum MessageList::Core::MessageItem::ThreadingStatus
Enumerator
PerfectParentFound 

this message found a perfect parent to attach to

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

NonThreadable 

this message does not look as being threadable

Definition at line 76 of file messageitem.h.

Constructor & Destructor Documentation

MessageItem::MessageItem ( )
explicit

Definition at line 266 of file messageitem.cpp.

MessageItem::~MessageItem ( )
virtual

Definition at line 276 of file messageitem.cpp.

MessageItem::MessageItem ( MessageItemPrivate *  dd)
explicitprotected

Definition at line 271 of file messageitem.cpp.

Member Function Documentation

bool MessageItem::aboutToBeRemoved ( ) const

Definition at line 536 of file messageitem.cpp.

QString MessageItem::accessibleText ( const MessageList::Core::Theme *  theme,
int  columnIndex 
)

Definition at line 614 of file messageitem.cpp.

Akonadi::Item MessageList::Core::MessageItem::akonadiItem ( ) const

Definition at line 566 of file messageitem.cpp.

QString MessageItem::annotation ( ) const

Returns the annotation of the message, given that hasAnnotation() is true.

Definition at line 296 of file messageitem.cpp.

QColor MessageItem::backgroundColor ( ) const

Definition at line 382 of file messageitem.cpp.

void MessageItem::editAnnotation ( )

Shows a dialog to edit or delete the annotation.

Definition at line 308 of file messageitem.cpp.

MessageItem::EncryptionState MessageItem::encryptionState ( ) const

Definition at line 464 of file messageitem.cpp.

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 331 of file messageitem.cpp.

QFont MessageItem::font ( ) const

Definition at line 393 of file messageitem.cpp.

QString MessageItem::fontKey ( ) const

Definition at line 423 of file messageitem.cpp.

bool MessageItem::hasAnnotation ( ) const
virtual

Returns true if this message has an annotation.

Reimplemented in MessageList::Core::FakeItem.

Definition at line 286 of file messageitem.cpp.

QByteArray MessageItem::inReplyToIdMD5 ( ) const

Definition at line 488 of file messageitem.cpp.

void MessageItem::invalidateAnnotationCache ( )

Same as invalidateTagCache(), only for the annotation.

Definition at line 356 of file messageitem.cpp.

void MessageItem::invalidateTagCache ( )

Deletes all cached tags.

The next time someone asks this item for the tags, they are fetched from Nepomuk again

Definition at line 350 of file messageitem.cpp.

QByteArray MessageItem::messageIdMD5 ( ) const

Definition at line 476 of file messageitem.cpp.

QByteArray MessageItem::referencesIdMD5 ( ) const

Definition at line 500 of file messageitem.cpp.

void MessageItem::setAboutToBeRemoved ( bool  aboutToBeRemoved)

Definition at line 542 of file messageitem.cpp.

void MessageList::Core::MessageItem::setAkonadiItem ( const Akonadi::Item &  item)

Definition at line 572 of file messageitem.cpp.

void MessageItem::setEncryptionState ( EncryptionState  state)

Definition at line 470 of file messageitem.cpp.

void MessageItem::setGeneralFont ( const QFont &  font)
static

Definition at line 667 of file messageitem.cpp.

void MessageItem::setImportantMessageColor ( const QColor &  color)
static

Definition at line 655 of file messageitem.cpp.

void MessageItem::setImportantMessageFont ( const QFont &  font)
static

Definition at line 679 of file messageitem.cpp.

void MessageItem::setInReplyToIdMD5 ( const QByteArray &  md5)

Definition at line 494 of file messageitem.cpp.

void MessageItem::setMessageIdMD5 ( const QByteArray &  md5)

Definition at line 482 of file messageitem.cpp.

void MessageItem::setReferencesIdMD5 ( const QByteArray &  md5)

Definition at line 506 of file messageitem.cpp.

void MessageItem::setSignatureState ( SignatureState  state)

Definition at line 458 of file messageitem.cpp.

void MessageItem::setStrippedSubjectMD5 ( const QByteArray &  md5)

Definition at line 530 of file messageitem.cpp.

void MessageItem::setSubjectIsPrefixed ( bool  subjectIsPrefixed)

Definition at line 512 of file messageitem.cpp.

void MessageItem::setThreadingStatus ( ThreadingStatus  threadingStatus)

Definition at line 554 of file messageitem.cpp.

void MessageItem::setToDoMessageColor ( const QColor &  color)
static

Definition at line 661 of file messageitem.cpp.

void MessageItem::setToDoMessageFont ( const QFont &  font)
static

Definition at line 685 of file messageitem.cpp.

void MessageItem::setUnreadMessageColor ( const QColor &  color)
static

Definition at line 649 of file messageitem.cpp.

void MessageItem::setUnreadMessageFont ( const QFont &  font)
static

Definition at line 673 of file messageitem.cpp.

MessageItem::SignatureState MessageItem::signatureState ( ) const

Definition at line 452 of file messageitem.cpp.

QByteArray MessageItem::strippedSubjectMD5 ( ) const

Definition at line 524 of file messageitem.cpp.

bool MessageItem::subjectIsPrefixed ( ) const

Definition at line 518 of file messageitem.cpp.

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 635 of file messageitem.cpp.

QList< MessageItem::Tag * > MessageItem::tagList ( ) const
virtual

Returns the list of tags for this item.

Reimplemented in MessageList::Core::FakeItem.

Definition at line 280 of file messageitem.cpp.

QString MessageItem::tagListDescription ( ) const

Definition at line 337 of file messageitem.cpp.

QColor MessageItem::textColor ( ) const

Definition at line 362 of file messageitem.cpp.

MessageItem::ThreadingStatus MessageItem::threadingStatus ( ) const

Definition at line 548 of file messageitem.cpp.

MessageItem * MessageItem::topmostMessage ( )

Definition at line 578 of file messageitem.cpp.

unsigned long MessageItem::uniqueId ( ) const

Definition at line 560 of file messageitem.cpp.


The documentation for this class was generated from the following files:
  • messageitem.h
  • messageitem.cpp
This file is part of the KDE documentation.
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.

messagelist

Skip menu "messagelist"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal