Telepathy::Client::StreamedMediaChannel Class Reference
[Channel proxies]

#include <TelepathyQt4/Client/StreamedMediaChannel>

Inheritance diagram for Telepathy::Client::StreamedMediaChannel:

Inheritance graph
[legend]
Collaboration diagram for Telepathy::Client::StreamedMediaChannel:

Collaboration graph
[legend]

List of all members.

Signals

void streamAdded (const Telepathy::Client::MediaStreamPtr &stream)
void streamRemoved (const Telepathy::Client::MediaStreamPtr &stream)
void streamDirectionChanged (const Telepathy::Client::MediaStreamPtr &stream, Telepathy::MediaStreamDirection direction, Telepathy::MediaStreamPendingSend pendingSend)
void streamStateChanged (const Telepathy::Client::MediaStreamPtr &stream, Telepathy::MediaStreamState)
void streamError (const Telepathy::Client::MediaStreamPtr &stream, Telepathy::MediaStreamError errorCode, const QString &errorMessage)

Public Member Functions

 StreamedMediaChannel (Connection *connection, const QString &objectPath, const QVariantMap &immutableProperties, QObject *parent=0)
 ~StreamedMediaChannel ()
MediaStreams streams () const
MediaStreams streamsForType (Telepathy::MediaStreamType type) const
bool awaitingLocalAnswer () const
bool awaitingRemoteAnswer () const
PendingOperationacceptCall ()
PendingOperationremoveStream (const MediaStreamPtr &stream)
PendingOperationremoveStreams (const MediaStreams &streams)
PendingMediaStreamsrequestStream (const ContactPtr &contact, Telepathy::MediaStreamType type)
PendingMediaStreamsrequestStreams (const ContactPtr &contact, QList< Telepathy::MediaStreamType > types)

Static Public Attributes

static const Feature FeatureStreams = Feature(StreamedMediaChannel::staticMetaObject.className(), 0)

Friends

class PendingMediaStreams
struct Private


Detailed Description

High-level proxy object for accessing remote Channel objects of the StreamedMedia channel type.

This subclass of Channel will eventually provide a high-level API for the StreamedMedia interface. Until then, it's just a Channel.


Constructor & Destructor Documentation

Telepathy::Client::StreamedMediaChannel::StreamedMediaChannel ( Connection connection,
const QString &  objectPath,
const QVariantMap &  immutableProperties,
QObject *  parent = 0 
)

Creates a StreamedMediaChannel associated with the given object on the same service as the given connection.

Parameters:
connection Connection owning this StreamedMediaChannel, and specifying the service.
objectPath Path to the object on the service.
immutableProperties The immutable properties of the channel, as signalled by NewChannels or returned by CreateChannel or EnsureChannel
parent Passed to the parent class constructor.

Telepathy::Client::StreamedMediaChannel::~StreamedMediaChannel (  ) 

Class destructor.


Member Function Documentation

PendingOperation * Telepathy::Client::StreamedMediaChannel::acceptCall (  ) 

bool Telepathy::Client::StreamedMediaChannel::awaitingLocalAnswer (  )  const

bool Telepathy::Client::StreamedMediaChannel::awaitingRemoteAnswer (  )  const

PendingOperation * Telepathy::Client::StreamedMediaChannel::removeStream ( const MediaStreamPtr stream  ) 

Remove the specified stream from this channel.

Parameters:
stream Stream to remove.
Returns:
A PendingOperation which will emit PendingOperation::finished when the call has finished.

References Telepathy::Client::Channel::streamedMediaInterface().

PendingOperation * Telepathy::Client::StreamedMediaChannel::removeStreams ( const MediaStreams streams  ) 

Remove the specified streams from this channel.

Parameters:
streams List of streams to remove.
Returns:
A PendingOperation which will emit PendingOperation::finished when the call has finished.

References Telepathy::Client::Channel::streamedMediaInterface().

PendingMediaStreams * Telepathy::Client::StreamedMediaChannel::requestStream ( const ContactPtr contact,
Telepathy::MediaStreamType  type 
)

References PendingMediaStreams.

PendingMediaStreams * Telepathy::Client::StreamedMediaChannel::requestStreams ( const ContactPtr contact,
QList< Telepathy::MediaStreamType types 
)

References PendingMediaStreams.

void Telepathy::Client::StreamedMediaChannel::streamAdded ( const Telepathy::Client::MediaStreamPtr stream  )  [signal]

void Telepathy::Client::StreamedMediaChannel::streamDirectionChanged ( const Telepathy::Client::MediaStreamPtr stream,
Telepathy::MediaStreamDirection  direction,
Telepathy::MediaStreamPendingSend  pendingSend 
) [signal]

void Telepathy::Client::StreamedMediaChannel::streamError ( const Telepathy::Client::MediaStreamPtr stream,
Telepathy::MediaStreamError  errorCode,
const QString &  errorMessage 
) [signal]

void Telepathy::Client::StreamedMediaChannel::streamRemoved ( const Telepathy::Client::MediaStreamPtr stream  )  [signal]

MediaStreams Telepathy::Client::StreamedMediaChannel::streams (  )  const

Return a list of streams in this channel. This list is empty unless the FeatureStreams Feature has been enabled.

Streams are added to the list when they are received; the streamAdded signal is emitted.

Returns:
The streams in this channel.

References FeatureStreams, Telepathy::Client::ReadyObject::isReady(), and Telepathy::warning().

Referenced by streamsForType().

MediaStreams Telepathy::Client::StreamedMediaChannel::streamsForType ( Telepathy::MediaStreamType  type  )  const

void Telepathy::Client::StreamedMediaChannel::streamStateChanged ( const Telepathy::Client::MediaStreamPtr stream,
Telepathy::MediaStreamState   
) [signal]


Friends And Related Function Documentation

friend class PendingMediaStreams [friend]

Referenced by requestStream(), and requestStreams().

friend struct Private [friend]

Reimplemented from Telepathy::Client::Channel.


Member Data Documentation

const Feature Telepathy::Client::StreamedMediaChannel::FeatureStreams = Feature(StreamedMediaChannel::staticMetaObject.className(), 0) [static]

Referenced by streams(), and streamsForType().


Generated on Mon Mar 23 18:02:37 2009 for TelepathyQt4-0.1.2 by  doxygen 1.5.8