Messagelib
item.h
222 * Returns the topmost parent item that is not a Root item (that is, is a Message or GroupHeader).
268 * A string with a text rappresentation of date() obtained via Manager. This is computed on-the-fly
285 * A string with a text rappresentation of maxDate() obtained via Manager. This is computed on-the-fly
366 void initialSetup(time_t date, size_t size, const QString &sender, const QString &receiver, bool useReceiver);
A structure used with MessageList::Item::childItemStats().
Definition item.h:173
A single item of the MessageList tree managed by MessageList::Model.
Definition item.h:36
Item * topmostNonRoot()
Returns the topmost parent item that is not a Root item (that is, is a Message or GroupHeader).
Definition item.cpp:224
bool recomputeMaxDate()
Recompute the maximum date from the current children list.
Definition item.cpp:326
const QString & senderOrReceiver() const
Returns the sender or the receiver, depending on the underlying StorageModel settings.
Definition item.cpp:519
const QString & receiver() const
Returns the receiver associated to this item.
Definition item.cpp:504
QString formattedMaxDate() const
A string with a text rappresentation of maxDate() obtained via Manager.
Definition item.cpp:317
QString formattedDate() const
A string with a text rappresentation of date() obtained via Manager.
Definition item.cpp:308
size_t size() const
Returns the size of this item (size of the Message, mainly)
Definition item.cpp:459
void setSize(size_t size)
Sets the size of this item (size of the Message, mainly)
Definition item.cpp:464
void rawAppendChildItem(Item *child)
Appends a child item without inserting it via the model.
Definition item.cpp:592
QString statusDescription() const
Returns a string describing the status e.g: "Read, Forwarded, Important".
Definition item.cpp:247
int appendChildItem(Model *model, Item *child)
Appends an Item to this item's child list.
Definition item.cpp:600
bool useReceiver() const
Returns whether sender or receiver is supposed to be displayed.
Definition item.cpp:529
const Akonadi::MessageStatus & status() const
Returns the status associated to this Item.
Definition item.cpp:449
void setReceiver(const QString &receiver)
Sets the sender associated to this item.
Definition item.cpp:509
@ InvisibleRoot
This item is just Item and it's the only InvisibleRoot per Model.
Definition item.h:47
void initialSetup(time_t date, size_t size, const QString &sender, const QString &receiver, bool useReceiver)
This is meant to be called right after the constructor.
Definition item.cpp:554
void killAllChildItems()
Kills all the child items without emitting any signal, recursively.
Definition item.cpp:425
time_t maxDate() const
Returns the maximum date in the subtree originating from this item.
Definition item.cpp:479
InitialExpandStatus
Specifies the initial expand status for the item that should be applied when it's attached to the vie...
Definition item.h:55
void setMaxDate(time_t date)
Sets the maximum date in the subtree originating from this item.
Definition item.cpp:484
void childItemStats(ChildItemStats &stats) const
Gathers statistics about child items.
Definition item.cpp:43
void setStatus(Akonadi::MessageStatus status)
Sets the status associated to this Item.
Definition item.cpp:454
void takeChildItem(Model *model, Item *child)
Removes a child from this item's child list without deleting it.
Definition item.cpp:640
void setSender(const QString &sender)
Sets the sender associated to this item.
Definition item.cpp:494
void setIndexGuess(int index)
Sets the cached guess for the index of this item in the parent's child list.
Definition item.cpp:219
void setSubject(const QString &subject)
Sets the subject associated to this Item.
Definition item.cpp:539
Item * parent() const
Returns the parent Item in the tree, or 0 if this item isn't attached to the tree.
Definition item.cpp:439
void setFolder(const QString &folder)
Sets the folder associated to this Item.
Definition item.cpp:549
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:167
void setSubjectAndStatus(const QString &subject, Akonadi::MessageStatus status)
This is meant to be called right after the constructor for MessageItem objects.
Definition item.cpp:584
This class manages the huge tree of displayable objects: GroupHeaderItems and MessageItems.
Definition model.h:54
Q_SCRIPTABLE CaptureState status()
The implementation independent part of the MessageList library.
Definition aggregation.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:05:41 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:05:41 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.