MessageList::Core::MessageItemSetManager
#include <messageitemsetmanager.h>
Public Member Functions | |
bool | addMessageItem (MessageItemSetReference ref, MessageItem *mi) |
void | clearAllSets () |
MessageItemSetReference | createSet () |
QList< MessageItem * > | messageItems (MessageItemSetReference ref) |
void | removeMessageItemFromAllSets (MessageItem *mi) |
void | removeSet (MessageItemSetReference ref) |
int | setCount () const |
Detailed Description
This class manages sets of messageitem references.
It can be used to create a set, add some messages to it and get a reference that later can be used to retrieve the stored messages.
It's used by Model to keep track of jobs requested from outside that operate on sets of MessageItem instances. Model takes care of removing the deleted MessageItem objects from the sets in order to avoid invalid references.
Definition at line 33 of file messageitemsetmanager.h.
Constructor & Destructor Documentation
◆ MessageItemSetManager()
MessageItemSetManager::MessageItemSetManager | ( | ) |
Definition at line 14 of file messageitemsetmanager.cpp.
◆ ~MessageItemSetManager()
MessageItemSetManager::~MessageItemSetManager | ( | ) |
Definition at line 19 of file messageitemsetmanager.cpp.
Member Function Documentation
◆ addMessageItem()
|
nodiscard |
Definition at line 96 of file messageitemsetmanager.cpp.
◆ clearAllSets()
void MessageItemSetManager::clearAllSets | ( | ) |
Definition at line 25 of file messageitemsetmanager.cpp.
◆ createSet()
|
nodiscard |
Definition at line 74 of file messageitemsetmanager.cpp.
◆ messageItems()
|
nodiscard |
Definition at line 48 of file messageitemsetmanager.cpp.
◆ removeMessageItemFromAllSets()
void MessageItemSetManager::removeMessageItemFromAllSets | ( | MessageItem * | mi | ) |
Definition at line 58 of file messageitemsetmanager.cpp.
◆ removeSet()
void MessageItemSetManager::removeSet | ( | MessageItemSetReference | ref | ) |
Definition at line 38 of file messageitemsetmanager.cpp.
◆ setCount()
|
nodiscard |
Definition at line 33 of file messageitemsetmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.