* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#include "Command.h"
#include <stdio.h>
#include <OS.h>
Command::Command()
: fTimeStamp(system_time())
{
}
Command::~Command()
{
}
status_t
Command::InitCheck()
{
return B_NO_INIT;
}
status_t
Command::Perform()
{
return B_ERROR;
}
status_t
Command::Undo()
{
return B_ERROR;
}
status_t
Command::Redo()
{
return Perform();
}
void
Command::GetName(BString& name)
{
name << "Name of action goes here.";
}
bool
Command::UndoesPrevious(const Command* previous)
{
return false;
}
bool
Command::CombineWithNext(const Command* next)
{
return false;
}
bool
Command::CombineWithPrevious(const Command* previous)
{
return false;
}
const char*
Command::_GetString(uint32 key, const char* defaultString) const
{
return defaultString;
}