Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / sat / Pool.h
index b60d6bc..9a29f33 100644 (file)
@@ -19,6 +19,7 @@
 #include "zypp/sat/detail/PoolMember.h"
 #include "zypp/Repository.h"
 #include "zypp/sat/WhatProvides.h"
+#include "zypp/sat/Queue.h"
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
@@ -65,6 +66,15 @@ namespace zypp
         /** Update housekeeping data if necessary (e.g. whatprovides). */
         void prepare() const;
 
+       /** \ref prepare plus some expensive checks done before solving only. */
+       void prepareForSolving() const;
+
+       /** Get rootdir (for file conflicts check) */
+       Pathname rootDir() const;
+
+       /** Set rootdir (for file conflicts check) */
+       void rootDir( const Pathname & root_r );
+
       public:
         /** Whether \ref Pool contains repos. */
         bool reposEmpty() const;
@@ -193,7 +203,7 @@ namespace zypp
         */
         const LocaleSet & getRequestedLocales() const;
 
-        /** Wheter this \ref Locale is in the set of requested locales. */
+        /** Whether this \ref Locale is in the set of requested locales. */
         bool isRequestedLocale( const Locale & locale_r ) const;
 
         /** Get the set of available locales.
@@ -202,7 +212,7 @@ namespace zypp
          */
         const LocaleSet & getAvailableLocales() const;
 
-        /** Wheter this \ref Locale is in the set of available locales. */
+        /** Whether this \ref Locale is in the set of available locales. */
         bool isAvailableLocale( const Locale & locale_r ) const;
         //@}
 
@@ -212,7 +222,7 @@ namespace zypp
          * at the same time. (\see \ref ZConfig::multiversionSpec)
          */
         //@{
-        typedef std::tr1::unordered_set<IdString>::const_iterator MultiversionIterator;
+        typedef IdStringSet::const_iterator MultiversionIterator;
 
         bool multiversionEmpty() const;
         size_t multiversionSize() const;
@@ -223,6 +233,15 @@ namespace zypp
         //@}
 
       public:
+        /** \name Autoinstalled */
+        //@{
+        /** Get ident list of all autoinstalled solvables. */
+       Queue autoInstalled() const;
+       /** Set ident list of all autoinstalled solvables. */
+       void setAutoInstalled( const Queue & autoInstalled_r );
+        //@}
+
+      public:
         /** Expert backdoor. */
         ::_Pool * get() const;
       private: