libzypp  17.35.11
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 
12 namespace zyppng
13 {
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 
38  {
39  return zypp::getZYpp()->keyRing();
40  }
41 
43  {
44  return zypp::ZConfig::instance();
45  }
46 
48  {
49  return zypp::ResPool::instance();
50  }
51 
53  {
54  return zypp::ResPool::instance().proxy();
55  }
56 
58  {
60  }
61 }
ResPoolProxy proxy() const
preliminary
Definition: ResPool.cc:59
zypp::ResPoolProxy poolProxy()
static ZConfig & instance()
Singleton ctor.
Definition: ZConfig.cc:925
static SyncContextRef defaultContext()
MediaSyncFacadeRef _media
Definition: contextfacade.h:47
zypp::ZConfig & config()
ZYPP_IMPL_PRIVATE_CONSTR(Context)
Definition: context.cc:19
ResPool::instance().proxy();.
Definition: ResPoolProxy.h:35
zypp::KeyRing_Ptr KeyRingRef
Definition: context.h:29
MediaHandle _media
static Pool instance()
Singleton ctor.
Definition: Pool.h:55
Interim helper class to collect global options and settings.
Definition: ZConfig.h:68
zypp::ResPool pool()
zypp::sat::Pool satPool()
Global ResObject pool.
Definition: ResPool.h:61
KeyRingRef keyRing() const
Global sat-pool.
Definition: Pool.h:46
static ResPool instance()
Singleton ctor.
Definition: ResPool.cc:38
MediaSyncFacadeRef provider() const