libzypp
17.34.1
contextfacade.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
9
#ifndef ZYPP_NG_CONTEXTFACADE_INCLUDED
10
#define ZYPP_NG_CONTEXTFACADE_INCLUDED
11
12
#include "
zypp/ng/context.h
"
13
#include <
zypp/ng/workflows/mediafacade.h
>
14
15
namespace
zypp
{
16
DEFINE_PTR_TYPE
(
KeyRing
);
17
class
ZConfig;
18
}
19
20
namespace
zyppng
{
21
22
ZYPP_FWD_DECL_TYPE_WITH_REFS
( SyncContext );
23
24
using
KeyRing
=
zypp::KeyRing
;
25
using
KeyRingRef
= zypp::KeyRing_Ptr;
26
27
class
ZYPP_API
SyncContext
{
28
29
ZYPP_ADD_CREATE_FUNC
(
SyncContext
)
30
31
public
:
32
ZYPP_DECL_PRIVATE_CONSTR
(
SyncContext
);
33
34
using
ProvideType
=
MediaSyncFacade
;
35
36
MediaSyncFacadeRef provider()
const
;
37
KeyRingRef
keyRing ()
const
;
38
zypp::ZConfig
&config();
39
40
private
:
41
MediaSyncFacadeRef
_media
;
42
};
43
44
template
<
typename
OpType>
45
using
MaybeAsyncContextRef
=
std::conditional_t<detail::is_async_op_v<OpType>
, ContextRef, SyncContextRef>;
46
47
48
}
49
50
51
52
#endif
zyppng::KeyRing
zypp::KeyRing KeyRing
Definition:
context.h:28
context.h
ZYPP_API
#define ZYPP_API
Definition:
Globals.h:59
ZYPP_ADD_CREATE_FUNC
#define ZYPP_ADD_CREATE_FUNC(Class)
Definition:
zyppglobal.h:196
zyppng::SyncContext::_media
MediaSyncFacadeRef _media
Definition:
contextfacade.h:41
zyppng::KeyRingRef
zypp::KeyRing_Ptr KeyRingRef
Definition:
context.h:29
zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS
ZYPP_FWD_DECL_TYPE_WITH_REFS(Context)
zypp::DEFINE_PTR_TYPE
DEFINE_PTR_TYPE(Application)
zypp::ZConfig
Interim helper class to collect global options and settings.
Definition:
ZConfig.h:63
std::conditional_t
typename conditional< B, T, F >::type conditional_t
Definition:
TypeTraits.h:39
zyppng::SyncContext
Definition:
contextfacade.h:27
mediafacade.h
ZYPP_DECL_PRIVATE_CONSTR
#define ZYPP_DECL_PRIVATE_CONSTR(Class)
Definition:
zyppglobal.h:212
zyppng::MaybeAsyncContextRef
std::conditional_t< detail::is_async_op_v< OpType >, ContextRef, SyncContextRef > MaybeAsyncContextRef
Definition:
contextfacade.h:45
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
Application.cc:19
zyppng
Definition:
MediaNetwork.h:23
zyppng::MediaSyncFacade
Definition:
mediafacade.h:47
zypp
ng
workflows
contextfacade.h
Generated by
1.8.14