First draft of multiple Java installation detection on Windows
This commit is contained in:
parent
d5e4802ade
commit
17c98655f8
4 changed files with 123 additions and 50 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue