Home · All Classes · All Namespaces · Modules · Functions · Files |
The PendingStreamTubeConnection class represents an asynchronous operation for accepting an incoming stream tube. More...
#include <TelepathyQt/PendingStreamTubeConnection>
Inherits Tp::PendingOperation.
Public Member Functions | |
virtual | ~PendingStreamTubeConnection () |
SocketAddressType | addressType () const |
QPair< QHostAddress, quint16 > | ipAddress () const |
QString | localAddress () const |
bool | requiresCredentials () const |
uchar | credentialByte () const |
Public Member Functions inherited from Tp::PendingOperation | |
virtual | ~PendingOperation () |
bool | isFinished () const |
bool | isValid () const |
bool | isError () const |
QString | errorName () const |
QString | errorMessage () const |
Additional Inherited Members | |
Signals inherited from Tp::PendingOperation | |
void | finished (Tp::PendingOperation *operation) |
Protected Slots inherited from Tp::PendingOperation | |
void | setFinished () |
void | setFinishedWithError (const QString &name, const QString &message) |
void | setFinishedWithError (const QDBusError &error) |
Protected Member Functions inherited from Tp::PendingOperation | |
PendingOperation (const SharedPtr< RefCounted > &object) | |
SharedPtr< RefCounted > | object () const |
The PendingStreamTubeConnection class represents an asynchronous operation for accepting an incoming stream tube.
|
virtual |
Class destructor.
SocketAddressType Tp::PendingStreamTubeConnection::addressType | ( | ) | const |
Return the type of the opened stream tube socket.
QPair< QHostAddress, quint16 > Tp::PendingStreamTubeConnection::ipAddress | ( | ) | const |
Return the IP address/port combination of the opened stream tube socket.
This method will return a meaningful value only if the incoming stream tube was accepted as a TCP socket.
QString Tp::PendingStreamTubeConnection::localAddress | ( | ) | const |
Return the local address of the opened stream tube socket.
This method will return a meaningful value only if the incoming stream tube was accepted as an Unix socket.
bool Tp::PendingStreamTubeConnection::requiresCredentials | ( | ) | const |
Return whether sending a credential byte once connecting to the socket is required.
Note that if this method returns true
, one should send a SCM_CREDS or SCM_CREDENTIALS and the credentialByte() once connected. If SCM_CREDS or SCM_CREDENTIALS cannot be sent, the credentialByte() should still be sent.
true
if sending credentials is required, false
otherwise. uchar Tp::PendingStreamTubeConnection::credentialByte | ( | ) | const |
Return the credential byte to send once connecting to the socket if requiresCredentials() is true
.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.7 |