1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/ZConfig.cc
13 #include "zypp/base/Logger.h"
15 #include "zypp/ZConfig.h"
16 #include "zypp/ZYppFactory.h"
20 ///////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////
26 // CLASS NAME : ZConfig::Impl
28 /** ZConfig implementation.
42 ///////////////////////////////////////////////////////////////////
44 ///////////////////////////////////////////////////////////////////
46 // METHOD NAME : ZConfig::instance
47 // METHOD TYPE : ZConfig &
49 ZConfig & ZConfig::instance()
51 static ZConfig _instance; // The singleton
55 ///////////////////////////////////////////////////////////////////
57 // METHOD NAME : ZConfig::ZConfig
63 MIL << "ZConfig singleton created." << endl;
66 ///////////////////////////////////////////////////////////////////
68 // METHOD NAME : ZConfig::~ZConfig
74 ///////////////////////////////////////////////////////////////////
75 #warning change methods to use the singleton
77 ///////////////////////////////////////////////////////////////////
79 // METHOD NAME : ZConfig::systemArchitecture
82 Arch ZConfig::systemArchitecture() const
84 return getZYpp()->architecture();
87 ///////////////////////////////////////////////////////////////////
89 // METHOD NAME : ZConfig::defaultTextLocale
90 // METHOD TYPE : Locale
92 Locale ZConfig::defaultTextLocale() const
94 return getZYpp()->getTextLocale();
97 Pathname ZConfig::defaultRepoMetadataPath() const
99 return Pathname("/var/lib/zypp/cache/raw");
102 Pathname ZConfig::defaultRepoCachePath() const
104 return Pathname("/var/lib/zypp/cache");
107 Pathname ZConfig::defaultKnownReposPath() const
109 return Pathname("/etc/zypp/repos.d");
112 const std::string & ZConfig::cacheDBSplitJoinSeparator() const
114 static std::string s("!@$");
118 /////////////////////////////////////////////////////////////////
120 ///////////////////////////////////////////////////////////////////