]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - prereq.h
Use solver to check for problems and produce a list of package transactions
[cygwin-apps/setup.git] / prereq.h
index 163af6ebbbbab58e7ca5eefe9a1374d6591b4724..1c0e05b746ab187ea77329303cfe858d7bae3a44 100644 (file)
--- a/prereq.h
+++ b/prereq.h
@@ -27,6 +27,7 @@ public:
   virtual long OnNext ();
   virtual long OnBack ();
   virtual long OnUnattended ();
+  virtual bool OnMessageCmd (int id, HWND hwndctl, UINT code);
 private:
   long whatNext ();
 };
@@ -34,25 +35,18 @@ private:
 class PrereqChecker
 {
 public:
-  // checks all dependecies, populates 'unmet'
-  // returns true if unsatisfied dependencies exist
+  // returns true if no dependency problems exist
   bool isMet ();
-  
+
   // formats 'unmet' as a string for display
   void getUnmetString (std::string &s);
-  
-  // selects/picks the needed packages that were missing
-  void selectMissing ();
-  
-  // notes the current trust (for use in selectMissing)
-  static void setTrust (trusts t) { theTrust = t; };
+
+  static void setUpgrade (bool u) { upgrade = u; };
+  static void setTestPackages (bool t) { use_test_packages = t; };
 
 private:
-  
-  // this is the actual hash_map that does all the work
-  static map <packagemeta *, vector <packagemeta *>, packagemeta_ltcomp> unmet;
-  static map <std::string, vector <packagemeta *> > notfound;
-  static trusts theTrust;
+  static bool upgrade;
+  static bool use_test_packages;
 };
 
 #endif /* SETUP_PREREQ_H */
This page took 0.025051 seconds and 5 git commands to generate.