52 virtual Modifiers modifiers()
const override;
79 [[nodiscard]]
QString className() const noexcept;
84 [[nodiscard]]
Controller *controller() const noexcept;
89 inline
bool dispatch(
Context *c) {
return c->execute(
this); }
95 [[nodiscard]]
virtual bool match(
int numberOfArgs)
const noexcept;
107 [[nodiscard]]
virtual bool matchCaptures(
int numberOfCaptures)
const noexcept;
112 [[nodiscard]]
QString ns() const noexcept;
119 [[nodiscard]] virtual qint8 numberOfArgs() const;
125 [[nodiscard]] virtual qint8 numberOfCaptures() const;
129 friend class ControllerPrivate;
135 explicit
Action(ActionPrivate *ptr,
QObject *parent =
nullptr);
140 bool doExecute(
Context *c) override;
155 void setupAction(const QVariantHash &args,
Application *app);