4 * Class to remember the current status of the data,
5 * and make it possible to see whether the data has
6 * changed in any way since the DataStatus was requested
8 public class DataStatus
10 private int _undoSize = 0;
11 private int _numUndos = 0;
15 * @param inUndoSize current size of undo stack
16 * @param inNumUndos number of operations undone
18 public DataStatus(int inUndoSize, int inNumUndos)
20 _undoSize = inUndoSize;
21 _numUndos = inNumUndos;
25 * Has the data changed compared to the previous status?
26 * @param inPreviousStatus previous status obtained from App
27 * @return true if the status is now different
29 public boolean hasDataChanged(DataStatus inPreviousStatus)
31 return _undoSize != inPreviousStatus._undoSize
32 || _numUndos != inPreviousStatus._numUndos;