]> cygwin.com Git - cygwin-apps/setup.git/blame_incremental - prereq.h
Added dpiAwareness element to manifest
[cygwin-apps/setup.git] / prereq.h
... / ...
CommitLineData
1#ifndef SETUP_PREREQ_H
2#define SETUP_PREREQ_H
3
4#include <map>
5#include "proppage.h"
6#include "PackageTrust.h"
7#include "package_meta.h"
8
9// keeps the map sorted by name
10struct packagemeta_ltcomp
11{
12 bool operator() ( const packagemeta *m1, const packagemeta *m2 )
13 { return casecompare(m1->name, m2->name) < 0; }
14};
15
16
17class PrereqPage:public PropertyPage
18{
19public:
20 PrereqPage ();
21 virtual ~PrereqPage () { };
22 bool Create ();
23 virtual void OnInit ();
24 virtual void OnActivate ();
25 virtual long OnNext ();
26 virtual long OnBack ();
27 virtual long OnUnattended ();
28};
29
30class PrereqChecker
31{
32public:
33 // returns true if no dependency problems exist
34 bool isMet ();
35
36 // formats 'unmet' as a string for display
37 void getUnmetString (std::string &s);
38
39 // finialize the transaction list
40 void finalize ();
41
42 void augment ();
43
44 static void setTestPackages (bool t) { use_test_packages = t; };
45
46private:
47 static bool use_test_packages;
48 static SolverTasks q;
49};
50
51#endif /* SETUP_PREREQ_H */
This page took 0.029935 seconds and 6 git commands to generate.