Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / solver / detail / SystemCheck.h
index 92a8659..ea41e4a 100644 (file)
@@ -11,6 +11,9 @@
 */
 #ifndef ZYPP_TARGET_SYSTEMCHECK_H
 #define ZYPP_TARGET_SYSTEMCHECK_H
+#ifndef ZYPP_USE_RESOLVER_INTERNALS
+#error Do not directly include this file!
+#else
 
 #include <iosfwd>
 
@@ -38,11 +41,20 @@ namespace zypp
         /** Return the file path. */
         const Pathname & file();
 
+        /** Return the directory path. */
+        const Pathname & dir();
+
         /** Set configuration file of system requirements
         *  Should be used for testcase only   
         */
         bool setFile(const Pathname & file) const;
 
+        /** Set configuration directory for files of system
+        *  requirements.
+         *  Should be used for testcase only
+        */
+        bool setDir(const Pathname & dir) const;
+
         /** Returns a list of required system capabilities.
         */
         const CapabilitySet & requiredSystemCap() const;
@@ -54,8 +66,8 @@ namespace zypp
       private:
         /** Ctor taking the file to read. */
         SystemCheck();
-       bool loadFile() const;
-
+        bool loadFile(Pathname &file, bool reset_caps = true) const;
+       bool loadFiles() const;
     };
     ///////////////////////////////////////////////////////////////////
 
@@ -65,4 +77,5 @@ namespace zypp
   /////////////////////////////////////////////////////////////////
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////
+#endif // ZYPP_USE_RESOLVER_INTERNALS
 #endif // ZYPP_TARGET_SYSTEMCHECK_H