libzypp 17.37.17
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"
14
15namespace zypp {
17 class ZConfig;
18}
19
20namespace zyppng {
21
23
24 using KeyRing = zypp::KeyRing;
25 using KeyRingRef = zypp::KeyRing_Ptr;
26
28
30
31 public:
33
35
36 static SyncContextRef defaultContext();
37
38 MediaSyncFacadeRef provider() const;
39 KeyRingRef keyRing () const;
44
45
46 private:
47 MediaSyncFacadeRef _media;
48 };
49
50 template<typename OpType>
52
53 template<typename T>
54 auto joinPipeline( SyncContextRef ctx, T &&val ) {
55 return std::forward<T>(val);
56 }
57}
58
59#endif
Gpg key handling.
Definition KeyRing.h:170
ResPool::instance().proxy();.
Global ResObject pool.
Definition ResPool.h:62
Interim helper class to collect global options and settings.
Definition ZConfig.h:69
Global sat-pool.
Definition Pool.h:47
zypp::ZConfig & config()
zypp::ResPool pool()
KeyRingRef keyRing() const
ZYPP_DECL_PRIVATE_CONSTR(SyncContext)
static SyncContextRef defaultContext()
zypp::sat::Pool satPool()
zypp::ResPoolProxy poolProxy()
MediaSyncFacade ProvideType
MediaSyncFacadeRef provider() const
MediaSyncFacadeRef _media
typename conditional< B, T, F >::type conditional_t
Definition TypeTraits.h:39
Easy-to use interface to the ZYPP dependency resolver.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
zypp::KeyRing_Ptr KeyRingRef
Definition context.h:29
auto joinPipeline(ContextRef ctx, AsyncOpRef< T > res)
Definition context.h:81
std::conditional_t< detail::is_async_op_v< OpType >, ContextRef, SyncContextRef > MaybeAsyncContextRef
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Definition PtrTypes.h:639
#define ZYPP_ADD_CREATE_FUNC(Class)
Definition zyppglobal.h:205
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126