12 #ifndef ZYPP_ZCONFIG_H 13 #define ZYPP_ZCONFIG_H 89 std::ostream & about( std::ostream &
str )
const;
93 long lockTimeout()
const;
110 void setRepoManagerRoot (
const Pathname &root );
117 void announceSystemRoot(
const Pathname & root_r );
122 static Arch defaultSystemArchitecture();
125 Arch systemArchitecture()
const;
133 void setSystemArchitecture(
const Arch & arch_r );
137 { setSystemArchitecture( defaultSystemArchitecture() ); }
142 static Locale defaultTextLocale();
146 Locale textLocale()
const;
149 void setTextLocale(
const Locale & locale_r );
153 { setTextLocale( defaultTextLocale() ); }
161 bool hasUserData()
const;
164 std::string userData()
const;
170 bool setUserData(
const std::string & str_r );
183 void setRepoCachePath (
const Pathname &path_r );
200 void setRepoMetadataPath (
const Pathname &path_r );
211 void setRepoSolvfilesPath (
const Pathname &path_r );
223 void setRepoPackagesPath (
const Pathname &path_r );
258 void setGeoipEnabled(
bool enable =
true );
263 bool geoipEnabled ()
const;
275 const std::vector<std::string> geoipHostnames ()
const;
289 bool repo_add_probe()
const;
294 unsigned repo_refresh_delay()
const;
306 bool repoLabelIsAlias()
const;
315 void repoLabelIsAlias(
bool yesno_r );
320 long download_max_concurrent_connections()
const;
326 long download_min_download_speed()
const;
331 long download_max_download_speed()
const;
336 long download_max_silent_tries()
const;
341 long download_transfer_timeout()
const;
347 bool download_use_deltarpm()
const;
353 bool download_use_deltarpm_always()
const;
359 bool download_media_prefer_download()
const;
362 {
return ! download_media_prefer_download(); }
366 void set_download_media_prefer_download(
bool yesno_r );
370 void set_default_download_media_prefer_download();
376 Pathname download_mediaMountdir()
const;
378 void set_download_mediaMountdir(
Pathname newval_r );
380 void set_default_download_mediaMountdir();
400 bool gpgCheck()
const;
404 void setGpgCheck(
bool val_r );
405 void setRepoGpgCheck(
TriBool val_r );
406 void setPkgGpgCheck(
TriBool val_r );
408 void resetGpgCheck();
409 void resetRepoGpgCheck();
410 void resetPkgGpgCheck();
427 bool solver_onlyRequires()
const;
433 Pathname solver_checkSystemFile()
const;
440 Pathname solver_checkSystemFileDir()
const;
445 bool solver_allowVendorChange()
const;
448 bool solver_dupAllowDowngrade()
const;
451 bool solver_dupAllowNameChange()
const;
454 bool solver_dupAllowArchChange()
const;
457 bool solver_dupAllowVendorChange()
const;
462 bool solver_cleandepsOnRemove()
const;
471 unsigned solver_upgradeTestcasesToKeep()
const;
486 bool solverUpgradeRemoveDroppedPackages()
const;
488 void setSolverUpgradeRemoveDroppedPackages(
bool val_r );
490 void resetSolverUpgradeRemoveDroppedPackages();
502 const std::set<std::string> & multiversionSpec()
const;
503 void multiversionSpec( std::set<std::string> new_r );
504 void clearMultiversionSpec();
505 void addMultiversionSpec(
const std::string & name_r );
506 void removeMultiversionSpec(
const std::string & name_r );
518 bool apply_locks_file()
const;
529 Pathname update_scriptsPath()
const;
534 Pathname update_messagesPath()
const;
544 static Pathname update_scriptsPath();
549 static Pathname update_messagesPath();
555 std::string updateMessagesNotify()
const;
557 void setUpdateMessagesNotify(
const std::string & val_r );
559 void resetUpdateMessagesNotify();
570 target::rpm::RpmInstFlags rpmInstallFlags()
const;
584 Pathname credentialsGlobalDir()
const;
589 Pathname credentialsGlobalFile()
const;
599 std::string distroverpkg()
const;
611 std::string multiversionKernels()
const;
625 void notifyTargetChanged();
631 Pathname builtinRepoCachePath()
const;
633 Pathname builtinRepoMetadataPath()
const;
635 Pathname builtinRepoSolvfilesPath()
const;
637 Pathname builtinRepoPackagesPath()
const;
651 #endif // ZYPP_ZCONFIG_H
void resetSystemArchitecture()
Reset the zypp system architecture to the default.
ResolverFocus
The resolver's general attitude.
std::unordered_set< Locale > LocaleSet
String related utilities and Regular expression matching.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Pointer to implementation.
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Interim helper class to collect global options and settings.
Provides API related macros.
'Language[_Country]' codes.
bool download_media_prefer_volatile() const
Wrapper for const correct access via Smart pointer types.
void resetTextLocale()
Reset the locale for translated texts to the default.
The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a giv...
Easy-to use interface to the ZYPP dependency resolver.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
DownloadMode
Supported commit download policies.