HaikuDepot: notify work status from main window
[haiku.git] / src / apps / haikudepot / edits_generic / EditStack.h
blob051ca9a0613888c6d0002a059103716bce681fe4
1 /*
2 * Copyright 2012, Stephan Aßmus <superstippi@gmx.de>
3 * Distributed under the terms of the MIT License.
4 */
6 #ifndef EDIT_STACK_H
7 #define EDIT_STACK_H
9 #include "List.h"
10 #include "UndoableEdit.h"
12 class EditStack {
13 public:
14 EditStack();
15 virtual ~EditStack();
17 bool Push(const UndoableEditRef& edit);
18 UndoableEditRef Pop();
20 const UndoableEditRef& Top() const;
22 bool IsEmpty() const;
24 private:
25 typedef List<UndoableEditRef, false> EditList;
27 EditList fEdits;
30 #endif // EDIT_STACK_H