VendorAttr.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_VENDORATTR_H
00013 #define ZYPP_VENDORATTR_H
00014 
00015 #include <iosfwd>
00016 #include <string>
00017 
00018 #include "zypp/base/NonCopyable.h"
00019 #include "zypp/NeedAType.h"
00020 
00022 namespace zypp {
00024 
00025 class VendorAttr : private base::NonCopyable
00026 {
00027   public:
00029     static const VendorAttr & instance();
00030 
00036     static void enableAutoProtect();
00042     static void disableAutoProtect();
00043 
00047     bool isKnown( const Vendor & vendor_r ) const;
00048 
00053     bool autoProtect( const Vendor & vendor_r ) const;
00054 
00060     bool equivalent( const Vendor & lhs, const Vendor & rhs ) const;
00061 
00062   private:
00063     VendorAttr();
00064 };
00065 
00067 }; // namespace zypp
00069 
00070 #endif // ZYPP_VENDORATTR_H

Generated on Tue Sep 25 19:23:11 2007 for libzypp by  doxygen 1.5.3