Qt 4.8
Classes | Macros | Functions
qnetworkproxy.cpp File Reference
#include "qnetworkproxy.h"
#include "private/qnetworkproxy_p.h"
#include "private/qsocks5socketengine_p.h"
#include "private/qhttpsocketengine_p.h"
#include "qauthenticator.h"
#include "qhash.h"
#include "qmutex.h"
#include "qurl.h"
#include <QtNetwork/QNetworkConfiguration>

Go to the source code of this file.

Classes

class  QGlobalNetworkProxy
 
class  QNetworkProxyPrivate
 
class  QNetworkProxyQueryPrivate
 

Macros

#define q_static_assert(expr)   qt_noop_with_arg(sizeof(StaticAssertTest< expr >::Value))
 

Functions

static QNetworkProxy::Capabilities defaultCapabilitiesForType (QNetworkProxy::ProxyType type)
 
static void qt_noop_with_arg (int)
 

Macro Definition Documentation

◆ q_static_assert

#define q_static_assert (   expr)    qt_noop_with_arg(sizeof(StaticAssertTest< expr >::Value))

Definition at line 354 of file qnetworkproxy.cpp.

Referenced by defaultCapabilitiesForType().

Function Documentation

◆ defaultCapabilitiesForType()

static QNetworkProxy::Capabilities defaultCapabilitiesForType ( QNetworkProxy::ProxyType  type)
static

Definition at line 356 of file qnetworkproxy.cpp.

Referenced by QNetworkProxy::capabilities(), and QNetworkProxy::setType().

357 {
360  static const int defaults[] =
361  {
362  /* [QNetworkProxy::DefaultProxy] = */
366  /* [QNetworkProxy::Socks5Proxy] = */
371  // it's weird to talk about the proxy capabilities of a "not proxy"...
372  /* [QNetworkProxy::NoProxy] = */
376  /* [QNetworkProxy::HttpProxy] = */
380  /* [QNetworkProxy::HttpCachingProxy] = */
383  /* [QNetworkProxy::FtpCachingProxy] = */
386  };
387 
388  if (int(type) < 0 || int(type) > int(QNetworkProxy::FtpCachingProxy))
390  return QNetworkProxy::Capabilities(defaults[int(type)]);
391 }
int type
Definition: qmetatype.cpp:239
#define q_static_assert(expr)

◆ qt_noop_with_arg()

static void qt_noop_with_arg ( int  )
inlinestatic

Definition at line 353 of file qnetworkproxy.cpp.

353 {}