MultiMC5/launcher/java/JavaInstall.h

39 lines
731 B
C
Raw Normal View History

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