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:248
void setIndexGuess(int index)
Sets the cached guess for the index of this item in the parent's child list.
Definition: item.cpp:187
qint64 mParentCollectionId
The Akonadi ID of collection that this particular item comes from (can be virtual collection) ...
Definition: item_p.h:247
const QString & senderOrReceiver() const
Returns the sender or the receiver, depending on the underlying StorageModel settings.
Definition: item.cpp:461
Definition: item_p.h:41
const QString & receiver() const
Returns the receiver associated to this item.
Definition: item.cpp:451
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:322
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:281
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:302
const QString & subject() const
Returns the subject associated to this Item.
Definition: item.cpp:471
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:468
size_t size() const
Returns the size of this item (size of the Message, mainly)
Definition: item.cpp:411
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:263
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:339
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:447
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:322
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:260
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:399
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:362
int appendChildItem(Model *model, Item *child)
Appends an Item to this item's child list.
Definition: item.cpp:530
void endInsertRows()
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:420
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:379
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:278
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:305
Item::InitialExpandStatus mInitialExpandStatus
The expand status we have to honor when we attach to the viewable root.
Definition: item_p.h:251
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:319
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:444
void beginInsertRows(const QModelIndex &parent, int first, int last)
A helper class used with MessageList::Item::childItemNeedsReSorting() and MessageList::Item::insertCh...
Definition: item_p.h:359
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:342
time_t maxDate() const
Returns the maximum date in the subtree originating from this item.
Definition: item.cpp:431
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:471
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:402
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:401
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:423
static bool firstGreaterOrEqual(Item *first, Item *second)
Definition: item_p.h:382
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:613
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.