[pim/kmail] src: Prepare UndoInfoBase class

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

Prepare UndoInfoBase class

M  +9    -0    src/undostack.h

https://invent.kde.org/pim/kmail/-/commit/b1501807a7fb1899afcdd09804c66ec33f89bdfc

diff --git a/src/undostack.h b/src/undostack.h
index ec637775d..b4073b275 100644
--- a/src/undostack.h
+++ b/src/undostack.h
@@ -19,6 +19,15 @@ class KJob;
 
 namespace KMail
 {
+class UndoInfoBase
+{
+public:
+    UndoInfoBase() = default;
+    virtual ~UndoInfoBase() { };
+    virtual void undo() = 0;
+    [[nodiscard]] virtual QString undoInfo() const = 0;
+};
+
 /** A class for storing Undo information. */
 class UndoInfo
 {
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.