LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
defaulthookproxy.cpp
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#include "defaulthookproxy.h"
10
11namespace LC::Util
12{
14 : Name2NewVal_ { std::move (map) }
15 {
16 }
17
19 {
20 Cancelled_ = true;
21 }
22
24 {
25 return Cancelled_;
26 }
27
29 {
30 return ReturnValue_;
31 }
32
34 {
35 ReturnValue_ = val;
36 }
37
39 {
40 return Name2NewVal_.value (name);
41 }
42
44 {
45 Name2NewVal_ [name] = val;
46 }
47}
void SetValue(const QByteArray &, const QVariant &) override
Reimplemented from IHookProxy::SetValue().
void SetReturnValue(const QVariant &) override
Reimplemented from IHookProxy::SetReturnValue().
bool IsCancelled() const
Returns whether the default implementation is canceled.
QVariant GetValue(const QByteArray &) const override
Reimplemented from IHookProxy::GetValue().
const QVariant & GetReturnValue() const override
Reimplemented from IHookProxy::GetReturnValue().
DefaultHookProxy()=default
Creates a new hook proxy.
void CancelDefault() override
Reimplemented from IHookProxy::CancelDefault().
Definition anutil.h:17
Container< T > Filter(const Container< T > &c, F f)
Definition prelude.h:118
STL namespace.