12 #ifndef ZYPP_ZCONFIG_H 13 #define ZYPP_ZCONFIG_H 76 std::ostream & about( std::ostream &
str )
const;
93 void setRepoManagerRoot (
const Pathname &root );
100 void announceSystemRoot(
const Pathname & root_r );
105 static Arch defaultSystemArchitecture();
108 Arch systemArchitecture()
const;
116 void setSystemArchitecture(
const Arch & arch_r );
120 { setSystemArchitecture( defaultSystemArchitecture() ); }
125 static Locale defaultTextLocale();
129 Locale textLocale()
const;
132 void setTextLocale(
const Locale & locale_r );
136 { setTextLocale( defaultTextLocale() ); }
144 bool hasUserData()
const;
147 std::string userData()
const;
153 bool setUserData(
const std::string & str_r );
166 void setRepoCachePath (
const Pathname &path_r );
183 void setRepoMetadataPath (
const Pathname &path_r );
194 void setRepoSolvfilesPath (
const Pathname &path_r );
206 void setRepoPackagesPath (
const Pathname &path_r );
241 void setGeoipEnabled(
bool enable =
true );
246 bool geoipEnabled ()
const;
258 const std::vector<std::string> geoipHostnames ()
const;
272 bool repo_add_probe()
const;
277 unsigned repo_refresh_delay()
const;
289 bool repoLabelIsAlias()
const;
298 void repoLabelIsAlias(
bool yesno_r );
303 long download_max_concurrent_connections()
const;
309 long download_min_download_speed()
const;
314 long download_max_download_speed()
const;
319 long download_max_silent_tries()
const;
324 long download_transfer_timeout()
const;
330 bool download_use_deltarpm()
const;
336 bool download_use_deltarpm_always()
const;
342 bool download_media_prefer_download()
const;
345 {
return ! download_media_prefer_download(); }
349 void set_download_media_prefer_download(
bool yesno_r );
353 void set_default_download_media_prefer_download();
359 Pathname download_mediaMountdir()
const;
361 void set_download_mediaMountdir(
Pathname newval_r );
363 void set_default_download_mediaMountdir();
383 bool gpgCheck()
const;
387 void setGpgCheck(
bool val_r );
388 void setRepoGpgCheck(
TriBool val_r );
389 void setPkgGpgCheck(
TriBool val_r );
391 void resetGpgCheck();
392 void resetRepoGpgCheck();
393 void resetPkgGpgCheck();
410 bool solver_onlyRequires()
const;
416 Pathname solver_checkSystemFile()
const;
423 Pathname solver_checkSystemFileDir()
const;
428 bool solver_allowVendorChange()
const;
431 bool solver_dupAllowDowngrade()
const;
434 bool solver_dupAllowNameChange()
const;
437 bool solver_dupAllowArchChange()
const;
440 bool solver_dupAllowVendorChange()
const;
445 bool solver_cleandepsOnRemove()
const;
454 unsigned solver_upgradeTestcasesToKeep()
const;
469 bool solverUpgradeRemoveDroppedPackages()
const;
471 void setSolverUpgradeRemoveDroppedPackages(
bool val_r );
473 void resetSolverUpgradeRemoveDroppedPackages();
485 const std::set<std::string> & multiversionSpec()
const;
486 void multiversionSpec( std::set<std::string> new_r );
487 void clearMultiversionSpec();
488 void addMultiversionSpec(
const std::string & name_r );
489 void removeMultiversionSpec(
const std::string & name_r );
501 bool apply_locks_file()
const;
512 Pathname update_scriptsPath()
const;
517 Pathname update_messagesPath()
const;
527 static Pathname update_scriptsPath();
532 static Pathname update_messagesPath();
538 std::string updateMessagesNotify()
const;
540 void setUpdateMessagesNotify(
const std::string & val_r );
542 void resetUpdateMessagesNotify();
553 target::rpm::RpmInstFlags rpmInstallFlags()
const;
567 Pathname credentialsGlobalDir()
const;
572 Pathname credentialsGlobalFile()
const;
582 std::string distroverpkg()
const;
594 std::string multiversionKernels()
const;
608 void notifyTargetChanged();
614 Pathname builtinRepoCachePath()
const;
616 Pathname builtinRepoMetadataPath()
const;
618 Pathname builtinRepoSolvfilesPath()
const;
620 Pathname builtinRepoPackagesPath()
const;
634 #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.