[pim/kmail] src: Prepare to implement command abouit changing flags

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7cbf98047b52808115de1757a9f34c8fb2edf058 by Laurent Montel.
Committed on 28/07/2026 at 20:07.
Pushed by mlaurent into branch 'master'.

Prepare to implement command abouit changing flags

M  +10   -0    src/kmundoredomanager.cpp
M  +6    -0    src/kmundoredomanager.h

https://invent.kde.org/pim/kmail/-/commit/7cbf98047b52808115de1757a9f34c8fb2edf058

diff --git a/src/kmundoredomanager.cpp b/src/kmundoredomanager.cpp
index 1b32143b1..00cd381d2 100644
--- a/src/kmundoredomanager.cpp
+++ b/src/kmundoredomanager.cpp
@@ -130,3 +130,13 @@ KMUndoInfoChangeStatusItems::KMUndoInfoChangeStatusItems(KMUndoRedoManager *mana
     : KMUndoBase(manager, parent)
 {
 }
+
+Akonadi::Item::List KMUndoInfoChangeStatusItems::items() const
+{
+    return mItems;
+}
+
+void KMUndoInfoChangeStatusItems::setItems(const Akonadi::Item::List &newItems)
+{
+    mItems = newItems;
+}
diff --git a/src/kmundoredomanager.h b/src/kmundoredomanager.h
index 643750903..c1ea8dd2a 100644
--- a/src/kmundoredomanager.h
+++ b/src/kmundoredomanager.h
@@ -44,6 +44,12 @@ class KMUndoInfoChangeStatusItems : public KMUndoBase
 {
 public:
     explicit KMUndoInfoChangeStatusItems(KMUndoRedoManager *manager, QUndoCommand *parent = nullptr);
+
+    [[nodiscard]] Akonadi::Item::List items() const;
+    void setItems(const Akonadi::Item::List &newItems);
+
+private:
+    Akonadi::Item::List mItems;
 };
 
 class KMUndoInfoMoveItems : public KMUndoBase
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.