Code

Fix change in revision 9947 to be consistent with rest of the codebase.
[inkscape.git] / src / undo-stack-observer.h
index cd17c467575ca2415c89d0fb8d5db2b78658c3fc..5bf405f7f290f210d3695c2e1d0d155b2ac80ea4 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef __UNDO_COMMIT_OBSERVER_H__
 #define __UNDO_COMMIT_OBSERVER_H__
 
+#include "gc-managed.h"
+
 namespace Inkscape {
 
 class Event;
@@ -32,7 +34,7 @@ class Event;
  * UndoStackObservers should not be used on their own.  Instead, they should be registered
  * with a CompositeUndoStackObserver.
  */
-class UndoStackObserver {
+class UndoStackObserver : public GC::Managed<> {
 public:
        UndoStackObserver() { }
        virtual ~UndoStackObserver() { }
@@ -57,6 +59,17 @@ public:
         * \param log Pointer to an Event describing the committed events.
         */
        virtual void notifyUndoCommitEvent(Event* log) = 0;
+
+       /**
+        * Triggered when the undo log is cleared.
+        */
+       virtual void notifyClearUndoEvent() = 0;
+
+       /**
+        * Triggered when the redo log is cleared.
+        */
+       virtual void notifyClearRedoEvent() = 0;
+
 };
 
 }