Author: dmacvicar Date: Wed Aug 13 17:56:57 2008 New Revision: 10842 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10842&view=rev Log: add vendor support enums Added: trunk/libzypp/zypp/VendorSupportOptions.cc trunk/libzypp/zypp/VendorSupportOptions.h Modified: trunk/libzypp/zypp/CMakeLists.txt trunk/libzypp/zypp/Package.cc trunk/libzypp/zypp/Package.h Modified: trunk/libzypp/zypp/CMakeLists.txt URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/CMakeLists.txt?rev=10842&r1=10841&r2=10842&view=diff ============================================================================== --- trunk/libzypp/zypp/CMakeLists.txt (original) +++ trunk/libzypp/zypp/CMakeLists.txt Wed Aug 13 17:56:57 2008 @@ -67,6 +67,7 @@ UpgradeStatistics.cc Url.cc VendorAttr.cc + VendorSupportOptions.cc ZYpp.cc ZYppCommitPolicy.cc ZYppCommitResult.cc @@ -159,6 +160,7 @@ UpgradeStatistics.h Url.h VendorAttr.h + VendorSupportOptions.h ZConfig.h ZYppCallbacks.h ZYppCommit.h Modified: trunk/libzypp/zypp/Package.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Package.cc?rev=10842&r1=10841&r2=10842&view=diff ============================================================================== --- trunk/libzypp/zypp/Package.cc (original) +++ trunk/libzypp/zypp/Package.cc Wed Aug 13 17:56:57 2008 @@ -42,11 +42,10 @@ Package::~Package() {} - /////////////////////////////////////////////////////////////////// - // - // Package interface forwarded to implementation - // - /////////////////////////////////////////////////////////////////// + VendorSupportOption Package::vendorSupport() const + { + return VendorSupportUnknown; + } Changelog Package::changelog() const { Modified: trunk/libzypp/zypp/Package.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Package.h?rev=10842&r1=10841&r2=10842&view=diff ============================================================================== --- trunk/libzypp/zypp/Package.h (original) +++ trunk/libzypp/zypp/Package.h Wed Aug 13 17:56:57 2008 @@ -15,6 +15,7 @@ #include "zypp/ResObject.h" #include "zypp/PackageKeyword.h" #include "zypp/Changelog.h" +#include "zypp/VendorSupportOptions.h" /////////////////////////////////////////////////////////////////// namespace zypp @@ -41,6 +42,14 @@ public: + /** + * Returns the level of supportability the vendor + * gives to this package. + * + * This is one value from \ref VendorSupportOption + */ + VendorSupportOption vendorSupport() const; + /** Get the package change log */ Changelog changelog() const; /** */ @@ -92,6 +101,7 @@ /** Dtor */ virtual ~Package(); }; + /////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////// Added: trunk/libzypp/zypp/VendorSupportOptions.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/VendorSupportOptions.cc?rev=10842&view=auto ============================================================================== --- trunk/libzypp/zypp/VendorSupportOptions.cc (added) +++ trunk/libzypp/zypp/VendorSupportOptions.cc Wed Aug 13 17:56:57 2008 @@ -0,0 +1,9 @@ + +#include "zypp/VendorSupportOptions.h" + +namespace zypp +{ + + + +} Added: trunk/libzypp/zypp/VendorSupportOptions.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/VendorSupportOptions.h?rev=10842&view=auto ============================================================================== --- trunk/libzypp/zypp/VendorSupportOptions.h (added) +++ trunk/libzypp/zypp/VendorSupportOptions.h Wed Aug 13 17:56:57 2008 @@ -0,0 +1,63 @@ +/*---------------------------------------------------------------------\ +| ____ _ __ __ ___ | +| |__ / \ / / . \ . \ | +| / / \ V /| _/ _/ | +| / /__ | | | | | | | +| /_____||_| |_| |_| | +| | +\---------------------------------------------------------------------*/ +/** \file zypp/VendorSupportOptions.h + * +*/ +#ifndef ZYPP_VendorSupportOptions_H +#define ZYPP_VendorSupportOptions_H + +#include "zypp/base/Flags.h" + +namespace zypp +{ + + enum VendorSupportOption + { + /** + * The support for this package is unknown + */ + VendorSupportUnknown = 0x0000, + /** + * The package is known to be unsupported by the vendor + */ + VendorSupportUnsupported = 0x0001, + /** + * Problem determination, which means technical support + * designed to provide compatibility information, + * installation assistance, usage support, on-going maintenance + * and basic troubleshooting. Level 1 Support is not intended to + * correct product defect errors. + * + * May have different semantics for different organizations. + */ + VendorSupportLevel1 = 0x0002, + /** + * Problem isolation, which means technical support designed + * to duplicate customer problems, isolate problem area and provide + * resolution for problems not resolved by Level 1 Support. + * + * May have different semantics for different organizations. + */ + VendorSupportLevel2 = 0x0003, + /** + * Problem resolution, which means technical support designed + * to resolve complex problems by engaging engineering in resolution + * of product defects which have been identified by Level 2 Support. + * + * May have different semantics for different organizations. + */ + VendorSupportLevel3 = 0x0004 + }; + + // Make a flag set for this + ZYPP_DECLARE_FLAGS(VendorSupportOptions,VendorSupportOption); + ZYPP_DECLARE_OPERATORS_FOR_FLAGS(VendorSupportOptions) +} + +#endif -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org