VirtualBox

Changeset 4030 in vbox for trunk


Ignore:
Timestamp:
Aug 3, 2007 10:35:43 PM (17 years ago)
Author:
vboxsync
Message:

Our Qt binary wasn't built with networking, can't fix until I'm back. So, just make it build again on the mac.

File:
1 edited

Legend:

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

    r4022 r4030  
    199199};
    200200
     201#ifdef RT_OS_DARWIN
     202class QHttp;
     203class QHttpResponseHeader;
     204#endif
     205
    201206/** class VBoxGADownloader
    202207 *
     
    252257        mFile = QString ("VBoxGuestAdditions_%1.iso").arg (version);
    253258
     259#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    254260        /* Initialize url operator */
    255261        mHttp = new QHttp (this, "mHttp");
     
    263269        connect (mHttp, SIGNAL (responseHeaderReceived (const QHttpResponseHeader&)),
    264270                 this, SLOT (processResponse (const QHttpResponseHeader&)));
     271#endif /* !RT_OS_DARWIN */ /// @todo fix the qt build on darwin.   
    265272        connect (mCancelButton, SIGNAL (clicked()),
    266273                 this, SLOT (processAbort()));
     
    295302            if (mIsChecking)
    296303            {
     304#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    297305                mHttp->abort();
     306#endif               
    298307                if (mStatus == 404)
    299308                    abortDownload (tr ("Could not locate the file on "
     
    315324    void processFinished (int, bool aError)
    316325    {
     326#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    317327        if (aError && mHttp->error() != QHttp::Aborted)
    318328        {
     
    344354                               .arg (QDir::convertSeparators (path)));
    345355        }
     356#else
     357        NOREF (aError);
     358#endif /* !RT_OS_DARWIN */       
    346359    }
    347360
     
    350363    void processResponse (const QHttpResponseHeader &aHeader)
    351364    {
     365#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    352366        mStatus = aHeader.statusCode();
     367#else
     368        NOREF(aHeader);
     369#endif
    353370    }
    354371
     
    358375        if (mConnectDone)
    359376            return;
     377#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    360378        mHttp->abort();
    361379        abortDownload (tr ("Connection timed out."));
     380#endif       
    362381    }
    363382
     
    365384    void processAbort()
    366385    {
     386#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    367387        mConnectDone = true;
    368388        mHttp->abort();
    369389        abortDownload (tr ("The download process has been cancelled "
    370390                           "by the user."));
     391#endif       
    371392    }
    372393
     
    387408    {
    388409        mConnectDone = false;
     410#ifndef RT_OS_DARWIN /// @todo fix the qt build on darwin.   
    389411        mHttp->get (mPath + mFile);
     412#endif       
    390413        QTimer::singleShot (5000, this, SLOT (processTimeout()));
    391414    }
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