VirtualBox

Changeset 70785 in vbox


Ignore:
Timestamp:
Jan 29, 2018 10:42:01 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9104: Removing old redirection handling which is not working since we moved from Qt.network to cURL.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/net
Files:
3 edited

Legend:

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

    r69550 r70785  
    9090        /** Returns value for the cached reply header of the passed @a type. */
    9191        QString header(UINetworkReply::KnownHeader type) const;
    92         /** Returns value for the cached reply attribute of the passed @a code. */
    93         QVariant attribute(UINetworkReply::KnownAttribute code) const { /** @todo r=dsen: Fix that. */ Q_UNUSED(code); return QVariant(); }
    9492
    9593        /** Returns short descriptive context of thread's current operation. */
     
    265263    /** Returns value for the cached reply header of the passed @a type. */
    266264    QString header(UINetworkReply::KnownHeader type) const { return m_pThread->header(type); }
    267     /** Returns value for the cached reply attribute of the passed @a code. */
    268     QVariant attribute(UINetworkReply::KnownAttribute code) const { return m_pThread->attribute(code); }
    269265
    270266private slots:
     
    10461042}
    10471043
    1048 QVariant UINetworkReply::attribute(UINetworkReply::KnownAttribute code) const
    1049 {
    1050     return m_pReply->attribute(code);
    1051 }
    1052 
    10531044#include "UINetworkReply.moc"
    10541045
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.h

    r69500 r70785  
    7777    };
    7878
    79     /** Known attribute types.
    80       * Came from QtNetwork module.
    81       * More to go on demand when necessary. */
    82     enum KnownAttribute
    83     {
    84         RedirectionTargetAttribute,
    85     };
    86 
    8779    /** Constructs network-reply of the passed @a type for the passed @a url and @a requestHeaders. */
    8880    UINetworkReply(UINetworkRequestType type, const QUrl &url, const UserDictionary &requestHeaders);
     
    10597    /** Returns value for the cached reply header of the passed @a type. */
    10698    QVariant header(UINetworkReply::KnownHeader header) const;
    107     /** Returns value for the cached reply attribute of the passed @a code. */
    108     QVariant attribute(UINetworkReply::KnownAttribute code) const;
    10999
    110100private:
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequest.cpp

    r69551 r70785  
    8787    else if (m_pReply->error() == UINetworkReply::NoError)
    8888    {
    89         /* Check if redirection required: */
    90         QUrl redirect = m_pReply->attribute(UINetworkReply::RedirectionTargetAttribute).toUrl();
    91         if (redirect.isValid())
    92         {
    93             /* Cleanup current network-reply first: */
    94             cleanupNetworkReply();
    95 
    96             /* Choose redirect-source as current url: */
    97             m_url = redirect;
    98 
    99             /* Create new network-reply finally: */
    100             prepareNetworkReply();
    101         }
    102         else
    103         {
    104             /* Notify own network-request listeners: */
    105             emit sigFinished();
    106             /* Notify common network-request listeners: */
    107             emit sigFinished(m_uuid);
    108         }
    109     }
    110     /* If some error occured: */
     89        /* Notify own network-request listeners: */
     90        emit sigFinished();
     91        /* Notify common network-request listeners: */
     92        emit sigFinished(m_uuid);
     93    }
     94    /* If some other error occured: */
    11195    else
    11296    {
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