23 #include <QTextStream> 36 : applicationContext(appContext), command(cmd), parameters(params), trigger(trg)
43 return applicationContext;
52 const QString& parameterId)
const 56 throw ExecutionException(
57 "No command is associated with this execution event");
82 catch (
const NotDefinedException& e)
84 throw ExecutionException(
"Command is not defined", e);
95 ParameterMap::const_iterator res = parameters.find(parameterId);
96 if (res != parameters.end())
114 QTextStream ss(&str);
115 ss <<
"ExecutionEvent(" << command->ToString() <<
',' << parameters.size() <<
',' 116 << (trigger ? trigger->ToString() : QString()) <<
',' << applicationContext->ToString() <<
')';
berry::SmartPointer< const Self > ConstPointer
const Object::Pointer GetApplicationContext() const
const Object::ConstPointer GetObjectParameterForExecution(const QString ¶meterId) const
object value (collection of name/value pairs).
QString GetParameter(const QString ¶meterId) const
const Object::ConstPointer GetTrigger() const
const Command::ConstPointer GetCommand() const
QString ToString() const override
const ParameterMap & GetParameters() const
QHash< QString, QString > ParameterMap