libzypp: zypp/ng/context.cc Source File

libzypp 17.38.6

context.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#include "context.h"
10#include <zypp/ZYppFactory.h>
11
12namespace zyppng
13{
14 ZYPP_IMPL_PRIVATE_CONSTR(Context) : _media( Provide::create() )
15 {
16
17 }
18
19
26 ContextRef Context::defaultContext()
27 {
28 static ContextRef def = Context::create();
29 return def;
30 }
31
32 ProvideRef Context::provider() const
33 {
34 return _media;
35 }
36
37 KeyRingRef Context::keyRing() const
38 {
39 return zypp::getZYpp()->keyRing();
40 }
41
42 zypp::ZConfig &Context::config()
43 {
44 return zypp::ZConfig::instance();
45 }
46
47 zypp::ResPool Context::pool()
48 {
49 return zypp::ResPool::instance();
50 }
51
52 zypp::ResPoolProxy Context::poolProxy()
53 {
54 return zypp::ResPool::instance().proxy();
55 }
56
57 zypp::sat::Pool Context::satPool()
58 {
59 return zypp::sat::Pool::instance();
60 }
61}
ZYppFactory.h
zypp::ResPoolProxy
ResPool::instance().proxy();.
Definition ResPoolProxy.h:36
zypp::ResPool
Global ResObject pool.
Definition ResPool.h:62
zypp::ResPool::instance
static ResPool instance()
Singleton ctor.
Definition ResPool.cc:38
zypp::ResPool::proxy
ResPoolProxy proxy() const
preliminary
Definition ResPool.cc:59
zypp::ZConfig
Interim helper class to collect global options and settings.
Definition ZConfig.h:82
zypp::ZConfig::instance
static ZConfig & instance()
Singleton ctor.
Definition ZConfig.cc:756
zypp::sat::Pool
Global sat-pool.
Definition Pool.h:47
zypp::sat::Pool::instance
static Pool instance()
Singleton ctor.
Definition Pool.h:55
zyppng::Context
Definition context.h:27
zyppng::Context::config
zypp::ZConfig & config()
Definition context.cc:42
zyppng::Context::provider
ProvideRef provider() const
Definition context.cc:32
zyppng::Context::_media
ProvideRef _media
Definition context.h:48
zyppng::Context::pool
zypp::ResPool pool()
Definition context.cc:47
zyppng::Context::satPool
zypp::sat::Pool satPool()
Definition context.cc:57
zyppng::Context::poolProxy
zypp::ResPoolProxy poolProxy()
Definition context.cc:52
zyppng::Context::keyRing
KeyRingRef keyRing() const
Definition context.cc:37
zyppng::Context::defaultContext
static ContextRef defaultContext()
Definition context.cc:26
zyppng::Provide
Definition provide.h:103
context.h
zypp::getZYpp
ZYpp::Ptr getZYpp()
relates: ZYppFactory Convenience to get the Pointer to the ZYpp instance.
Definition ZYppFactory.h:77
zyppng
Definition MediaNetworkRequestExecutor.h:16
zyppng::KeyRingRef
zypp::KeyRing_Ptr KeyRingRef
Definition context.h:25
ZYPP_IMPL_PRIVATE_CONSTR
#define ZYPP_IMPL_PRIVATE_CONSTR(Class)
Definition zyppglobal.h:215