27 bool Cancelled_ =
false;
28 QVariant ReturnValue_;
49 void CancelDefault ()
override;
60 bool IsCancelled ()
const;
64 const QVariant& GetReturnValue ()
const override;
68 void SetReturnValue (
const QVariant&)
override;
84 if (!Name2NewVal_.contains (name))
87 const QVariant& newVal = Name2NewVal_ [name];
88 if (!newVal.isValid ())
91 val = newVal.value<T> ();
96 QVariant GetValue (
const QByteArray&)
const override;
100 void SetValue (
const QByteArray&,
const QVariant&)
override;
Class for hook-based communication between plugins.
Standard implementation of IHookProxy.
void FillValue(const QByteArray &name, T &val)
Fills the value of the given parameter set by SetValue().
DefaultHookProxy()=default
Creates a new hook proxy.
std::shared_ptr< DefaultHookProxy > DefaultHookProxy_ptr