Search for usage in LXR

MessageList::Core::MessageItemSetManager Class Reference

#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()

bool MessageItemSetManager::addMessageItem ( MessageItemSetReference ref,
MessageItem * mi )

Definition at line 96 of file messageitemsetmanager.cpp.

◆ clearAllSets()

void MessageItemSetManager::clearAllSets ( )

Definition at line 25 of file messageitemsetmanager.cpp.

◆ createSet()

MessageItemSetReference MessageItemSetManager::createSet ( )

Definition at line 74 of file messageitemsetmanager.cpp.

◆ messageItems()

QList< MessageItem * > MessageItemSetManager::messageItems ( MessageItemSetReference ref)

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()

int MessageItemSetManager::setCount ( ) const

Definition at line 33 of file messageitemsetmanager.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 11:49:56 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.