zypp::VendorAttr Class Reference

#include <VendorAttr.h>

Inheritance diagram for zypp::VendorAttr:
[legend]

List of all members.

Public Member Functions

bool isKnown (const Vendor &vendor_r) const
 Return whether it's a known vendor.
bool autoProtect (const Vendor &vendor_r) const
 Return whether this vendors packages should be protected by default.
bool equivalent (const Vendor &lhs, const Vendor &rhs) const
 Return whether two vendor strings shold be treated as the same vendor.

Static Public Member Functions

static const VendorAttrinstance ()
 Singleton.
static void enableAutoProtect ()
 Enable autoprotection of foreign vendor packages.
static void disableAutoProtect ()
 Disable autoprotection of foreign vendor packages.

Private Member Functions

 VendorAttr ()


Detailed Description

Definition at line 25 of file VendorAttr.h.


Constructor & Destructor Documentation

zypp::VendorAttr::VendorAttr (  )  [private]

Definition at line 95 of file VendorAttr.cc.

References zypp::_trustedVendors, zypp::addTrustedVendor(), zypp::iostr::forEachLine(), and MIL.


Member Function Documentation

const VendorAttr & zypp::VendorAttr::instance (  )  [static]

Singleton.

Definition at line 89 of file VendorAttr.cc.

Referenced by zypp::PoolItem_Ref::Impl::autoprotect(), zypp::solver::detail::downgrade_allowed(), zypp::solver::detail::FindProviders::operator()(), zypp::solver::detail::NoInstallableProviders::operator()(), and zypp::solver::detail::RequireProcess::operator()().

void zypp::VendorAttr::enableAutoProtect (  )  [static]

Enable autoprotection of foreign vendor packages.

This is the default.

Note:
This will not change the status of already loaded pool items.

Definition at line 131 of file VendorAttr.cc.

References MIL.

void zypp::VendorAttr::disableAutoProtect (  )  [static]

Disable autoprotection of foreign vendor packages.

Autoprotection is on per defult.

Note:
This will not change the status of already loaded pool items.

Definition at line 137 of file VendorAttr.cc.

References MIL.

bool zypp::VendorAttr::isKnown ( const Vendor vendor_r  )  const

Return whether it's a known vendor.

Definition at line 143 of file VendorAttr.cc.

References zypp::trusted().

bool zypp::VendorAttr::autoProtect ( const Vendor vendor_r  )  const

Return whether this vendors packages should be protected by default.

Definition at line 147 of file VendorAttr.cc.

References zypp::ZConfig::instance(), and zypp::trusted().

Referenced by zypp::PoolItem_Ref::Impl::autoprotect().

bool zypp::VendorAttr::equivalent ( const Vendor lhs,
const Vendor rhs 
) const

Return whether two vendor strings shold be treated as the same vendor.

Usually the solver is allowed to automatically select a package of an equivalent vendor when updating. Replacing a package with one of a different vendor usually must be confirmed by the user.

Definition at line 164 of file VendorAttr.cc.

References zypp::isSUSE().

Referenced by zypp::solver::detail::RequireProcess::operator()().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:17 2007 for libzypp by  doxygen 1.5.3