Example #1
0
 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;
 }
Example #2
0
Version::Version(const Version& val)
	:mMajor(val.Major()),
	mMinor(val.Minor()),
	mBuild(val.Build()),
	mRevision(val.Revision())
{

}
Example #3
0
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");
}