1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/VendorAttr.h
12 #ifndef ZYPP_VENDORATTR_H
13 #define ZYPP_VENDORATTR_H
18 #include "zypp/base/NonCopyable.h"
19 #include "zypp/NeedAType.h"
21 ///////////////////////////////////////////////////////////////////
23 //////////////////////////////////////////////////////////////////
25 class VendorAttr : private base::NonCopyable
29 static const VendorAttr & instance();
31 /** Enable autoprotection of foreign vendor packages.
32 * This is the default.
33 * \note This will \b not change the status of already
36 static void enableAutoProtect();
37 /** Disable autoprotection of foreign vendor packages.
38 * Autoprotection is on per defult.
39 * \note This will \b not change the status of already
42 static void disableAutoProtect();
45 * Return whether it's a known vendor
47 bool isKnown( const Vendor & vendor_r ) const;
50 * Return whether this vendors packages should be
51 * protected by default.
53 bool autoProtect( const Vendor & vendor_r ) const;
59 ///////////////////////////////////////////////////////////////////
61 ///////////////////////////////////////////////////////////////////
63 #endif // ZYPP_VENDORATTR_H