- Timestamp:
- Jul 31, 2007 10:40:06 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r3925 r3936 195 195 const QString &, const QString &); 196 196 197 void cannotDo nwloadGuestAdditions (const QString &aName,197 void cannotDownloadGuestAdditions (const QString &aURL, 198 198 const QString &aReason); 199 200 int warnAboutAdditionsDownload (const QString &aSrc1, const QString &aSrc2, 201 const QString &aName, ulong aSize); 202 199 int confirmDownloadAdditions (const QString &aSrc1, const QString &aSrc2, 200 const QString &aURL, ulong aSize); 203 201 void warnAboutTooOldAdditions (QWidget *, const QString &, const QString &); 204 202 void warnAboutOldAdditions (QWidget *, const QString &, const QString &); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r3927 r3936 289 289 mHttp->abort(); 290 290 if (mStatus == 404) 291 abortDownload (tr (" Unable to find the corresponding"292 " Guest Additions Image file."));291 abortDownload (tr ("Could not locate the file on " 292 "the server.")); 293 293 else 294 294 processFile (aTotal); … … 298 298 } 299 299 else 300 abortDownload (tr ("Could n't determine file size."));300 abortDownload (tr ("Could not determine the file size.")); 301 301 } 302 302 … … 309 309 { 310 310 QString reason = mIsChecking ? 311 tr ("C hecking Guest Additions file presence failed(%1).") :312 tr (" Downloading Guest Additions file failed(%1).");311 tr ("Could not connect to the server (%1).") : 312 tr ("Could not download the file (%1)."); 313 313 abortDownload (reason.arg (mHttp->errorString())); 314 314 } … … 326 326 } 327 327 else 328 abortDownload (tr ("Could not write the local file.")); 328 abortDownload (tr ("Could not save the downloaded file as " 329 "<nobr><b>%1</b></nobr>.") 330 .arg (QDir::convertSeparators (path))); 329 331 } 330 332 } … … 362 364 { 363 365 /* Ask user about GA image downloading */ 364 int rc = vboxProblem().warnAboutAdditionsDownload (mSrc1, mSrc2, 365 mHost + mPath + mFile, aSize); 366 int rc = vboxProblem(). 367 confirmDownloadAdditions (mSrc1, mSrc2, 368 mHost + mPath + mFile, aSize); 366 369 if (rc == QIMessageBox::Yes) 367 370 { … … 380 383 void abortDownload (const QString &aReason) 381 384 { 382 vboxProblem().cannotDo nwloadGuestAdditions (mHost + mPath + mFile,385 vboxProblem().cannotDownloadGuestAdditions (mHost + mPath + mFile, 383 386 aReason); 384 387 /* Allows all the queued signals to be processed before quit. */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r3925 r3936 1254 1254 } 1255 1255 1256 void VBoxProblemReporter::cannotDo nwloadGuestAdditions (const QString &aName,1256 void VBoxProblemReporter::cannotDownloadGuestAdditions (const QString &aURL, 1257 1257 const QString &aReason) 1258 1258 { 1259 1259 QString msg = tr ("<p>Failed to download the VirtualBox Guest " 1260 "Additions CD image <nobr><b>%1</b>.</nobr></p>").arg (aName);1260 "Additions CD image from <nobr><b>%1</b>.</nobr></p>").arg (aURL); 1261 1261 msg += QString ("<p>%1</p>").arg (aReason); 1262 1262 message (&vboxGlobal().consoleWnd(), Error, msg); 1263 1263 } 1264 1264 1265 int VBoxProblemReporter:: warnAboutAdditionsDownload(const QString &aSrc1,1266 1267 const QString &aName,1268 1265 int VBoxProblemReporter::confirmDownloadAdditions (const QString &aSrc1, 1266 const QString &aSrc2, 1267 const QString &aURL, 1268 ulong aSize) 1269 1269 { 1270 1270 QString msg = tr ("<p>Failed to find the VirtualBox Guest Additions CD image " 1271 1271 "<nobr><b>%1</b></nobr> or " 1272 1272 "<nobr><b>%2</b></nobr></p>").arg (aSrc1).arg (aSrc2); 1273 msg += tr ("<p>Do you want to download this image "1274 "<nobr><b>%1</b></nobr> (%2 bytes)?</p>").arg (a Name).arg (aSize);1273 msg += tr ("<p>Do you want to download this image from " 1274 "<nobr><b>%1</b></nobr> (%2 bytes)?</p>").arg (aURL).arg (aSize); 1275 1275 1276 1276 return message (&vboxGlobal().consoleWnd(), Question, msg,
Note:
See TracChangeset
for help on using the changeset viewer.