Home · All Classes · All Namespaces · Modules · Functions · Files
Public Member Functions

Tp::PendingStreamTubeConnection Class Reference
[Channel proxies]

The PendingStreamTubeConnection class represents an asynchronous operation for accepting a stream tube. More...

#include <TelepathyQt4/PendingStreamTubeConnection>

Inherits Tp::PendingOperation.

List of all members.

Public Member Functions


Detailed Description

The PendingStreamTubeConnection class represents an asynchronous operation for accepting a stream tube.

When the operation is finished, you can access the resulting device through device(). Otherwise, you can access the bare address through either tcpAddress() or localAddress().


Constructor & Destructor Documentation

Tp::PendingStreamTubeConnection::~PendingStreamTubeConnection (  )  [virtual]

Class destructor.


Member Function Documentation

SocketAddressType Tp::PendingStreamTubeConnection::addressType (  )  const

This method returns the address type of the opened socket.

Calling this method when the operation has not been completed or has failed, will cause it to return an unmeaningful value.

Returns:
The type of socket this PendingStreamTubeConnection has created
Note:
This function will return a valid value only after the operation has been finished successfully.
See also:
localAddress
tcpAddress
QPair< QHostAddress, quint16 > Tp::PendingStreamTubeConnection::ipAddress (  )  const

This method returns the IP address of the opened socket.

Calling this method when the operation has not been completed or has failed, will cause it to return an unmeaningful value. The same will happen if the socket which has been opened has a different type from SocketAddressTypeIpv4 or SocketAddressTypeIPv6. Use localAddress if that is the case.

Returns:
The IP address and port obtained from this PendingStreamTubeConnection as a QHostAddress, if the connection has been estabilished through a SocketAddressTypeIpv4 or a SocketAddressTypeIPv6.
Note:
This function will return a valid value only after the operation has been finished successfully.
See also:
addressType
QString Tp::PendingStreamTubeConnection::localAddress (  )  const

This method returns the local address of the opened socket.

Calling this method when the operation has not been completed or has failed, will cause it to return an unmeaningful value. The same will happen if the socket which has been opened has a different type from SocketAddressTypeUnix or SocketAddressTypeAbstractUnix. Use ipAddress if that is the case.

Returns:
The local address obtained from this PendingStreamTubeConnection as a QString, if the connection has been estabilished through a SocketAddressTypeUnix or a SocketAddressTypeAbstractUnix.
Note:
This function will return a valid value only after the operation has been finished successfully.
See also:
addressType


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.6.1