Move file utility function into pbd/file_utils.h and into PBD namespace
[ardour.git] / libs / pbd / pbd / undo.h
index 6eb9e00056c140bddf6d67981fdbc1057c3a7d3e..11ff2bf321b806106001ce8a9f27d768b890c86a 100644 (file)
 #include <sigc++/bind.h>
 #include <sys/time.h>
 
-#include "pbd/signals.h"
 #include "pbd/command.h"
 
 typedef sigc::slot<void> UndoAction;
 
-class UndoTransaction : public Command, public PBD::ScopedConnectionList
+class UndoTransaction : public Command
 {
   public:
        UndoTransaction ();
        UndoTransaction (const UndoTransaction&);
        UndoTransaction& operator= (const UndoTransaction&);
+       ~UndoTransaction ();
 
        void clear ();
        bool empty() const;
@@ -67,9 +67,6 @@ class UndoTransaction : public Command, public PBD::ScopedConnectionList
 
        friend void command_death (UndoTransaction*, Command *);
        
-       friend class UndoHistory;
-
-       ~UndoTransaction ();
        void about_to_explicitly_delete ();
 };