Add a MMC-depend field (soft/hard) for version checking

This commit is contained in:
Jan Dalheimer
2014-02-02 14:05:07 +01:00
parent 790402bdce
commit ece826bdbc
8 changed files with 351 additions and 32 deletions

View File

@ -0,0 +1,32 @@
#pragma once
#include <QString>
#include "libutil_config.h"
class QUrl;
namespace Util
{
struct Version
{
Version(const QString &str);
bool operator<(const Version &other) const;
bool operator<=(const Version &other) const;
bool operator>(const Version &other) const;
bool operator==(const Version &other) const;
bool operator!=(const Version &other) const;
QString toString() const
{
return m_string;
}
private:
QString m_string;
};
LIBUTIL_EXPORT QUrl expandQMURL(const QString &in);
LIBUTIL_EXPORT bool versionIsInInterval(const QString &version, const QString &interval);
}