pollymc/launcher/java/JavaInstall.h

39 lines
731 B
C
Raw Permalink Normal View History

#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();
}
2018-07-15 18:21:05 +05:30
virtual QString name()
{
return id.toString();
}
2018-07-15 18:21:05 +05:30
virtual QString typeString() const
{
return arch;
}
2018-07-15 18:21:05 +05:30
bool operator<(const JavaInstall & rhs);
bool operator==(const JavaInstall & rhs);
bool operator>(const JavaInstall & rhs);
2018-07-15 18:21:05 +05:30
JavaVersion id;
QString arch;
QString path;
bool recommended = false;
};
typedef std::shared_ptr<JavaInstall> JavaInstallPtr;