- Propagate sat::Solvable methods dealing with locale support to ResObject.
authorMichael Andres <ma@suse.de>
Mon, 18 Feb 2008 23:27:47 +0000 (23:27 +0000)
committerMichael Andres <ma@suse.de>
Mon, 18 Feb 2008 23:27:47 +0000 (23:27 +0000)
zypp/ResObject.h
zypp/ResPool.h

index e5fae5a..16bd341 100644 (file)
@@ -47,6 +47,25 @@ namespace zypp
     typedef TraitsType::constPtrType constPtr;
 
   public:
+    /** \name Locale support.
+     * \see \ref sat::Solvable
+    */
+    //@{
+    /** Whether this \c Solvable claims to support locales. */
+    using sat::Solvable::supportsLocales;
+    /** Whether this \c Solvable supports a specific \ref Locale. */
+    using sat::Solvable::supportsLocale;
+    /** Whether this \c Solvable supports at least one of the specified locales. */
+    using sat::Solvable::supportsLocale;
+    /** Whether this \c Solvable supports at least one requested locale.
+     * \see \ref Pool::setRequestedLocales
+     */
+    using sat::Solvable::supportsRequestedLocales;
+    /** Return the supported locales via locales_r. */
+    using sat::Solvable::getSupportedLocales;
+    //@}
+
+  public:
 
     /**
      * \short Short text describing the resolvable.
index 3682d84..4fad2fd 100644 (file)
@@ -215,6 +215,9 @@ namespace zypp
     public:
       /** \name Iterate through all ResObjects which have at least
        *  one Capability with index \a index_r in dependency \a depType_r.
+       *
+       * \deprecated If you're looking for providers of a certain capability
+       * use \ref sat::WhatProvides. That's currently the only index provided.
        */
       //@{
       byCapabilityIndex_iterator ZYPP_DEPRECATED byCapabilityIndexBegin( const std::string & index_r, Dep depType_r ) const;