summaryrefslogtreecommitdiffstats
path: root/logic/JavaUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/JavaUtils.h')
-rw-r--r--logic/JavaUtils.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/logic/JavaUtils.h b/logic/JavaUtils.h
index fef2a1bf..63daac12 100644
--- a/logic/JavaUtils.h
+++ b/logic/JavaUtils.h
@@ -17,10 +17,28 @@
#include <QStringList>
+#include "osutils.h"
+
+#if WINDOWS
+ #include <windows.h>
+#endif
+
+#define JI_ID 0
+#define JI_ARCH 1
+#define JI_PATH 2
+#define JI_REC 3
+typedef std::tuple<QString, QString, QString, bool> java_install;
+
class JavaUtils
{
public:
JavaUtils();
- QStringList FindJavaPath();
+ std::vector<java_install> FindJavaPaths();
+
+private:
+ std::vector<java_install> GetDefaultJava();
+#if WINDOWS
+ std::vector<java_install> FindJavaFromRegistryKey(DWORD keyType, QString keyName);
+#endif
};