VirtualBox

Ignore:
Timestamp:
Oct 14, 2015 3:51:54 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Networking cleanup/rework (part 11): Refactoring.

File:
1 edited

Legend:

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

    r58249 r58252  
    406406    switch (m_type)
    407407    {
    408         case UINetworkRequestType_HEAD_Our:
     408        case UINetworkRequestType_HEAD:
    409409        {
    410410            /* Perform blocking HTTP HEAD request: */
     
    433433            break;
    434434        }
    435         case UINetworkRequestType_GET_Our:
     435        case UINetworkRequestType_GET:
    436436        {
    437437            /* Perform blocking HTTP GET request: */
     
    881881    void abort() { m_pThread->abort(); }
    882882
     883    /** Returns URL of the reply. */
     884    QUrl url() const { return m_pThread->url(); }
     885
    883886    /* API: Error-code getter: */
    884887    QNetworkReply::NetworkError error() const { return m_error; }
     
    909912    /** Returns value for the cached reply header of the passed @a type. */
    910913    QString header(QNetworkRequest::KnownHeaders type) const { return m_pThread->header(type); }
    911 
    912     /** Returns URL of the reply. */
    913     QUrl url() const { return m_pThread->url(); }
    914914
    915915    /** Returns value for the cached reply attribute of the passed @a code. */
     
    973973}
    974974
     975void UINetworkReply::abort()
     976{
     977    return m_pReply->abort();
     978}
     979
     980QUrl UINetworkReply::url() const
     981{
     982    return m_pReply->url();
     983}
     984
     985QNetworkReply::NetworkError UINetworkReply::error() const
     986{
     987    return m_pReply->error();
     988}
     989
     990QString UINetworkReply::errorString() const
     991{
     992    return m_pReply->errorString();
     993}
     994
     995QByteArray UINetworkReply::readAll() const
     996{
     997    return m_pReply->readAll();
     998}
     999
    9751000QVariant UINetworkReply::header(QNetworkRequest::KnownHeaders header) const
    9761001{
     
    9831008}
    9841009
    985 void UINetworkReply::abort()
    986 {
    987     return m_pReply->abort();
    988 }
    989 
    990 QNetworkReply::NetworkError UINetworkReply::error() const
    991 {
    992     return m_pReply->error();
    993 }
    994 
    995 QString UINetworkReply::errorString() const
    996 {
    997     return m_pReply->errorString();
    998 }
    999 
    1000 QByteArray UINetworkReply::readAll() const
    1001 {
    1002     return m_pReply->readAll();
    1003 }
    1004 
    1005 QUrl UINetworkReply::url() const
    1006 {
    1007     return m_pReply->url();
    1008 }
    1009 
    10101010#include "UINetworkReply.moc"
    10111011
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