Home · All Classes · All Namespaces · Modules · Functions · Files |
The PendingStreamTubeConnection class represents an asynchronous operation for accepting a stream tube. More...
#include <TelepathyQt4/PendingStreamTubeConnection>
Inherits Tp::PendingOperation.
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().
Tp::PendingStreamTubeConnection::~PendingStreamTubeConnection | ( | ) | [virtual] |
Class destructor.
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.
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.
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.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt4 0.6.1 |