libzypp: zypp/ng/workflows/contextfacade.cc Source File

libzypp 17.36.6

contextfacade.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#include "contextfacade.h"
10#include <zypp/ZYppFactory.h>
11
12namespace zyppng
13{
14 ZYPP_IMPL_PRIVATE_CONSTR(SyncContext) : _media( MediaSyncFacade::create() )
15 {
16
17 }
18
19
26 SyncContextRef SyncContext::defaultContext()
27 {
28 static SyncContextRef def = SyncContext::create();
29 return def;
30 }
31
32 MediaSyncFacadeRef SyncContext::provider() const
33 {
34 return _media;
35 }
36
37 KeyRingRef SyncContext::keyRing() const
38 {
39 return zypp::getZYpp()->keyRing();
40 }
41
42 zypp::ZConfig &SyncContext::config()
43 {
44 return zypp::ZConfig::instance();
45 }
46
47 zypp::ResPool SyncContext::pool()
48 {
49 return zypp::ResPool::instance();
50 }
51
52 zypp::ResPoolProxy SyncContext::poolProxy()
53 {
54 return zypp::ResPool::instance().proxy();
55 }
56
57 zypp::sat::Pool SyncContext::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:69
zypp::ZConfig::instance
static ZConfig & instance()
Singleton ctor.
Definition ZConfig.cc:940
zypp::ZYppFactory::getZYpp
ZYpp::Ptr getZYpp()
Convenience to get the Pointer to the ZYpp instance.
Definition ZYppFactory.h:77
zypp::sat::Pool
Global sat-pool.
Definition Pool.h:47
zypp::sat::Pool::instance
static Pool instance()
Singleton ctor.
Definition Pool.h:55
zyppng::MediaSyncFacade
Definition mediafacade.h:49
zyppng::SyncContext
Definition contextfacade.h:27
zyppng::SyncContext::config
zypp::ZConfig & config()
Definition contextfacade.cc:42
zyppng::SyncContext::pool
zypp::ResPool pool()
Definition contextfacade.cc:47
zyppng::SyncContext::keyRing
KeyRingRef keyRing() const
Definition contextfacade.cc:37
zyppng::SyncContext::defaultContext
static SyncContextRef defaultContext()
Definition contextfacade.cc:26
zyppng::SyncContext::satPool
zypp::sat::Pool satPool()
Definition contextfacade.cc:57
zyppng::SyncContext::poolProxy
zypp::ResPoolProxy poolProxy()
Definition contextfacade.cc:52
zyppng::SyncContext::provider
MediaSyncFacadeRef provider() const
Definition contextfacade.cc:32
zyppng::SyncContext::_media
MediaSyncFacadeRef _media
Definition contextfacade.h:47
contextfacade.h
zyppng
Definition MediaCurl2.h:22
zyppng::KeyRingRef
zypp::KeyRing_Ptr KeyRingRef
Definition context.h:29
ZYPP_IMPL_PRIVATE_CONSTR
#define ZYPP_IMPL_PRIVATE_CONSTR(Class)
Definition zyppglobal.h:222