From: Stefan Schubert Date: Fri, 28 Mar 2008 09:29:38 +0000 (+0000) Subject: Added new resFilter ByRecommended/BySuggested X-Git-Tag: 6.6.0~1199 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c5f0588ec887149eca870a32726206f156f5375;p=platform%2Fupstream%2Flibzypp.git Added new resFilter ByRecommended/BySuggested --- diff --git a/zypp/ResFilters.h b/zypp/ResFilters.h index a0221c3a9..4c372a998 100644 --- a/zypp/ResFilters.h +++ b/zypp/ResFilters.h @@ -341,6 +341,24 @@ namespace zypp } }; + /** Select PoolItem by recommended. */ + struct ByRecommended : public PoolItemFilterFunctor + { + bool operator()( const PoolItem & p ) const + { + return p.status().isRecommended(); + } + }; + + /** Select PoolItem by suggested. */ + struct BySuggested : public PoolItemFilterFunctor + { + bool operator()( const PoolItem & p ) const + { + return p.status().isSuggested(); + } + }; + //@} ///////////////////////////////////////////////////////////////// } // namespace resfilter