- Timestamp:
- Oct 14, 2015 3:51:54 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/net
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloader.cpp
r58246 r58252 48 48 49 49 /* Create network request set: */ 50 createNetworkRequest(requests, UINetworkRequestType_HEAD _Our, tr("Looking for %1...").arg(m_strDescription));50 createNetworkRequest(requests, UINetworkRequestType_HEAD, tr("Looking for %1...").arg(m_strDescription)); 51 51 } 52 52 … … 61 61 62 62 /* Create network request: */ 63 createNetworkRequest(request, UINetworkRequestType_GET _Our, tr("Downloading %1...").arg(m_strDescription));63 createNetworkRequest(request, UINetworkRequestType_GET, tr("Downloading %1...").arg(m_strDescription)); 64 64 } 65 65 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkDefs.h
r58249 r58252 22 22 enum UINetworkRequestType 23 23 { 24 UINetworkRequestType_HEAD _Our,25 UINetworkRequestType_GET _Our24 UINetworkRequestType_HEAD, 25 UINetworkRequestType_GET 26 26 }; 27 27 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp
r58249 r58252 406 406 switch (m_type) 407 407 { 408 case UINetworkRequestType_HEAD _Our:408 case UINetworkRequestType_HEAD: 409 409 { 410 410 /* Perform blocking HTTP HEAD request: */ … … 433 433 break; 434 434 } 435 case UINetworkRequestType_GET _Our:435 case UINetworkRequestType_GET: 436 436 { 437 437 /* Perform blocking HTTP GET request: */ … … 881 881 void abort() { m_pThread->abort(); } 882 882 883 /** Returns URL of the reply. */ 884 QUrl url() const { return m_pThread->url(); } 885 883 886 /* API: Error-code getter: */ 884 887 QNetworkReply::NetworkError error() const { return m_error; } … … 909 912 /** Returns value for the cached reply header of the passed @a type. */ 910 913 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(); }914 914 915 915 /** Returns value for the cached reply attribute of the passed @a code. */ … … 973 973 } 974 974 975 void UINetworkReply::abort() 976 { 977 return m_pReply->abort(); 978 } 979 980 QUrl UINetworkReply::url() const 981 { 982 return m_pReply->url(); 983 } 984 985 QNetworkReply::NetworkError UINetworkReply::error() const 986 { 987 return m_pReply->error(); 988 } 989 990 QString UINetworkReply::errorString() const 991 { 992 return m_pReply->errorString(); 993 } 994 995 QByteArray UINetworkReply::readAll() const 996 { 997 return m_pReply->readAll(); 998 } 999 975 1000 QVariant UINetworkReply::header(QNetworkRequest::KnownHeaders header) const 976 1001 { … … 983 1008 } 984 1009 985 void UINetworkReply::abort()986 {987 return m_pReply->abort();988 }989 990 QNetworkReply::NetworkError UINetworkReply::error() const991 {992 return m_pReply->error();993 }994 995 QString UINetworkReply::errorString() const996 {997 return m_pReply->errorString();998 }999 1000 QByteArray UINetworkReply::readAll() const1001 {1002 return m_pReply->readAll();1003 }1004 1005 QUrl UINetworkReply::url() const1006 {1007 return m_pReply->url();1008 }1009 1010 1010 #include "UINetworkReply.moc" 1011 1011 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.h
r58249 r58252 47 47 48 48 /* API: */ 49 QVariant header(QNetworkRequest::KnownHeaders header) const;50 QVariant attribute(QNetworkRequest::Attribute code) const;51 49 void abort(); 50 QUrl url() const; 52 51 QNetworkReply::NetworkError error() const; 53 52 QString errorString() const; 54 53 QByteArray readAll() const; 55 QUrl url() const; 54 QVariant header(QNetworkRequest::KnownHeaders header) const; 55 QVariant attribute(QNetworkRequest::Attribute code) const; 56 56 57 57 private: -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r55739 r58252 193 193 request.setUrl(url); 194 194 request.setRawHeader("User-Agent", strUserAgent.toAscii()); 195 createNetworkRequest(request, UINetworkRequestType_GET _Our, tr("Checking for a new VirtualBox version..."));195 createNetworkRequest(request, UINetworkRequestType_GET, tr("Checking for a new VirtualBox version...")); 196 196 } 197 197 -
trunk/src/VBox/Frontends/VirtualBox/src/net/tstSSLCertDownloads.cpp
r58244 r58252 45 45 { 46 46 QNetworkRequest Dummy; 47 UINetworkReplyPrivateThread TestObj(Dummy, UINetworkRequestType_GET _Our);47 UINetworkReplyPrivateThread TestObj(Dummy, UINetworkRequestType_GET); 48 48 49 49 /*
Note:
See TracChangeset
for help on using the changeset viewer.