Home · All Classes · All Namespaces · Modules · Functions · Files |
The TubeChannel class is a base class for all tube types. More...
#include <TelepathyQt4/TubeChannel>
Inherits Tp::Channel.
Inherited by Tp::StreamTubeChannel.
The TubeChannel class is a base class for all tube types.
A tube is a mechanism for arbitrary data transfer between two or more IM users, used to allow applications on the users' systems to communicate without having to establish network connections themselves.
Note that TubeChannel should never be instantiated directly, instead one of its subclasses (e.g. IncomingStreamTubeChannel or OutgoingStreamTubeChannel) should be used.
See Asynchronous Object Model, Shared Pointer Usage
Tp::TubeChannel::~TubeChannel | ( | ) | [virtual] |
Class destructor.
Tp::TubeChannel::TubeChannel | ( | const ConnectionPtr & | connection, | |
const QString & | objectPath, | |||
const QVariantMap & | immutableProperties, | |||
const Feature & | coreFeature = TubeChannel::FeatureCore |
|||
) | [protected] |
Construct a new TubeChannel object.
connection | Connection owning this channel, and specifying the service. | |
objectPath | The channel object path. | |
immutableProperties | The channel immutable properties. | |
coreFeature | The core feature of the channel type, if any. The corresponding introspectable should depend on TubeChannel::FeatureCore. |
TubeChannelPtr Tp::TubeChannel::create | ( | const ConnectionPtr & | connection, | |
const QString & | objectPath, | |||
const QVariantMap & | immutableProperties | |||
) | [static] |
Create a new TubeChannel channel.
connection | Connection owning this channel, and specifying the service. | |
objectPath | The channel object path. | |
immutableProperties | The channel immutable properties. |
Reimplemented from Tp::Channel.
Reimplemented in Tp::IncomingStreamTubeChannel, Tp::OutgoingStreamTubeChannel, and Tp::StreamTubeChannel.
TubeChannelState Tp::TubeChannel::state | ( | ) | const |
Return the state of this tube.
Change notification is via the stateChanged() signal.
This method requires TubeChannel::FeatureCore to be ready.
TubeChannelState Tp::TubeChannel::tubeState | ( | ) | const |
QVariantMap Tp::TubeChannel::parameters | ( | ) | const |
Return the parameters associated with this tube, if any.
The parameters are populated when an outgoing tube is offered, but they are most useful in the receiving end, where the parameters passed to the offer can be extracted for the tube's entire lifetime to bootstrap legacy protocols. All parameters are passed unchanged.
This method requires TubeChannel::FeatureCore to be ready.
void Tp::TubeChannel::stateChanged | ( | Tp::TubeChannelState | state | ) | [signal] |
void Tp::TubeChannel::tubeStateChanged | ( | Tp::TubeChannelState | state | ) | [signal] |
void Tp::TubeChannel::setParameters | ( | const QVariantMap & | parameters | ) | [protected] |
void Tp::TubeChannel::connectNotify | ( | const char * | signalName | ) | [protected] |
const Feature Tp::TubeChannel::FeatureCore [static] |
Feature representing the core that needs to become ready to make the TubeChannel object usable.
Note that this feature must be enabled in order to use most TubeChannel methods. See specific methods documentation for more details.
Reimplemented from Tp::Channel.
Reimplemented in Tp::IncomingStreamTubeChannel, Tp::OutgoingStreamTubeChannel, and Tp::StreamTubeChannel.
const Feature Tp::TubeChannel::FeatureTube [static] |
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation |
Telepathy-Qt4 0.6.5
|