Home · All Classes · All Namespaces · Modules · Functions · Files |
The StreamedMediaChannel class represents a Telepathy channel of type StreamedMedia. More...
#include <TelepathyQt4/StreamedMediaChannel>
Inherits Tp::Channel.
The StreamedMediaChannel class represents a Telepathy channel of type StreamedMedia.
Tp::StreamedMediaChannel::~StreamedMediaChannel | ( | ) | [virtual] |
Class destructor.
Tp::StreamedMediaChannel::StreamedMediaChannel | ( | const ConnectionPtr & | connection, |
const QString & | objectPath, | ||
const QVariantMap & | immutableProperties, | ||
const Feature & | coreFeature = StreamedMediaChannel::FeatureCore |
||
) | [protected] |
Construct a new StreamedMediaChannel associated with the given object on the same service as the given connection.
connection | Connection owning this channel, and specifying the service. |
objectPath | The object path of this channel. |
immutableProperties | The immutable properties of this channel. |
coreFeature | The core feature of the channel type, if any. The corresponding introspectable should depend on StreamedMediaChannel::FeatureCore. |
StreamedMediaChannelPtr Tp::StreamedMediaChannel::create | ( | const ConnectionPtr & | connection, |
const QString & | objectPath, | ||
const QVariantMap & | immutableProperties | ||
) | [static] |
Create a new StreamedMediaChannel object.
connection | Connection owning this channel, and specifying the service. |
objectPath | The object path of this channel. |
immutableProperties | The immutable properties of this channel. |
Reimplemented from Tp::Channel.
bool Tp::StreamedMediaChannel::awaitingLocalAnswer | ( | ) | const |
Return whether this channel is awaiting local answer.
true
if awaiting local answer, false
otherwise. bool Tp::StreamedMediaChannel::awaitingRemoteAnswer | ( | ) | const |
Return whether this channel is awaiting remote answer.
true
if awaiting remote answer, false
otherwise. PendingOperation * Tp::StreamedMediaChannel::acceptCall | ( | ) |
Accept an incoming call.
PendingOperation * Tp::StreamedMediaChannel::hangupCall | ( | ) |
Request that the call is ended.
StreamedMediaStreams Tp::StreamedMediaChannel::streams | ( | ) | const |
Return a list of media streams in this channel.
This methods requires StreamedMediaChannel::FeatureStreams to be enabled.
StreamedMediaStreams Tp::StreamedMediaChannel::streamsForType | ( | MediaStreamType | type | ) | const |
Return a list of media streams in this channel for the given type type.
This methods requires StreamedMediaChannel::FeatureStreams to be enabled.
type | The interested type. |
PendingStreamedMediaStreams * Tp::StreamedMediaChannel::requestStream | ( | const ContactPtr & | contact, |
MediaStreamType | type | ||
) |
Request that media streams be established to exchange the given type type of media with the given contact contact.
This methods requires StreamedMediaChannel::FeatureStreams to be enabled.
PendingStreamedMediaStreams * Tp::StreamedMediaChannel::requestStreams | ( | const ContactPtr & | contact, |
QList< MediaStreamType > | types | ||
) |
Request that media streams be established to exchange the given types types of media with the given contact contact.
This methods requires StreamedMediaChannel::FeatureStreams to be enabled.
PendingOperation * Tp::StreamedMediaChannel::removeStream | ( | const StreamedMediaStreamPtr & | stream | ) |
Remove the specified media stream from this channel.
This methods requires StreamedMediaChannel::FeatureStreams to be enabled.
stream | Media stream to remove. |
PendingOperation * Tp::StreamedMediaChannel::removeStreams | ( | const StreamedMediaStreams & | streams | ) |
Remove the specified media streams from this channel.
This methods requires StreamedMediaChannel::FeatureStreams to be enabled.
streams | List of media streams to remove. |
bool Tp::StreamedMediaChannel::handlerStreamingRequired | ( | ) | const |
Check whether media streaming by the handler is required for this channel.
For channels with the MediaSignalling interface, the main handler of the channel is responsible for doing the actual streaming, for instance by calling createFarsightChannel(channel) from TelepathyQt4-Farsight library and using the telepathy-farsight API on the resulting TfChannel.
true
if required, false
otherwise. LocalHoldState Tp::StreamedMediaChannel::localHoldState | ( | ) | const |
Return whether the local user has placed this channel on hold.
This method requires StreamedMediaChannel::FeatureHoldState to be enabled.
LocalHoldStateReason Tp::StreamedMediaChannel::localHoldStateReason | ( | ) | const |
Return the reason why localHoldState() changed to its current value.
This method requires StreamedMediaChannel::FeatureLocalHoldState to be enabled.
PendingOperation * Tp::StreamedMediaChannel::requestHold | ( | bool | hold | ) |
Request that the channel be put on hold (be instructed not to send any media streams to you) or be taken off hold.
If the connection manager can immediately tell that the requested state change could not possibly succeed, the resulting PendingOperation will fail with error code TELEPATHY_ERROR_NOT_AVAILABLE. If the requested state is the same as the current state, the resulting PendingOperation will finish successfully.
Otherwise, the channel's local hold state will change to Tp::LocalHoldStatePendingHold or Tp::LocalHoldStatePendingUnhold (as appropriate), then the resulting PendingOperation will finish successfully.
The eventual success or failure of the request is indicated by a subsequent localHoldStateChanged() signal, changing the local hold state to Tp::LocalHoldStateHeld or Tp::LocalHoldStateUnheld.
If the channel has multiple streams, and the connection manager succeeds in changing the hold state of one stream but fails to change the hold state of another, it will attempt to revert all streams to their previous hold states.
If the channel does not support the TELEPATHY_INTERFACE_CHANNEL_INTERFACE_HOLD interface, the PendingOperation will fail with error code TELEPATHY_ERROR_NOT_IMPLEMENTED.
hold | A boolean indicating whether or not the channel should be on hold |
void Tp::StreamedMediaChannel::streamAdded | ( | const Tp::StreamedMediaStreamPtr & | stream | ) | [signal] |
This signal is emitted when a media stream is added to this channel.
stream | The media stream that was added. |
void Tp::StreamedMediaChannel::streamRemoved | ( | const Tp::StreamedMediaStreamPtr & | stream | ) | [signal] |
This signal is emitted when a media stream is removed from this channel.
stream | The media stream that was removed. |
void Tp::StreamedMediaChannel::streamDirectionChanged | ( | const Tp::StreamedMediaStreamPtr & | stream, |
Tp::MediaStreamDirection | direction, | ||
Tp::MediaStreamPendingSend | pendingSend | ||
) | [signal] |
This signal is emitted when a media stream direction changes.
stream | The media stream which the direction changed. |
direction | The new direction of the stream that changed. |
pendingSend | the new pending send flags of the stream that changed. |
void Tp::StreamedMediaChannel::streamStateChanged | ( | const Tp::StreamedMediaStreamPtr & | stream, |
Tp::MediaStreamState | state | ||
) | [signal] |
This signal is emitted when a media stream state changes.
stream | The media stream which the state changed. |
state | The new state of the stream that changed. |
void Tp::StreamedMediaChannel::streamError | ( | const Tp::StreamedMediaStreamPtr & | stream, |
Tp::MediaStreamError | errorCode, | ||
const QString & | errorMessage | ||
) | [signal] |
This signal is emitted when an error occurs on a media stream.
stream | The media stream which the error occurred. |
errorCode | The error code. |
errorMessage | The error message. |
void Tp::StreamedMediaChannel::localHoldStateChanged | ( | Tp::LocalHoldState | state, |
Tp::LocalHoldStateReason | reason | ||
) | [signal] |
This signal is emitted when the local hold state of this channel changes.
state | The new local hold state of this channel. |
reason | The reason why the change occurred. |
const Feature Tp::StreamedMediaChannel::FeatureCore [static] |
Placeholder for "core functionality" of a StreamedMediaChannel which is currently considered to be just Channel::FeatureCore.
Reimplemented from Tp::Channel.
const Feature Tp::StreamedMediaChannel::FeatureStreams [static] |
Feature used in order to access media stream specific methods.
See media stream specific methods' documentation for more details.
const Feature Tp::StreamedMediaChannel::FeatureLocalHoldState [static] |
Feature used in order to access local hold state info.
See local hold state specific methods' documentation for more details.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt4 0.7.1 |