diff options
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/serverinfo.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp index fd46f13a8b..8d91309e66 100644 --- a/rbutil/rbutilqt/base/serverinfo.cpp +++ b/rbutil/rbutilqt/base/serverinfo.cpp | |||
@@ -35,6 +35,9 @@ const static struct { | |||
35 | { ServerInfo::RelCandidateVersion, ":platform:/rcversion", "" }, | 35 | { ServerInfo::RelCandidateVersion, ":platform:/rcversion", "" }, |
36 | { ServerInfo::RelCandidateUrl, ":platform:/rcurl", "" }, | 36 | { ServerInfo::RelCandidateUrl, ":platform:/rcurl", "" }, |
37 | { ServerInfo::CurStatus, ":platform:/status", "Unknown" }, | 37 | { ServerInfo::CurStatus, ":platform:/status", "Unknown" }, |
38 | { ServerInfo::ManualPdfUrl, ":platform:/manual_pdf", "" }, | ||
39 | { ServerInfo::ManualHtmlUrl, ":platform:/manual_html", "" }, | ||
40 | { ServerInfo::ManualZipUrl, ":platform:/manual_zip", "" }, | ||
38 | { ServerInfo::BleedingRevision, "bleedingrev", "" }, | 41 | { ServerInfo::BleedingRevision, "bleedingrev", "" }, |
39 | { ServerInfo::BleedingDate, "bleedingdate", "" }, | 42 | { ServerInfo::BleedingDate, "bleedingdate", "" }, |
40 | { ServerInfo::CurDevelUrl, ":platform:/develurl", "" }, | 43 | { ServerInfo::CurDevelUrl, ":platform:/develurl", "" }, |
@@ -126,6 +129,28 @@ void ServerInfo::readBuildInfo(QString file) | |||
126 | break; | 129 | break; |
127 | } | 130 | } |
128 | info.endGroup(); | 131 | info.endGroup(); |
132 | |||
133 | // manual URLs | ||
134 | QString manualPdfUrl = manualBaseUrl; | ||
135 | QString manualHtmlUrl = manualBaseUrl; | ||
136 | QString manualZipUrl = manualBaseUrl; | ||
137 | |||
138 | QString buildservermodel = SystemInfo::platformValue(platforms.at(i), | ||
139 | SystemInfo::CurBuildserverModel).toString(); | ||
140 | QString modelman = SystemInfo::platformValue(platforms.at(i), | ||
141 | SystemInfo::CurManual).toString(); | ||
142 | QString manualBaseName = "rockbox-"; | ||
143 | |||
144 | if(modelman.isEmpty()) manualBaseName += buildservermodel; | ||
145 | else manualBaseName += modelman; | ||
146 | |||
147 | manualPdfUrl.replace("%EXTENSION%", "pdf"); | ||
148 | manualPdfUrl.replace("%MANUALBASENAME%", manualBaseName); | ||
149 | manualHtmlUrl.replace("%EXTENSION%", "html"); | ||
150 | manualHtmlUrl.replace("%MANUALBASENAME%", manualBaseName + "/rockbox-build"); | ||
151 | manualZipUrl.replace("%EXTENSION%", "zip"); | ||
152 | manualZipUrl.replace("%MANUALBASENAME%", manualBaseName + "-html"); | ||
153 | |||
129 | // set variants (if any) | 154 | // set variants (if any) |
130 | for(int j = 0; j < variants.size(); ++j) { | 155 | for(int j = 0; j < variants.size(); ++j) { |
131 | setPlatformValue(variants.at(j), ServerInfo::CurStatus, status); | 156 | setPlatformValue(variants.at(j), ServerInfo::CurStatus, status); |
@@ -138,6 +163,10 @@ void ServerInfo::readBuildInfo(QString file) | |||
138 | setPlatformValue(variants.at(j), ServerInfo::RelCandidateUrl, relCandidateUrl); | 163 | setPlatformValue(variants.at(j), ServerInfo::RelCandidateUrl, relCandidateUrl); |
139 | } | 164 | } |
140 | setPlatformValue(variants.at(j), ServerInfo::CurDevelUrl, develUrl); | 165 | setPlatformValue(variants.at(j), ServerInfo::CurDevelUrl, develUrl); |
166 | |||
167 | setPlatformValue(variants.at(j), ServerInfo::ManualPdfUrl, manualPdfUrl); | ||
168 | setPlatformValue(variants.at(j), ServerInfo::ManualHtmlUrl, manualHtmlUrl); | ||
169 | setPlatformValue(variants.at(j), ServerInfo::ManualZipUrl, manualZipUrl); | ||
141 | } | 170 | } |
142 | } | 171 | } |
143 | } | 172 | } |