QNetworkAccessManager Class Reference

#include <qnetworkaccessmanager.h>

Class Description

Definition at line 72 of file qnetworkaccessmanager.h.

+ Inheritance diagram for QNetworkAccessManager:

Public Types

enum  Operation {
  HeadOperation = 1, GetOperation, PutOperation, PostOperation,
  DeleteOperation, CustomOperation, UnknownOperation = 0
}
 
enum  NetworkAccessibility { UnknownAccessibility = -1, NotAccessible = 0, Accessible = 1 }
 

Signals

void proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *authenticator)
 
void authenticationRequired (QNetworkReply *reply, QAuthenticator *authenticator)
 
void finished (QNetworkReply *reply)
 
void sslErrors (QNetworkReply *reply, const QList< QSslError > &errors)
 
void networkSessionConnected ()
 
void networkAccessibleChanged (QNetworkAccessManager::NetworkAccessibility accessible)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QNetworkAccessManager (QObject *parent=0)
 
 ~QNetworkAccessManager ()
 
QNetworkProxy proxy () const
 
void setProxy (const QNetworkProxy &proxy)
 
QNetworkProxyFactoryproxyFactory () const
 
void setProxyFactory (QNetworkProxyFactory *factory)
 
QAbstractNetworkCachecache () const
 
void setCache (QAbstractNetworkCache *cache)
 
QNetworkCookieJarcookieJar () const
 
void setCookieJar (QNetworkCookieJar *cookieJar)
 
QNetworkReplyhead (const QNetworkRequest &request)
 
QNetworkReplyget (const QNetworkRequest &request)
 
QNetworkReplypost (const QNetworkRequest &request, QIODevice *data)
 
QNetworkReplypost (const QNetworkRequest &request, const QByteArray &data)
 
QNetworkReplypost (const QNetworkRequest &request, QHttpMultiPart *multiPart)
 
QNetworkReplyput (const QNetworkRequest &request, QIODevice *data)
 
QNetworkReplyput (const QNetworkRequest &request, const QByteArray &data)
 
QNetworkReplyput (const QNetworkRequest &request, QHttpMultiPart *multiPart)
 
QNetworkReplydeleteResource (const QNetworkRequest &request)
 
QNetworkReplysendCustomRequest (const QNetworkRequest &request, const QByteArray &verb, QIODevice *data=0)
 
void setConfiguration (const QNetworkConfiguration &config)
 
QNetworkConfiguration configuration () const
 
QNetworkConfiguration activeConfiguration () const
 
void setNetworkAccessible (NetworkAccessibility accessible)
 
NetworkAccessibility networkAccessible () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

virtual QNetworkReplycreateRequest (Operation op, const QNetworkRequest &request, QIODevice *outgoingData=0)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

NetworkAccessibility networkAccessible
 
- Properties inherited from QObject
QString objectName
 

Friends

class QNetworkReplyImplPrivate
 
class QNetworkAccessHttpBackend
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

Enumerator
UnknownAccessibility 
NotAccessible 
Accessible 

Definition at line 93 of file qnetworkaccessmanager.h.

Constructor & Destructor Documentation

QNetworkAccessManager ( QObject parent = 0)
explicit

Member Function Documentation

QNetworkProxy proxy ( ) const
void setProxy ( const QNetworkProxy proxy)
QNetworkProxyFactory* proxyFactory ( ) const
void setProxyFactory ( QNetworkProxyFactory factory)
QAbstractNetworkCache* cache ( ) const
void setCache ( QAbstractNetworkCache cache)
QNetworkCookieJar* cookieJar ( ) const
void setCookieJar ( QNetworkCookieJar cookieJar)
QNetworkReply* head ( const QNetworkRequest request)
QNetworkReply* get ( const QNetworkRequest request)
QNetworkReply* post ( const QNetworkRequest request,
QIODevice data 
)
QNetworkReply* post ( const QNetworkRequest request,
const QByteArray data 
)
QNetworkReply* post ( const QNetworkRequest request,
QHttpMultiPart multiPart 
)
QNetworkReply* put ( const QNetworkRequest request,
QIODevice data 
)
QNetworkReply* put ( const QNetworkRequest request,
const QByteArray data 
)
QNetworkReply* put ( const QNetworkRequest request,
QHttpMultiPart multiPart 
)
QNetworkReply* deleteResource ( const QNetworkRequest request)
QNetworkReply* sendCustomRequest ( const QNetworkRequest request,
const QByteArray verb,
QIODevice data = 0 
)
void setConfiguration ( const QNetworkConfiguration config)
QNetworkConfiguration configuration ( ) const
QNetworkConfiguration activeConfiguration ( ) const
void setNetworkAccessible ( NetworkAccessibility  accessible)
NetworkAccessibility networkAccessible ( ) const
void proxyAuthenticationRequired ( const QNetworkProxy proxy,
QAuthenticator authenticator 
)
signal
void authenticationRequired ( QNetworkReply reply,
QAuthenticator authenticator 
)
signal
void finished ( QNetworkReply reply)
signal
void sslErrors ( QNetworkReply reply,
const QList< QSslError > &  errors 
)
signal
void networkSessionConnected ( )
signal
void networkAccessibleChanged ( QNetworkAccessManager::NetworkAccessibility  accessible)
signal
virtual QNetworkReply* createRequest ( Operation  op,
const QNetworkRequest request,
QIODevice outgoingData = 0 
)
protectedvirtual

Friends And Related Function Documentation

friend class QNetworkReplyImplPrivate
friend

Definition at line 161 of file qnetworkaccessmanager.h.

friend class QNetworkAccessHttpBackend
friend

Definition at line 162 of file qnetworkaccessmanager.h.

Property Documentation

NetworkAccessibility networkAccessible
readwrite

Definition at line 77 of file qnetworkaccessmanager.h.


The documentation for this class was generated from the following file: