bool Version::operator<=(Version other) { if (Major()<other.Major()) { return true; } else if (Major()==other.Major() && Minor()<other.Minor()) { return true; } else if (Major()==other.Major() && Minor()==other.Minor() && Micro()<=other.Micro()) { return true; } return false; }
Version::Version(const Version& val) :mMajor(val.Major()), mMinor(val.Minor()), mBuild(val.Build()), mRevision(val.Revision()) { }
StlExport::StlExport(const QUrl &baseUrl, const Version &version, QObject *parent) : QObject(parent), _manager(new QNetworkAccessManager()), _manager2(new QNetworkAccessManager()), _messageName("finfoil"), _versionSuffix("_v" + QString::number(version.Major()) + "." + QString::number(version.Minor()) + "." + QString::number(version.Revision())), _baseUrl(baseUrl) { _messageName.append(_versionSuffix); _messageName.append(".html"); }