![]() |
LeechCraft
0.6.70-13605-g8cd066ad6a
Modular cross-platform feature rich live environment.
|
Standard implementation of IHookProxy. More...
#include "defaulthookproxy.h"
Inheritance diagram for LC::Util::DefaultHookProxy:
Collaboration diagram for LC::Util::DefaultHookProxy:Public Member Functions | |
| DefaultHookProxy ()=default | |
| Creates a new hook proxy. More... | |
| DefaultHookProxy (QMap< QByteArray, QVariant > values) | |
| Creates a new hook proxy, initialized with the given values. More... | |
| void | CancelDefault () |
| Reimplemented from IHookProxy::CancelDefault(). More... | |
| bool | IsCancelled () const |
| Returns whether the default implementation is canceled. More... | |
| const QVariant & | GetReturnValue () const |
| Reimplemented from IHookProxy::GetReturnValue(). More... | |
| void | SetReturnValue (const QVariant &) |
| Reimplemented from IHookProxy::SetReturnValue(). More... | |
| template<typename T > | |
| void | FillValue (const QByteArray &name, T &val) |
| Fills the value of the given parameter set by SetValue(). More... | |
| QVariant | GetValue (const QByteArray &) const |
| Reimplemented from IHookProxy::GetValue(). More... | |
| void | SetValue (const QByteArray &, const QVariant &) |
| Reimplemented from IHookProxy::SetValue(). More... | |
Public Member Functions inherited from LC::IHookProxy | |
| virtual | ~IHookProxy () |
Standard implementation of IHookProxy.
This class is the standard implementation of the IHookProxy interface and can be used in most cases.
Definition at line 99 of file defaulthookproxy.h.
|
default |
Creates a new hook proxy.
| LC::Util::DefaultHookProxy::DefaultHookProxy | ( | QMap< QByteArray, QVariant > | values | ) |
Creates a new hook proxy, initialized with the given values.
| [in] | values | The initial values of this proxy's parameters. |
Definition at line 88 of file defaulthookproxy.cpp.
|
virtual |
Reimplemented from IHookProxy::CancelDefault().
Implements LC::IHookProxy.
Definition at line 93 of file defaulthookproxy.cpp.
|
inline |
Fills the value of the given parameter set by SetValue().
If SetValue() has been called with the given parameter name this function sets val to that value, otherwise it does nothing.
| [in] | name | The name of the parameter. |
| [out] | val | The value to fill. |
| T | The type of the value, which should be known to Qt's metatypes system so that QVariant::value<T>() is valid. |
Definition at line 182 of file defaulthookproxy.h.
|
virtual |
Reimplemented from IHookProxy::GetReturnValue().
Implements LC::IHookProxy.
Definition at line 103 of file defaulthookproxy.cpp.
|
virtual |
Reimplemented from IHookProxy::GetValue().
Implements LC::IHookProxy.
Definition at line 113 of file defaulthookproxy.cpp.
| bool LC::Util::DefaultHookProxy::IsCancelled | ( | ) | const |
Returns whether the default implementation is canceled.
This function returns whether CancelDefault() has been called at least once.
Definition at line 98 of file defaulthookproxy.cpp.
|
virtual |
Reimplemented from IHookProxy::SetReturnValue().
Implements LC::IHookProxy.
Definition at line 108 of file defaulthookproxy.cpp.
|
virtual |
Reimplemented from IHookProxy::SetValue().
Implements LC::IHookProxy.
Definition at line 118 of file defaulthookproxy.cpp.