libzypp  17.32.5
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  MediaSyncFacadeRef SyncContext::provider() const
20  {
21  return _media;
22  }
23 
25  {
26  return zypp::getZYpp()->keyRing();
27  }
28 
30  {
31  return zypp::ZConfig::instance();
32  }
33 }
static ZConfig & instance()
Singleton ctor.
Definition: ZConfig.cc:925
MediaSyncFacadeRef _media
Definition: contextfacade.h:41
zypp::ZConfig & config()
ZYPP_IMPL_PRIVATE_CONSTR(Context)
Definition: context.cc:19
zypp::KeyRing_Ptr KeyRingRef
Definition: context.h:29
MediaHandle _media
Interim helper class to collect global options and settings.
Definition: ZConfig.h:63
KeyRingRef keyRing() const
MediaSyncFacadeRef provider() const