mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
39 lines
731 B
C++
39 lines
731 B
C++
#pragma once
|
|
|
|
#include "BaseVersion.h"
|
|
#include "JavaVersion.h"
|
|
|
|
struct JavaInstall : public BaseVersion
|
|
{
|
|
JavaInstall(){}
|
|
JavaInstall(QString id, QString arch, QString path)
|
|
: id(id), arch(arch), path(path)
|
|
{
|
|
}
|
|
virtual QString descriptor()
|
|
{
|
|
return id.toString();
|
|
}
|
|
|
|
virtual QString name()
|
|
{
|
|
return id.toString();
|
|
}
|
|
|
|
virtual QString typeString() const
|
|
{
|
|
return arch;
|
|
}
|
|
|
|
bool operator<(const JavaInstall & rhs);
|
|
bool operator==(const JavaInstall & rhs);
|
|
bool operator>(const JavaInstall & rhs);
|
|
|
|
JavaVersion id;
|
|
QString arch;
|
|
QString path;
|
|
bool recommended = false;
|
|
};
|
|
|
|
typedef std::shared_ptr<JavaInstall> JavaInstallPtr;
|