messagelist
Go to the documentation of this file.
21 #ifndef __MESSAGELIST_CORE_ITEM_H__
22 #define __MESSAGELIST_CORE_ITEM_H__
30 #include <kmime/kmime_headers.h>
32 #include <akonadi/kmime/messagestatus.h>
102 InitialExpandStatus initialExpandStatus()
const;
107 void setInitialExpandStatus( InitialExpandStatus initialExpandStatus );
112 bool isViewable()
const;
118 bool hasAncestor(
const Item * it )
const;
126 void setViewable(
Model *model,
bool bViewable );
136 Item * childItem(
int idx )
const;
141 Item * firstChildItem()
const;
147 Item * itemBelowChild(
Item * child );
153 Item * itemAboveChild(
Item * child );
158 Item * deepestItem();
175 void dump(
const QString &prefix );
180 int childItemCount()
const;
185 bool hasChildren()
const;
198 : mTotalChildCount( 0 ), mUnreadChildCount( 0 )
207 void childItemStats( ChildItemStats &stats )
const;
213 int indexOfChildItem(
Item *item )
const;
223 void setIndexGuess(
int index );
230 Item * parent()
const;
236 void setParent(
Item *pParent );
241 Item * topmostNonRoot();
246 const Akonadi::MessageStatus & status()
const;
251 void setStatus(
const Akonadi::MessageStatus &status );
256 QString statusDescription()
const;
266 void setSize(
size_t size );
282 void setDate( time_t date );
294 time_t maxDate()
const;
299 void setMaxDate( time_t date );
305 QString formattedMaxDate()
const;
311 bool recomputeMaxDate();
316 const QString & sender()
const;
321 void setSender(
const QString &sender );
326 const QString & receiver()
const;
331 void setReceiver(
const QString &receiver );
336 const QString & senderOrReceiver()
const;
341 bool useReceiver()
const;
346 const QString & subject()
const;
351 void setSubject(
const QString &subject );
358 void initialSetup( time_t date,
size_t size,
363 void setItemId(qint64
id);
364 qint64 itemId()
const;
366 void setParentCollectionId(qint64
id);
367 qint64 parentCollectionId()
const;
373 void setSubjectAndStatus(
const QString &subject,
374 const Akonadi::MessageStatus &status );
380 int appendChildItem(
Model *model,
Item *child );
387 void rawAppendChildItem(
Item * child );
393 void takeChildItem(
Model *model,
Item *child );
399 void killAllChildItems();
403 Q_DECLARE_PRIVATE(
Item )
Must expand when this item becomes viewable.
Type
The type of the Item.
unsigned int mUnreadChildCount
unsigned int mTotalChildCount
This class manages the huge tree of displayable objects: GroupHeaderItems and MessageItems.
This item is a GroupHeaderItem.
InitialExpandStatus
Specifies the initial expand status for the item that should be applied when it's attached to the vie...
This item is a MessageItem.
A single item of the MessageList tree managed by MessageList::Model.
#define MESSAGELIST_EXPORT
A structure used with MessageList::Item::childItemStats().
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
KDE's Doxygen guidelines are available online.