ignore
[platform/upstream/libzypp.git] / zypp / VendorAttr.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/VendorAttr.h
10  *
11 */
12 #ifndef ZYPP_VENDORATTR_H
13 #define ZYPP_VENDORATTR_H
14
15 #include <iosfwd>
16 #include <string>
17
18 #include "zypp/base/NonCopyable.h"
19 #include "zypp/NeedAType.h"
20
21 ///////////////////////////////////////////////////////////////////
22 namespace zypp {
23 //////////////////////////////////////////////////////////////////
24
25 class VendorAttr : private base::NonCopyable
26 {
27   public:
28     /** Singleton */
29     static const VendorAttr & instance();
30
31     /**
32      * Return whether it's a known vendor
33      **/
34     bool isKnown( const Vendor & vendor_r ) const;
35
36     /**
37      * Return whether this vendors packages should be
38      * protected by default.
39      **/
40     bool autoProtect( const Vendor & vendor_r ) const;
41
42   private:
43     VendorAttr();
44 };
45
46 ///////////////////////////////////////////////////////////////////
47 }; // namespace zypp
48 ///////////////////////////////////////////////////////////////////
49
50 #endif // ZYPP_VENDORATTR_H