+ Package::maybeUnsupported
[platform/upstream/libzypp.git] / zypp / Package.h
index cb56846..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
@@ -37,10 +38,24 @@ namespace zypp
     typedef TraitsType::constPtrType constPtr;
 
   public:
-    typedef std::set<PackageKeyword> Keywords;
+    typedef sat::ArrayAttr<PackageKeyword,IdString> Keywords;
 
   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;
     /** */
@@ -66,12 +81,10 @@ namespace zypp
     std::list<std::string> filenames() const;
 
     /** Name of the source rpm this package was built from.
-     * Empty if unknown.
      */
     std::string sourcePkgName() const;
 
     /** Edition of the source rpm this package was built from.
-     * Empty if unknown.
      */
     Edition sourcePkgEdition() const;
 
@@ -79,8 +92,7 @@ namespace zypp
      * Checksum the source says this package should have.
      * \see \ref location
      */
-    CheckSum checksum() const
-    { return location().checksum(); }
+    CheckSum checksum() const;
 
     /** Location of the resolvable in the repository.
      * \ref OnMediaLocation conatins all information required to
@@ -88,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 */
@@ -107,6 +107,7 @@ namespace zypp
     /** Dtor */
     virtual ~Package();
   };
+
   ///////////////////////////////////////////////////////////////////
 
   /////////////////////////////////////////////////////////////////