[zypp-commit] r10869 - in /trunk/libzypp/zypp: Package.cc VendorSupportOptions.h
![](https://seccdn.libravatar.org/avatar/d5900b51dba6d927d3feaf3b73360d4f.jpg?s=120&d=mm&r=g)
Author: dmacvicar Date: Fri Aug 15 13:16:26 2008 New Revision: 10869 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10869&view=rev Log: reorder enum, and implement method Modified: trunk/libzypp/zypp/Package.cc trunk/libzypp/zypp/VendorSupportOptions.h Modified: trunk/libzypp/zypp/Package.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Package.cc?rev=10869&r1=10868&r2=10869&view=diff ============================================================================== --- trunk/libzypp/zypp/Package.cc (original) +++ trunk/libzypp/zypp/Package.cc Fri Aug 15 13:16:26 2008 @@ -44,6 +44,22 @@ VendorSupportOption Package::vendorSupport() const { + Keywords kw(keywords()); + + for_( it, kw.begin(), kw.end() ) + { + if ( *it == "support_unsupported") + return VendorSupportUnsupported; + if ( *it == "support_acc") + return VendorSupportACC; + + if ( *it == "support_l1") + return VendorSupportLevel1; + if ( *it == "support_l2") + return VendorSupportLevel2; + if ( *it == "support_l3") + return VendorSupportLevel3; + } return VendorSupportUnknown; } Modified: trunk/libzypp/zypp/VendorSupportOptions.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/VendorSupportOptions.h?rev=10869&r1=10868&r2=10869&view=diff ============================================================================== --- trunk/libzypp/zypp/VendorSupportOptions.h (original) +++ trunk/libzypp/zypp/VendorSupportOptions.h Fri Aug 15 13:16:26 2008 @@ -29,6 +29,10 @@ */ VendorSupportUnsupported = 0x0001, /** + * Additional Customer Contract necessary + */ + VendorSupportACC = 0x0002, + /** * Problem determination, which means technical support * designed to provide compatibility information, * installation assistance, usage support, on-going maintenance @@ -37,7 +41,7 @@ * * May have different semantics for different organizations. */ - VendorSupportLevel1 = 0x0002, + VendorSupportLevel1 = 0x0004, /** * Problem isolation, which means technical support designed * to duplicate customer problems, isolate problem area and provide @@ -45,7 +49,7 @@ * * May have different semantics for different organizations. */ - VendorSupportLevel2 = 0x0004, + VendorSupportLevel2 = 0x0008, /** * Problem resolution, which means technical support designed * to resolve complex problems by engaging engineering in resolution @@ -53,11 +57,7 @@ * * May have different semantics for different organizations. */ - VendorSupportLevel3 = 0x0008, - /** - * Additional Customer Contract necessary - */ - VendorSupportACC = 0x0016 + VendorSupportLevel3 = 0x0016 }; // Make a flag set for this -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org