GH-1365 rework java version parsing and sorting
This commit is contained in:
parent
5f57df8110
commit
a008efd24e
23 changed files with 414 additions and 138 deletions
30
logic/java/JavaVersion.h
Normal file
30
logic/java/JavaVersion.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
#include <QString>
|
||||
|
||||
class MULTIMC_LOGIC_EXPORT JavaVersion
|
||||
{
|
||||
friend class JavaVersionTest;
|
||||
public:
|
||||
JavaVersion() {};
|
||||
JavaVersion(const QString & rhs);
|
||||
|
||||
JavaVersion & operator=(const QString & rhs);
|
||||
|
||||
bool operator<(const JavaVersion & rhs);
|
||||
bool operator==(const JavaVersion & rhs);
|
||||
bool operator>(const JavaVersion & rhs);
|
||||
|
||||
bool requiresPermGen();
|
||||
|
||||
QString toString();
|
||||
|
||||
private:
|
||||
QString string;
|
||||
int major = 0;
|
||||
int minor = 0;
|
||||
int security = 0;
|
||||
bool parseable = false;
|
||||
QString prerelease;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue