All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <HttpProxy.h>
Public Member Functions | |
HttpProxy () | |
HttpProxy (QString url) | |
HttpProxy (const QNetworkProxy &proxy) | |
HttpProxy (const HttpProxy &o) | |
bool | operator< (const HttpProxy &o) const |
void | operator= (const HttpProxy &o) |
bool | operator== (const HttpProxy &o) const |
void | printDebug (QTextStream &s) const |
const QNetworkProxy & | proxy () const |
~HttpProxy () |
Brief description of class still missing.
Avoids exposure of QtNetwork in header.
QGpGuiTools::HttpProxy::HttpProxy | ( | QString | url | ) |
Proxy defined by an url: [http://][username:password@]address:port
QGpGuiTools::HttpProxy::HttpProxy | ( | const QNetworkProxy & | proxy | ) |
QGpGuiTools::HttpProxy::HttpProxy | ( | const HttpProxy & | o | ) |
bool QGpGuiTools::HttpProxy::operator< | ( | const HttpProxy & | o | ) | const |
void QGpGuiTools::HttpProxy::operator= | ( | const HttpProxy & | o | ) |
bool QGpGuiTools::HttpProxy::operator== | ( | const HttpProxy & | o | ) | const |
void QGpGuiTools::HttpProxy::printDebug | ( | QTextStream & | s | ) | const |
For debug, prints proxy data
References TRACE.
{ TRACE; switch(_proxy->type()) { case QNetworkProxy::NoProxy: s << " Direct access\n"; break; default: if(_proxy->user().isEmpty()) { s << " " << _proxy->hostName() << ":" << _proxy->port() << "(type " << _proxy->type() << ")\n"; } else { s << " " << _proxy->user() << ":" << _proxy->password() << "@" << _proxy->hostName() << ":" << _proxy->port() << "(type " << _proxy->type() << ")\n"; } break; } }
const QNetworkProxy & QGpGuiTools::HttpProxy::proxy | ( | ) | const |