Use libsolv includes and adjust documentation
[platform/upstream/libzypp.git] / zypp / Repository.h
index 1be3f4f..f23dc60 100644 (file)
@@ -70,16 +70,19 @@ namespace zypp
 
     public:
          /**
-          * Short unique, convenience string to refer to a repo.
+          * Short unique string to identify a repo.
           * ie: openSUSE-10.3
           *
           * If you are looking for a label to display
-          * see \ref info() which provides \ref RepoInfo::name()
+          * see \ref name().
           * ie: "openSUSE 10.3 Main repository"
           *
           */
         std::string alias() const;
 
+        /** Label to display for this repo. */
+        std::string name() const;
+
         /**
          * Timestamp when this repository was generated
          *
@@ -259,6 +262,17 @@ namespace zypp
         ::_Repo * get() const;
         /** Expert backdoor. */
         IdType id() const { return _id; }
+        /** libsolv internal priorities.
+         * Unlike the \ref RepoInfo priority which tries to be YUM conform
+         * (H[1-99]L), this one is the solvers internal priority representation.
+         * It is type \c int and as one might expect it, the higher the value
+         * the higher the priority. Subpriority is currently used to express
+         * media preferences (\see \ref MediaPriority).
+         */
+        //@{
+        int satInternalPriority() const;
+        int satInternalSubPriority() const;
+        //@}
     private:
 #ifndef SWIG // Swig treats it as syntax error
         friend base::SafeBool<Repository>::operator bool_type() const;