mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-07 05:33:34 +01:00
Preparation for 2.2.0.
This commit is contained in:
parent
867124ffd8
commit
b2ae361173
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<releases>
|
||||
<release version="2.1.0" type="feature">
|
||||
<release version="2.1.0">
|
||||
<url platform="x86" os="Windows">https://bitbucket.org/skunkos/rssguard/downloads/rssguard-2.1.0-win32.exe</url>
|
||||
</release>
|
||||
</releases>
|
@ -224,7 +224,6 @@ UpdateInfo SystemFactory::parseUpdatesFile(const QByteArray &updates_file, const
|
||||
|
||||
if (releases.size() == 1) {
|
||||
QDomElement rel_elem = releases.at(0).toElement();
|
||||
QString type = rel_elem.attributes().namedItem("type").toAttr().value();
|
||||
|
||||
update.m_availableVersion = rel_elem.attributes().namedItem("version").toAttr().value();
|
||||
update.m_changes = changelog;
|
||||
@ -242,13 +241,6 @@ UpdateInfo SystemFactory::parseUpdatesFile(const QByteArray &updates_file, const
|
||||
update.m_urls.insert(url.m_os,
|
||||
url);
|
||||
}
|
||||
|
||||
if (type == "maintenance") {
|
||||
update.m_type = UpdateInfo::Maintenance;
|
||||
}
|
||||
else {
|
||||
update.m_type = UpdateInfo::Evolution;
|
||||
}
|
||||
}
|
||||
else {
|
||||
update.m_availableVersion = QString();
|
||||
|
@ -36,19 +36,11 @@ class UpdateUrl {
|
||||
|
||||
class UpdateInfo {
|
||||
public:
|
||||
enum UpdateType {
|
||||
// Corresponding enum to "maintenace" from UPDATES file.
|
||||
Maintenance,
|
||||
// Corresponding enum to "evolution" from UPDATES file.
|
||||
Evolution
|
||||
};
|
||||
|
||||
explicit UpdateInfo() : m_availableVersion(QString()), m_changes(QString()) {
|
||||
}
|
||||
|
||||
QString m_availableVersion;
|
||||
QString m_changes;
|
||||
UpdateType m_type;
|
||||
QHash<QString, UpdateUrl> m_urls;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user