13 #ifndef BERRYCOMMAND_H_
14 #define BERRYCOMMAND_H_
28 class CommandCategory;
116 QString helpContextId;
123 QList<SmartPointer<IParameter> > parameters;
225 void Define(
const QString& name,
const QString& description,
229 const QString& helpContextId =
"");
276 void FireNotDefined(
const NotDefinedException* e);
286 void FireNotEnabled(
const NotEnabledException* e);
296 void FireNotHandled(
const NotHandledException* e);
307 void FirePostExecuteFailure(
const ExecutionException* e);
SmartPointer< IHandler > GetHandler() const
berryObjectMacro(Command)
void Define(const QString &name, const QString &description, const SmartPointer< CommandCategory > category, const QList< SmartPointer< IParameter > > ¶meters=QList< SmartPointer< IParameter > >(), const SmartPointer< ParameterType > &returnType=SmartPointer< ParameterType >(nullptr), const QString &helpContextId="")
void AddExecutionListener(IExecutionListener *executionListener)
QList< SmartPointer< IParameter > > GetParameters() const
SmartPointer< ParameterType > GetReturnType() const
void AddState(const QString &id, const SmartPointer< State > &state) override
static bool DEBUG_HANDLERS
void SetEnabled(const Object::Pointer &evaluationContext)
static QString DEBUG_HANDLERS_COMMAND_ID
bool operator<(const Object *object) const override
void AddCommandListener(ICommandListener *commandListener)
SmartPointer< IParameter > GetParameter(const QString ¶meterId) const
bool SetHandler(const SmartPointer< IHandler > handler)
void RemoveExecutionListener(IExecutionListener *executionListener)
void RemoveCommandListener(ICommandListener *commandListener)
Command(const QString &id)
Object::Pointer ExecuteWithChecks(const SmartPointer< const ExecutionEvent > event)
static bool DEBUG_COMMAND_EXECUTION
SmartPointer< ParameterType > GetParameterType(const QString ¶meterId) const
QString GetHelpContextId() const
void RemoveState(const QString &stateId) override
QString ToString() const override
Light weight base class for most BlueBerry classes.
Implements transparent reference counting.