vfs: check userland buffers before reading them.
[haiku.git] / src / apps / haikudepot / edits_generic / UndoableEdit.cpp
blobfc1e2af8f29c652f5b794dc522152d73fa42cb81
1 /*
2 * Copyright 2006-2012, Stephan Aßmus <superstippi@gmx.de>
3 * Distributed under the terms of the MIT License.
4 */
6 #include "UndoableEdit.h"
8 #include <stdio.h>
10 #include <OS.h>
11 #include <String.h>
14 //static int32 sInstanceCount = 0;
17 UndoableEdit::UndoableEdit()
19 fTimeStamp(system_time())
21 // sInstanceCount++;
22 // printf("UndoableEdits: %ld\n", sInstanceCount);
26 UndoableEdit::~UndoableEdit()
28 // sInstanceCount--;
29 // printf("UndoableEdits: %ld\n", sInstanceCount);
33 status_t
34 UndoableEdit::InitCheck()
36 return B_NO_INIT;
40 status_t
41 UndoableEdit::Perform(EditContext& context)
43 return B_ERROR;
47 status_t
48 UndoableEdit::Undo(EditContext& context)
50 return B_ERROR;
54 status_t
55 UndoableEdit::Redo(EditContext& context)
57 return Perform(context);
61 void
62 UndoableEdit::GetName(BString& name)
64 name << "Name of edit goes here.";
68 bool
69 UndoableEdit::UndoesPrevious(const UndoableEdit* previous)
71 return false;
75 bool
76 UndoableEdit::CombineWithNext(const UndoableEdit* next)
78 return false;
82 bool
83 UndoableEdit::CombineWithPrevious(const UndoableEdit* previous)
85 return false;