1 #ifndef FABCOINVERSIONCHECKER_H 2 #define FABCOINVERSIONCHECKER_H 6 #define FABCOIN_RELEASES "https://github.com/fabcoinproject/fabcoin/releases" 30 QStringList parts = str.split(
".");
33 _major = parts[0].
toInt();
34 if(parts.length() > 1)
35 _minor = parts[1].
toInt();
36 if(parts.length() > 2)
37 _revision = parts[2].
toInt();
71 int diff = first - second;
72 return diff > 0 ? 1 : diff < 0 ? -1 : 0;
89 bool newVersionAvailable();
92 QList<Version> getVersions();
98 #endif // FABCOINVERSIONCHECKER_H int compare(int first, int second) const
uint32_t maj(uint32_t x, uint32_t y, uint32_t z)
bool operator>(const Version &other) const
bool operator<(const Version &other) const
int compareAll(const Version &other) const
Version(int maj, int min, int rev)
N diff(N const &_a, N const &_b)
Version(const Version &v)
u256 toInt(json_spirit::mValue const &_v)
bool operator==(const Version &other) const