repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / mediaplayer / support / Command.h
blobd43c19dc8a0c707e59e39dbb1f390d42b6d74761
1 /*
2 * Copyright 2006, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
9 #ifndef COMMAND_H
10 #define COMMAND_H
12 #include <SupportDefs.h>
13 #include <String.h>
15 class BString;
17 class Command {
18 public:
19 Command();
20 virtual ~Command();
22 virtual status_t InitCheck();
24 virtual status_t Perform();
25 virtual status_t Undo();
26 virtual status_t Redo();
28 virtual void GetName(BString& name);
30 virtual bool UndoesPrevious(const Command* previous);
31 virtual bool CombineWithNext(const Command* next);
32 virtual bool CombineWithPrevious(const Command* previous);
34 protected:
35 const char* _GetString(uint32 key,
36 const char* defaultString) const;
38 bigtime_t fTimeStamp;
41 #endif // COMMAND_H