messagelist
item_p.h
Go to the documentation of this file.
28 // See the MessageList::ItemPrivate::insertChildItem() function below for an explaination of this macro.
92 template< class ItemComparator, bool bAscending > int GCC_DONT_INLINE_THIS insertChildItem( Model *model, Item *child )
108 if ( ItemComparator::firstGreaterOrEqual( child, pivot ) ) // gcc: <-- inline this instead, thnx
109 return q->appendChildItem( model, child ); // this is very likely in date based comparisons (FIXME: not in other ones)
119 if ( ItemComparator::firstGreaterOrEqual( pivot, child ) ) // gcc: <-- inline this instead, thnx
137 if ( ItemComparator::firstGreaterOrEqual( child, pivot ) ) // gcc: <-- inline this instead, thnx
149 if ( ItemComparator::firstGreaterOrEqual( child, pivot ) ) // gcc: <-- inline this instead, thnx
bool childItemNeedsReSorting(Item *child)
Checks if the specified child item is actually in the wrong position in the child list and returns tr...
Definition: item_p.h:191
Akonadi::MessageStatus mStatus
The status of the message (may be extended to groups in the future)
Definition: item_p.h:247
void setIndexGuess(int index)
Sets the cached guess for the index of this item in the parent's child list.
Definition: item.cpp:187
const QString & senderOrReceiver() const
Returns the sender or the receiver, depending on the underlying StorageModel settings.
Definition: item.cpp:462
Definition: item_p.h:41
const QString & receiver() const
Returns the receiver associated to this item.
Definition: item.cpp:452
void setViewable(Model *model, bool bViewable)
Makes this item viewable, that is, notifies its existence to any listener attacched to the "rowsInser...
Definition: item.cpp:323
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:280
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:301
const QString & subject() const
Returns the subject associated to this Item.
Definition: item.cpp:472
size_t size() const
Returns the size of this item (size of the Message, mainly)
Definition: item.cpp:412
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:262
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:338
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:446
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:321
This class manages the huge tree of displayable objects: GroupHeaderItems and MessageItems.
Definition: model.h:77
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:259
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:398
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:361
int appendChildItem(Model *model, Item *child)
Appends an Item to this item's child list.
Definition: item.cpp:521
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:419
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:378
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:277
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:304
Item::InitialExpandStatus mInitialExpandStatus
The expand status we have to honor when we attach to the viewable root.
Definition: item_p.h:250
int GCC_DONT_INLINE_THIS insertChildItem(Model *model, Item *child)
Implements "in the middle" insertions of child items.
Definition: item_p.h:92
InitialExpandStatus
Specifies the initial expand status for the item that should be applied when it's attached to the vie...
Definition: item.h:73
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:52
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:318
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:443
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:358
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:341
time_t maxDate() const
Returns the maximum date in the subtree originating from this item.
Definition: item.cpp:432
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:401
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: model.cpp:545
const Akonadi::MessageStatus & status() const
Returns the status associated to this Item.
Definition: item.cpp:402
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:422
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:381
int indexOfChildItem(Item *item) const
Returns the actual index of the child Item item or -1 if item is not a child of this Item...
Definition: item.cpp:173
void childItemDead(Item *child)
Internal handler for managing the children list.
Definition: item.cpp:604
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
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.