Messagelib
9#include "cryptobodypartmemento.h"
14namespace MimeTreeParser
17class CompositeMemento :
public CryptoBodyPartMemento
21 explicit CompositeMemento() =
default;
22 ~CompositeMemento()
override;
24 bool start()
override;
27 void addMemento(CryptoBodyPartMemento *memento);
29 [[nodiscard]] QList<CryptoBodyPartMemento *> mementos()
const
34 [[nodiscard]]
auto size()
const
36 return mMementos.size();
42 auto it = std::find_if(mMementos.begin(), mMementos.end(), [](
auto *memento) {
43 return qobject_cast<std::decay_t<T> *>(memento) != nullptr;
45 if (it != mMementos.cend()) {
46 return static_cast<T *
>(*it);
53 void subMementoFinished();
54 QList<CryptoBodyPartMemento *> mMementos;
55 int mRunningMementos = 0;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:09 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.