2016-01-02 05:05:54 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BaseVersion.h"
|
|
|
|
#include "JavaVersion.h"
|
|
|
|
|
|
|
|
struct JavaInstall : public BaseVersion
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
JavaInstall(){}
|
|
|
|
JavaInstall(QString id, QString arch, QString path)
|
|
|
|
: id(id), arch(arch), path(path)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
virtual QString descriptor()
|
|
|
|
{
|
|
|
|
return id.toString();
|
|
|
|
}
|
2016-01-02 05:05:54 +05:30
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
virtual QString name()
|
|
|
|
{
|
|
|
|
return id.toString();
|
|
|
|
}
|
2016-01-02 05:05:54 +05:30
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
virtual QString typeString() const
|
|
|
|
{
|
|
|
|
return arch;
|
|
|
|
}
|
2016-01-02 05:05:54 +05:30
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
bool operator<(const JavaInstall & rhs);
|
|
|
|
bool operator==(const JavaInstall & rhs);
|
|
|
|
bool operator>(const JavaInstall & rhs);
|
2016-01-02 05:05:54 +05:30
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
JavaVersion id;
|
|
|
|
QString arch;
|
|
|
|
QString path;
|
|
|
|
bool recommended = false;
|
2016-01-02 05:05:54 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::shared_ptr<JavaInstall> JavaInstallPtr;
|