QNetworkSession Class Reference

#include <qnetworksession.h>

Class Description

Definition at line 71 of file qnetworksession.h.

+ Inheritance diagram for QNetworkSession:

Public Types

enum  State {
  Invalid = 0, NotAvailable, Connecting, Connected,
  Closing, Disconnected, Roaming
}
 
enum  SessionError {
  UnknownSessionError = 0, SessionAbortedError, RoamingError, OperationNotSupportedError,
  InvalidConfigurationError
}
 

Public Slots

void open ()
 
void close ()
 
void stop ()
 
void migrate ()
 
void ignore ()
 
void accept ()
 
void reject ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void stateChanged (QNetworkSession::State)
 
void opened ()
 
void closed ()
 
void error (QNetworkSession::SessionError)
 
void preferredConfigurationChanged (const QNetworkConfiguration &config, bool isSeamless)
 
void newConfigurationActivated ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QNetworkSession (const QNetworkConfiguration &connConfig, QObject *parent=0)
 
virtual ~QNetworkSession ()
 
bool isOpen () const
 
QNetworkConfiguration configuration () const
 
QNetworkInterface interface () const
 
State state () const
 
SessionError error () const
 
QString errorString () const
 
QVariant sessionProperty (const QString &key) const
 
void setSessionProperty (const QString &key, const QVariant &value)
 
quint64 bytesWritten () const
 
quint64 bytesReceived () const
 
quint64 activeTime () const
 
bool waitForOpened (int msecs=30000)
 
- 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 void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
- 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 *)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Friends

class QNetworkSessionPrivate
 

Additional Inherited Members

- 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
 
- Properties inherited from QObject
QString objectName
 

Member Enumeration Documentation

enum State
Enumerator
Invalid 
NotAvailable 
Connecting 
Connected 
Closing 
Disconnected 
Roaming 

Definition at line 76 of file qnetworksession.h.

Enumerator
UnknownSessionError 
SessionAbortedError 
RoamingError 
OperationNotSupportedError 
InvalidConfigurationError 

Definition at line 86 of file qnetworksession.h.

Constructor & Destructor Documentation

QNetworkSession ( const QNetworkConfiguration connConfig,
QObject parent = 0 
)
explicit
virtual ~QNetworkSession ( )
virtual

Member Function Documentation

bool isOpen ( ) const
QNetworkConfiguration configuration ( ) const
QNetworkInterface interface ( ) const
State state ( ) const
SessionError error ( ) const
QString errorString ( ) const
QVariant sessionProperty ( const QString key) const
void setSessionProperty ( const QString key,
const QVariant value 
)
quint64 bytesWritten ( ) const
quint64 bytesReceived ( ) const
quint64 activeTime ( ) const
bool waitForOpened ( int  msecs = 30000)
void open ( )
slot
void close ( )
slot
void stop ( )
slot
void migrate ( )
slot
void ignore ( )
slot
void accept ( )
slot
void reject ( )
slot
void stateChanged ( QNetworkSession::State  )
signal
void opened ( )
signal
void closed ( )
signal
void error ( QNetworkSession::SessionError  )
signal
void preferredConfigurationChanged ( const QNetworkConfiguration config,
bool  isSeamless 
)
signal
void newConfigurationActivated ( )
signal
virtual void connectNotify ( const char *  signal)
protectedvirtual

Reimplemented from QObject.

virtual void disconnectNotify ( const char *  signal)
protectedvirtual

Reimplemented from QObject.

Friends And Related Function Documentation

friend class QNetworkSessionPrivate
friend

Definition at line 139 of file qnetworksession.h.


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