12 #ifndef ZYPP_ZCONFIG_H 13 #define ZYPP_ZCONFIG_H 76 std::ostream & about( std::ostream &
str )
const;
93 void setRepoManagerRoot (
const Pathname &root );
98 static Arch defaultSystemArchitecture();
101 Arch systemArchitecture()
const;
109 void setSystemArchitecture(
const Arch & arch_r );
113 { setSystemArchitecture( defaultSystemArchitecture() ); }
118 static Locale defaultTextLocale();
122 Locale textLocale()
const;
125 void setTextLocale(
const Locale & locale_r );
129 { setTextLocale( defaultTextLocale() ); }
137 bool hasUserData()
const;
140 std::string userData()
const;
146 bool setUserData(
const std::string & str_r );
159 void setRepoCachePath (
const Pathname &path_r );
176 void setRepoMetadataPath (
const Pathname &path_r );
187 void setRepoSolvfilesPath (
const Pathname &path_r );
199 void setRepoPackagesPath (
const Pathname &path_r );
234 void setGeoipEnabled(
bool enable =
true );
239 bool geoipEnabled ()
const;
251 const std::vector<std::string> geoipHostnames ()
const;
265 bool repo_add_probe()
const;
270 unsigned repo_refresh_delay()
const;
282 bool repoLabelIsAlias()
const;
291 void repoLabelIsAlias(
bool yesno_r );
296 long download_max_concurrent_connections()
const;
302 long download_min_download_speed()
const;
307 long download_max_download_speed()
const;
312 long download_max_silent_tries()
const;
317 long download_transfer_timeout()
const;
323 bool download_use_deltarpm()
const;
329 bool download_use_deltarpm_always()
const;
335 bool download_media_prefer_download()
const;
338 {
return ! download_media_prefer_download(); }
342 void set_download_media_prefer_download(
bool yesno_r );
346 void set_default_download_media_prefer_download();
352 Pathname download_mediaMountdir()
const;
354 void set_download_mediaMountdir(
Pathname newval_r );
356 void set_default_download_mediaMountdir();
376 bool gpgCheck()
const;
380 void setGpgCheck(
bool val_r );
381 void setRepoGpgCheck(
TriBool val_r );
382 void setPkgGpgCheck(
TriBool val_r );
384 void resetGpgCheck();
385 void resetRepoGpgCheck();
386 void resetPkgGpgCheck();
403 bool solver_onlyRequires()
const;
409 Pathname solver_checkSystemFile()
const;
416 Pathname solver_checkSystemFileDir()
const;
421 bool solver_allowVendorChange()
const;
424 bool solver_dupAllowDowngrade()
const;
427 bool solver_dupAllowNameChange()
const;
430 bool solver_dupAllowArchChange()
const;
433 bool solver_dupAllowVendorChange()
const;
438 bool solver_cleandepsOnRemove()
const;
447 unsigned solver_upgradeTestcasesToKeep()
const;
462 bool solverUpgradeRemoveDroppedPackages()
const;
464 void setSolverUpgradeRemoveDroppedPackages(
bool val_r );
466 void resetSolverUpgradeRemoveDroppedPackages();
478 const std::set<std::string> & multiversionSpec()
const;
479 void multiversionSpec( std::set<std::string> new_r );
480 void clearMultiversionSpec();
481 void addMultiversionSpec(
const std::string & name_r );
482 void removeMultiversionSpec(
const std::string & name_r );
494 bool apply_locks_file()
const;
505 Pathname update_scriptsPath()
const;
511 Pathname update_messagesPath()
const;
516 std::string updateMessagesNotify()
const;
518 void setUpdateMessagesNotify(
const std::string & val_r );
520 void resetUpdateMessagesNotify();
531 target::rpm::RpmInstFlags rpmInstallFlags()
const;
545 Pathname credentialsGlobalDir()
const;
550 Pathname credentialsGlobalFile()
const;
560 std::string distroverpkg()
const;
572 std::string multiversionKernels()
const;
586 void notifyTargetChanged();
592 Pathname builtinRepoCachePath()
const;
594 Pathname builtinRepoMetadataPath()
const;
596 Pathname builtinRepoSolvfilesPath()
const;
598 Pathname builtinRepoPackagesPath()
const;
612 #endif // ZYPP_ZCONFIG_H
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
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.
Provides API related macros.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Pointer to implementation.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Interim helper class to collect global options and settings.
'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.