Better (but unsorted) Java detection
This commit is contained in:
parent
ab69c1b9e6
commit
afa5e14e20
13 changed files with 338 additions and 87 deletions
|
@ -19,21 +19,23 @@
|
|||
#include <QWidget>
|
||||
|
||||
#include <osutils.h>
|
||||
|
||||
#include "logic/lists/JavaVersionList.h"
|
||||
#include "JavaCheckerJob.h"
|
||||
#include "JavaChecker.h"
|
||||
#include "lists/JavaVersionList.h"
|
||||
|
||||
#if WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
class JavaUtils
|
||||
class JavaUtils : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
JavaUtils();
|
||||
|
||||
JavaVersionPtr MakeJavaPtr(QString path, QString id = "unknown", QString arch = "unknown");
|
||||
QList<JavaVersionPtr> FindJavaPaths();
|
||||
JavaVersionPtr GetDefaultJava();
|
||||
private:
|
||||
|
||||
#if WINDOWS
|
||||
QList<JavaVersionPtr> FindJavaFromRegistryKey(DWORD keyType, QString keyName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue