QNetworkSession

#include <QtNetwork/QNetworkSession>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QNetworkSession


Overview

Public Functions Index

QNetworkSession (const QNetworkConfiguration &connConfig, QObject *parent=0)
virtual ~QNetworkSession ()
quint64activeTime () const
quint64bytesReceived () const
quint64bytesWritten () const
QNetworkConfigurationconfiguration () const
SessionErrorerror () const
QStringerrorString () const
QNetworkInterfaceinterface () const
boolisOpen () const
QVariantsessionProperty (const QString &key) const
voidsetSessionProperty (const QString &key, const QVariant &value)
Statestate () const
boolwaitForOpened (int msecs=30000)

Protected Functions Index

virtual voidconnectNotify (const char *signal)
virtual voiddisconnectNotify (const char *signal)

Public Slots Index

voidaccept ()
voidclose ()
voidignore ()
voidmigrate ()
voidopen ()
voidreject ()
voidstop ()

Signals Index

voidclosed ()
voiderror (QNetworkSession::SessionError)
voidnewConfigurationActivated ()
voidopened ()
voidpreferredConfigurationChanged (const QNetworkConfiguration &config, bool isSeamless)
voidstateChanged (QNetworkSession::State)

Public Types

SessionError

UnknownSessionError 0
SessionAbortedError
RoamingError
OperationNotSupportedError
InvalidConfigurationError

State

Invalid 0
NotAvailable
Connecting
Connected
Closing
Disconnected
Roaming

Public Functions

QNetworkSession (

virtual~QNetworkSession ()

Destructor.

quint64 activeTime ()

quint64 bytesReceived ()

quint64 bytesWritten ()

QNetworkConfiguration configuration ()

SessionError error ()

QString errorString ()

QNetworkInterface interface ()

bool isOpen ()

QVariant sessionProperty (

void setSessionProperty (

State state ()

bool waitForOpened (
  • intmsecs)

Protected Functions

virtual void connectNotify (
  • const char *signal)

virtual void disconnectNotify (
  • const char *signal)

Public Slots

void accept ()

void close ()

void ignore ()

void migrate ()

void open ()

void reject ()

void stop ()

Signals

void closed ()

void error (
  • QNetworkSession::SessionError)

void newConfigurationActivated ()

void opened ()

void preferredConfigurationChanged (

void stateChanged (
  • QNetworkSession::State)

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus