VirtualBox

Changeset 4397 in vbox for trunk


Ignore:
Timestamp:
Aug 28, 2007 8:49:13 AM (17 years ago)
Author:
vboxsync
Message:

Converted the darwin QHttp checks to VBOX_WITHOUT_QHTTP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxDownloaderWgt.cpp

    r4204 r4397  
    6666    QString version = vboxGlobal().virtualBox().GetVersion();
    6767
    68 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     68#if !defined(VBOX_WITHOUT_QHTTP)
    6969    /* Initialize url operator */
    7070    mHttp = new QHttp (this, "mHttp");
     
    7878    connect (mHttp, SIGNAL (responseHeaderReceived (const QHttpResponseHeader&)),
    7979             this, SLOT (processResponse (const QHttpResponseHeader&)));
    80 #endif /* !RT_OS_DARWIN */ /// @todo fix the qt build on darwin.
     80#endif /* !VBOX_WITHOUT_QHTTP */
    8181    connect (mCancelButton, SIGNAL (clicked()),
    8282             this, SLOT (processAbort()));
     
    111111        if (mIsChecking)
    112112        {
    113 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     113#if !defined(VBOX_WITHOUT_QHTTP)
    114114            mHttp->abort();
    115115#endif
     
    133133void VBoxDownloaderWgt::processFinished (int, bool aError)
    134134{
    135 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     135#if !defined(VBOX_WITHOUT_QHTTP)
    136136    if (aError && mHttp->error() != QHttp::Aborted)
    137137    {
     
    187187        };
    188188    }
    189 #else
     189#else  /* VBOX_WITHOUT_QHTTP */
    190190    NOREF (aError);
    191 #endif /* !RT_OS_DARWIN */
     191#endif /* VBOX_WITHOUT_QHTTP */
    192192}
    193193
     
    196196void VBoxDownloaderWgt::processResponse (const QHttpResponseHeader &aHeader)
    197197{
    198 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     198#if !defined(VBOX_WITHOUT_QHTTP)
    199199    mStatus = aHeader.statusCode();
    200 #else
    201     NOREF(aHeader);
    202200#endif
    203201}
     
    208206    if (mConnectDone)
    209207        return;
    210 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     208#if !defined(VBOX_WITHOUT_QHTTP)
    211209    mHttp->abort();
    212210    abortDownload (tr ("Connection timed out."));
     
    217215void VBoxDownloaderWgt::processAbort()
    218216{
    219 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     217#if !defined(VBOX_WITHOUT_QHTTP)
    220218    mConnectDone = true;
    221219    mHttp->abort();
     
    239237{
    240238    mConnectDone = false;
    241 #ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.
     239#if !defined(VBOX_WITHOUT_QHTTP)
    242240    mHttp->get (mUrl.path());
    243241#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette