ZConfig.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_ZCONFIG_H
00013 #define ZYPP_ZCONFIG_H
00014 
00015 #include <iosfwd>
00016 
00017 #include "zypp/base/NonCopyable.h"
00018 #include "zypp/base/PtrTypes.h"
00019 
00020 #include "zypp/Arch.h"
00021 #include "zypp/Locale.h"
00022 #include "zypp/Pathname.h"
00023 
00025 namespace zypp
00026 { 
00027 
00029   //
00030   //    CLASS NAME : ZConfig
00031   //
00041   class ZConfig : private base::NonCopyable
00042   {
00043     public:
00045       static ZConfig & instance();
00046 
00047     public:
00049       Arch systemArchitecture() const;
00050 
00055       void overrideSystemArchitecture( const Arch & );
00056 
00060       Locale textLocale() const;
00061 
00065       Pathname repoMetadataPath() const;
00066 
00071       Pathname repoCachePath() const;
00072 
00077       Pathname knownReposPath() const;
00078 
00083       const std::string & cacheDBSplitJoinSeparator() const;
00084 
00090       bool repo_add_probe() const;
00091 
00095       unsigned repo_refresh_delay() const;
00096 
00100       bool download_use_patchrpm() const;
00101 
00105       bool download_use_deltarpm() const;
00106 
00112       bool autolock_untrustedvendor() const;
00113 
00114     public:
00115       class Impl;
00117       ~ZConfig();
00118     private:
00120       ZConfig();
00122       RW_pointer<Impl, rw_pointer::Scoped<Impl> > _pimpl;
00123   };
00125 
00127 } // namespace zypp
00129 #endif // ZYPP_ZCONFIG_H

Generated on Tue Sep 25 19:23:11 2007 for libzypp by  doxygen 1.5.3