"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/updater/updater.cpp" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

updater.cpp  (ownCloud-2.9.0.5150.tar.xz):updater.cpp  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 94 skipping to change at line 94
QString sysInfo = getSystemInfo(); QString sysInfo = getSystemInfo();
if (!sysInfo.isEmpty()) { if (!sysInfo.isEmpty()) {
query.addQueryItem(QStringLiteral("client"), sysInfo); query.addQueryItem(QStringLiteral("client"), sysInfo);
} }
query.addQueryItem(QStringLiteral("version"), clientVersion()); query.addQueryItem(QStringLiteral("version"), clientVersion());
query.addQueryItem(QStringLiteral("platform"), platform); query.addQueryItem(QStringLiteral("platform"), platform);
query.addQueryItem(QStringLiteral("oem"), theme->appName()); query.addQueryItem(QStringLiteral("oem"), theme->appName());
query.addQueryItem(QStringLiteral("buildArch"), QSysInfo::buildCpuArchitectu re()); query.addQueryItem(QStringLiteral("buildArch"), QSysInfo::buildCpuArchitectu re());
query.addQueryItem(QStringLiteral("currentArch"), QSysInfo::currentCpuArchit ecture()); query.addQueryItem(QStringLiteral("currentArch"), QSysInfo::currentCpuArchit ecture());
QString suffix = QStringLiteral(MIRALL_STRINGIFY(MIRALL_VERSION_SUFFIX)); query.addQueryItem(QStringLiteral("versionsuffix"), MIRALL_VERSION_SUFFIX())
query.addQueryItem(QStringLiteral("versionsuffix"), suffix); ;
auto channel = ConfigFile().updateChannel(); auto channel = ConfigFile().updateChannel();
if (channel != QLatin1String("stable")) { if (channel != QLatin1String("stable")) {
query.addQueryItem(QStringLiteral("channel"), channel); query.addQueryItem(QStringLiteral("channel"), channel);
} }
return query; return query;
} }
QString Updater::getSystemInfo() QString Updater::getSystemInfo()
skipping to change at line 166 skipping to change at line 165
if (version.isEmpty()) if (version.isEmpty())
return 0; return 0;
QByteArray baVersion = version.toLatin1(); QByteArray baVersion = version.toLatin1();
int major = 0, minor = 0, patch = 0, build = 0; int major = 0, minor = 0, patch = 0, build = 0;
sscanf(baVersion, "%d.%d.%d.%d", &major, &minor, &patch, &build); sscanf(baVersion, "%d.%d.%d.%d", &major, &minor, &patch, &build);
return versionToInt(major, minor, patch, build); return versionToInt(major, minor, patch, build);
} }
QString Updater::clientVersion() QString Updater::clientVersion()
{ {
return QString::fromLatin1(MIRALL_STRINGIFY(MIRALL_VERSION_FULL)); return MIRALL_VERSION_FULL();
} }
} // namespace OCC } // namespace OCC
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)