- Timestamp:
- Aug 28, 2007 8:49:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxDownloaderWgt.cpp
r4204 r4397 66 66 QString version = vboxGlobal().virtualBox().GetVersion(); 67 67 68 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.68 #if !defined(VBOX_WITHOUT_QHTTP) 69 69 /* Initialize url operator */ 70 70 mHttp = new QHttp (this, "mHttp"); … … 78 78 connect (mHttp, SIGNAL (responseHeaderReceived (const QHttpResponseHeader&)), 79 79 this, SLOT (processResponse (const QHttpResponseHeader&))); 80 #endif /* ! RT_OS_DARWIN */ /// @todo fix the qt build on darwin.80 #endif /* !VBOX_WITHOUT_QHTTP */ 81 81 connect (mCancelButton, SIGNAL (clicked()), 82 82 this, SLOT (processAbort())); … … 111 111 if (mIsChecking) 112 112 { 113 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.113 #if !defined(VBOX_WITHOUT_QHTTP) 114 114 mHttp->abort(); 115 115 #endif … … 133 133 void VBoxDownloaderWgt::processFinished (int, bool aError) 134 134 { 135 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.135 #if !defined(VBOX_WITHOUT_QHTTP) 136 136 if (aError && mHttp->error() != QHttp::Aborted) 137 137 { … … 187 187 }; 188 188 } 189 #else 189 #else /* VBOX_WITHOUT_QHTTP */ 190 190 NOREF (aError); 191 #endif /* !RT_OS_DARWIN*/191 #endif /* VBOX_WITHOUT_QHTTP */ 192 192 } 193 193 … … 196 196 void VBoxDownloaderWgt::processResponse (const QHttpResponseHeader &aHeader) 197 197 { 198 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.198 #if !defined(VBOX_WITHOUT_QHTTP) 199 199 mStatus = aHeader.statusCode(); 200 #else201 NOREF(aHeader);202 200 #endif 203 201 } … … 208 206 if (mConnectDone) 209 207 return; 210 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.208 #if !defined(VBOX_WITHOUT_QHTTP) 211 209 mHttp->abort(); 212 210 abortDownload (tr ("Connection timed out.")); … … 217 215 void VBoxDownloaderWgt::processAbort() 218 216 { 219 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.217 #if !defined(VBOX_WITHOUT_QHTTP) 220 218 mConnectDone = true; 221 219 mHttp->abort(); … … 239 237 { 240 238 mConnectDone = false; 241 #if ndef RT_OS_DARWIN /// @todo fix the qt build on darwin.239 #if !defined(VBOX_WITHOUT_QHTTP) 242 240 mHttp->get (mUrl.path()); 243 241 #endif
Note:
See TracChangeset
for help on using the changeset viewer.