LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
coreproxyholder.h
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
#pragma once
10
11
#include <
interfaces/core/icoreproxyfwd.h
>
12
13
namespace
LC::Util
14
{
15
struct
CoreProxyHolder
16
{
17
static
ICoreProxy_ptr
Proxy_
;
18
19
static
void
Set
(
ICoreProxy_ptr
proxy)
20
{
21
Proxy_
= std::move (proxy);
22
}
23
24
static
ICoreProxy_ptr
Get
()
25
{
26
return
Proxy_
;
27
}
28
};
29
}
LC::Util
Definition:
icoreproxy.h:33
LC::Util::CoreProxyHolder::Set
static void Set(ICoreProxy_ptr proxy)
Definition:
coreproxyholder.h:31
LC::Util::CoreProxyHolder::Proxy_
static ICoreProxy_ptr Proxy_
Definition:
coreproxyholder.h:29
LC::Util::CoreProxyHolder::Get
static ICoreProxy_ptr Get()
Definition:
coreproxyholder.h:36
ICoreProxy_ptr
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition:
icoreproxy.h:181
icoreproxyfwd.h
src
util
xpc
coreproxyholder.h
Generated by
1.8.17