- Timestamp:
- Aug 3, 2007 10:35:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r4022 r4030 199 199 }; 200 200 201 #ifdef RT_OS_DARWIN 202 class QHttp; 203 class QHttpResponseHeader; 204 #endif 205 201 206 /** class VBoxGADownloader 202 207 * … … 252 257 mFile = QString ("VBoxGuestAdditions_%1.iso").arg (version); 253 258 259 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 254 260 /* Initialize url operator */ 255 261 mHttp = new QHttp (this, "mHttp"); … … 263 269 connect (mHttp, SIGNAL (responseHeaderReceived (const QHttpResponseHeader&)), 264 270 this, SLOT (processResponse (const QHttpResponseHeader&))); 271 #endif /* !RT_OS_DARWIN */ /// @todo fix the qt build on darwin. 265 272 connect (mCancelButton, SIGNAL (clicked()), 266 273 this, SLOT (processAbort())); … … 295 302 if (mIsChecking) 296 303 { 304 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 297 305 mHttp->abort(); 306 #endif 298 307 if (mStatus == 404) 299 308 abortDownload (tr ("Could not locate the file on " … … 315 324 void processFinished (int, bool aError) 316 325 { 326 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 317 327 if (aError && mHttp->error() != QHttp::Aborted) 318 328 { … … 344 354 .arg (QDir::convertSeparators (path))); 345 355 } 356 #else 357 NOREF (aError); 358 #endif /* !RT_OS_DARWIN */ 346 359 } 347 360 … … 350 363 void processResponse (const QHttpResponseHeader &aHeader) 351 364 { 365 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 352 366 mStatus = aHeader.statusCode(); 367 #else 368 NOREF(aHeader); 369 #endif 353 370 } 354 371 … … 358 375 if (mConnectDone) 359 376 return; 377 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 360 378 mHttp->abort(); 361 379 abortDownload (tr ("Connection timed out.")); 380 #endif 362 381 } 363 382 … … 365 384 void processAbort() 366 385 { 386 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 367 387 mConnectDone = true; 368 388 mHttp->abort(); 369 389 abortDownload (tr ("The download process has been cancelled " 370 390 "by the user.")); 391 #endif 371 392 } 372 393 … … 387 408 { 388 409 mConnectDone = false; 410 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin. 389 411 mHttp->get (mPath + mFile); 412 #endif 390 413 QTimer::singleShot (5000, this, SLOT (processTimeout())); 391 414 }
Note:
See TracChangeset
for help on using the changeset viewer.