+ Package::maybeUnsupported
[platform/upstream/libzypp.git] / zypp / Package.h
index 1f3a8e1..fbfa572 100644 (file)
@@ -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,20 @@ namespace zypp
 
   public:
 
+    /**
+     * Returns the level of supportability the vendor
+     * gives to this package.
+     * 
+     * This is one value from \ref VendorSupportOption
+     */
+    VendorSupportOption vendorSupport() const;
+
+    /**
+     * True if the vendor support for this package
+     * is unknown or explictly unsupported.
+     */
+    bool maybeUnsupported() const;
+
     /** Get the package change log */
     Changelog changelog() const;
     /** */
@@ -85,18 +100,6 @@ namespace zypp
      */
     OnMediaLocation location() const;
 
-
-    /** \deprecated no metadata always empty */
-    ZYPP_DEPRECATED std::string os() const { return std::string(); }
-    /** \deprecated no metadata always empty */
-    ZYPP_DEPRECATED std::string prein() const { return std::string(); }
-    /** \deprecated no metadata always empty */
-    ZYPP_DEPRECATED std::string postin() const { return std::string(); }
-    /** \deprecated no metadata always empty */
-    ZYPP_DEPRECATED std::string preun() const { return std::string(); }
-    /** \deprecated no metadata always empty */
-    ZYPP_DEPRECATED std::string postun() const { return std::string(); }
-
   protected:
     friend Ptr make<Self>( const sat::Solvable & solvable_r );
     /** Ctor */
@@ -104,6 +107,7 @@ namespace zypp
     /** Dtor */
     virtual ~Package();
   };
+
   ///////////////////////////////////////////////////////////////////
 
   /////////////////////////////////////////////////////////////////