Home · All Classes · All Namespaces · Modules · Functions · Files
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Tp::Client::CallContentInterfaceMediaInterface Class Reference

#include <TelepathyQt/CallContent>

Inheritance diagram for Tp::Client::CallContentInterfaceMediaInterface:
Inheritance graph
[legend]

Public Slots

QDBusPendingReply UpdateLocalMediaDescription (const QVariantMap &mediaDescription, int timeout=-1)
 
QDBusPendingReply AcknowledgeDTMFChange (uchar event, uint state, int timeout=-1)
 
QDBusPendingReply Fail (const Tp::CallStateReason &reason, int timeout=-1)
 

Signals

void NewMediaDescriptionOffer (const QDBusObjectPath &mediaDescription, const QVariantMap &properties)
 
void MediaDescriptionOfferDone ()
 
void LocalMediaDescriptionChanged (const QVariantMap &updatedMediaDescription)
 
void RemoteMediaDescriptionsChanged (const Tp::ContactMediaDescriptionPropertiesMap &updatedMediaDescriptions)
 
void MediaDescriptionsRemoved (const Tp::UIntList &removedMediaDescriptions)
 
void DTMFChangeRequested (uchar event, uint state)
 
- Signals inherited from Tp::AbstractInterface
void propertiesChanged (const QVariantMap &changedProperties, const QStringList &invalidatedProperties)
 

Public Member Functions

 CallContentInterfaceMediaInterface (const QString &busName, const QString &objectPath, QObject *parent=0)
 
 CallContentInterfaceMediaInterface (const QDBusConnection &connection, const QString &busName, const QString &objectPath, QObject *parent=0)
 
 CallContentInterfaceMediaInterface (Tp::DBusProxy *proxy)
 
 CallContentInterfaceMediaInterface (const Tp::Client::CallContentInterface &mainInterface)
 
 CallContentInterfaceMediaInterface (const Tp::Client::CallContentInterface &mainInterface, QObject *parent)
 
Tp::PendingVariantrequestPropertyRemoteMediaDescriptions () const
 
Tp::PendingVariantrequestPropertyLocalMediaDescriptions () const
 
Tp::PendingVariantrequestPropertyMediaDescriptionOffer () const
 
Tp::PendingVariantrequestPropertyPacketization () const
 
Tp::PendingVariantrequestPropertyCurrentDTMFEvent () const
 
Tp::PendingVariantrequestPropertyCurrentDTMFState () const
 
Tp::PendingVariantMaprequestAllProperties () const
 
- Public Member Functions inherited from Tp::AbstractInterface
virtual ~AbstractInterface ()
 
bool isValid () const
 
QString invalidationReason () const
 
QString invalidationMessage () const
 
void setMonitorProperties (bool monitorProperties)
 
bool isMonitoringProperties () const
 
- Public Member Functions inherited from QDBusAbstractInterface
virtual  ~QDBusAbstractInterface ()
 
bool isValid () const
 
QDBusConnection connection () const
 
QString service () const
 
QString path () const
 
QString interface () const
 
QDBusError lastError () const
 
void setTimeout (int timeout)
 
int timeout () const
 
QDBusMessage call (const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8)
 
QDBusMessage call (QDBus::CallMode mode, const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8)
 
QDBusMessage callWithArgumentList (QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
 
bool callWithCallback (const QString &method, const QList< QVariant > &args, QObject *receiver, const char *returnMethod, const char *errorMethod)
 
bool callWithCallback (const QString &method, const QList< QVariant > &args, QObject *receiver, const char *slot)
 
QDBusPendingCall asyncCall (const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8)
 
QDBusPendingCall asyncCallWithArgumentList (const QString &method, const QList< QVariant > &args)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
virtual  ~QObject ()
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
virtual const QMetaObjectmetaObject () const
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool block)
 
QThreadthread () const
 
void moveToThread (QThread *targetThread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void destroyed (QObject *obj)
 
QObjectparent () const
 
bool inherits (const char *className) const
 
void deleteLater ()
 
 QObject (QObject *parent, const char *name)
 
void insertChild (QObject *object)
 
void removeChild (QObject *object)
 
bool isA (const char *className) const
 
const char * className () const
 
const char * name () const
 
const char * name (const char *defaultName) const
 
void setName (const char *name)
 

Static Public Member Functions

static QLatin1String staticInterfaceName ()
 
- Static Public Member Functions inherited from QObject
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 

Protected Member Functions

virtual void invalidate (Tp::DBusProxy *, const QString &, const QString &)
 
- Protected Member Functions inherited from Tp::AbstractInterface
 AbstractInterface (DBusProxy *proxy, const QLatin1String &interface)
 
 AbstractInterface (const QString &busName, const QString &path, const QLatin1String &interface, const QDBusConnection &connection, QObject *parent)
 
PendingVariantinternalRequestProperty (const QString &name) const
 
PendingOperationinternalSetProperty (const QString &name, const QVariant &newValue)
 
PendingVariantMapinternalRequestAllProperties () const
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 

Additional Inherited Members

- Protected Slots inherited from Tp::AbstractInterface
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Call1.Content.Interface.Media".

Constructor & Destructor Documentation

Tp::Client::CallContentInterfaceMediaInterface::CallContentInterfaceMediaInterface ( const QString busName,
const QString objectPath,
QObject parent = 0 
)

Creates a CallContentInterfaceMediaInterface associated with the given object on the session bus.

Parameters
busNameName of the service the object is on.
objectPathPath to the object on the service.
parentPassed to the parent class constructor.
Tp::Client::CallContentInterfaceMediaInterface::CallContentInterfaceMediaInterface ( const QDBusConnection connection,
const QString busName,
const QString objectPath,
QObject parent = 0 
)

Creates a CallContentInterfaceMediaInterface associated with the given object on the given bus.

Parameters
connectionThe bus via which the object can be reached.
busNameName of the service the object is on.
objectPathPath to the object on the service.
parentPassed to the parent class constructor.
Tp::Client::CallContentInterfaceMediaInterface::CallContentInterfaceMediaInterface ( Tp::DBusProxy proxy)

Creates a CallContentInterfaceMediaInterface associated with the same object as the given proxy.

Parameters
proxyThe proxy to use. It will also be the QObject::parent() for this object.
Tp::Client::CallContentInterfaceMediaInterface::CallContentInterfaceMediaInterface ( const Tp::Client::CallContentInterface mainInterface)
explicit

Creates a CallContentInterfaceMediaInterface associated with the same object as the given proxy. Additionally, the created proxy will have the same parent as the given proxy.

Parameters
mainInterfaceThe proxy to use.
Tp::Client::CallContentInterfaceMediaInterface::CallContentInterfaceMediaInterface ( const Tp::Client::CallContentInterface mainInterface,
QObject parent 
)

Creates a CallContentInterfaceMediaInterface associated with the same object as the given proxy. However, a different parent object can be specified.

Parameters
mainInterfaceThe proxy to use.
parentPassed to the parent class constructor.

Member Function Documentation

static QLatin1String Tp::Client::CallContentInterfaceMediaInterface::staticInterfaceName ( )
inlinestatic

Returns the name of the interface "org.freedesktop.Telepathy.Call1.Content.Interface.Media", which this class represents.

Returns
The D-Bus interface name.
Tp::PendingVariant* Tp::Client::CallContentInterfaceMediaInterface::requestPropertyRemoteMediaDescriptions ( ) const
inline

Asynchronous getter for the remote object property RemoteMediaDescriptions of type Tp::ContactMediaDescriptionPropertiesMap.

A map from contact handles to descriptions supported by that contact. Keys of this map will appear in at most one RemoteMembers. See RemoteContact for more details on how to map between MediaDescriptions and Streams.

Returns
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariant* Tp::Client::CallContentInterfaceMediaInterface::requestPropertyLocalMediaDescriptions ( ) const
inline

Asynchronous getter for the remote object property LocalMediaDescriptions of type Tp::ContactMediaDescriptionPropertiesMap.

A map from contact handles to the descriptions the local side responsed with.

Returns
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariant* Tp::Client::CallContentInterfaceMediaInterface::requestPropertyMediaDescriptionOffer ( ) const
inline

Asynchronous getter for the remote object property MediaDescriptionOffer of type Tp::MediaDescriptionOffer.

The object path to the current CallContentMediaDescriptionInterface object, its CallContentMediaDescriptionInterface::RemoteContact and a mapping of the MediaDescriptions properties. If the object path is "/" then there isn't an outstanding content description, and the mapping MUST be empty.

Having all CallContentMediaDescriptionInterface properties here saves a D-Bus round-trip - it shouldn't be necessary to get these properties from the Content MediaDescription object, in practice.

Change notification is via the NewMediaDescriptionOffer() and MediaDescriptionOfferDone() signals.

Returns
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariant* Tp::Client::CallContentInterfaceMediaInterface::requestPropertyPacketization ( ) const
inline

Asynchronous getter for the remote object property Packetization of type uint.

The packetization method in use for this content.

Returns
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariant* Tp::Client::CallContentInterfaceMediaInterface::requestPropertyCurrentDTMFEvent ( ) const
inline

Asynchronous getter for the remote object property CurrentDTMFEvent of type uchar.

The currently requested DTMF event (for state-recoverability of DTMFChangeRequested). Should be ignored if CurrentDTMFState is None.

Returns
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariant* Tp::Client::CallContentInterfaceMediaInterface::requestPropertyCurrentDTMFState ( ) const
inline

Asynchronous getter for the remote object property CurrentDTMFState of type uint.

The current DTMF state (for state-recoverability of DTMFChangeRequested).

Returns
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariantMap* Tp::Client::CallContentInterfaceMediaInterface::requestAllProperties ( ) const
inline

Request all of the DBus properties on the interface.

Returns
A pending variant map which will emit finished when the properties have been retrieved.
QDBusPendingReply Tp::Client::CallContentInterfaceMediaInterface::UpdateLocalMediaDescription ( const QVariantMap &  mediaDescription,
int  timeout = -1 
)
inlineslot

Begins a call to the D-Bus method UpdateLocalMediaDescription on the remote object.

Update the local codec mapping and other interfaces of the MediaDescription. This method should only be used during an existing call to update the local media description. This may trigger a re-negotiation which may result in new new MediaDescriptionOffers if the "FurtherNegotiationRequired" property is TRUE. Otherwise, only parameters which strictly describe the media being sent can be changed.

Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.

Parameters
mediaDescription
The updated media description that the local side wants to use.
timeoutThe timeout in milliseconds.
QDBusPendingReply Tp::Client::CallContentInterfaceMediaInterface::AcknowledgeDTMFChange ( uchar  event,
uint  state,
int  timeout = -1 
)
inlineslot

Begins a call to the D-Bus method AcknowledgeDTMFChange on the remote object.

Called by the streaming implementation in response to DTMFChangeRequested to confirm that it has started or stopped sending the event in question.

Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.

Parameters
event
The event referred to in the corresponding DTMFChangeRequested 
signal.
state
Either Sending or None.
timeoutThe timeout in milliseconds.
QDBusPendingReply Tp::Client::CallContentInterfaceMediaInterface::Fail ( const Tp::CallStateReason reason,
int  timeout = -1 
)
inlineslot

Begins a call to the D-Bus method Fail on the remote object.

Signal an unrecoverable error for this content, and remove it.

Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.

Parameters
reason
A reason struct describing the error.
timeoutThe timeout in milliseconds.
void Tp::Client::CallContentInterfaceMediaInterface::NewMediaDescriptionOffer ( const QDBusObjectPath mediaDescription,
const QVariantMap &  properties 
)
signal

Represents the signal NewMediaDescriptionOffer on the remote object.

Emitted when a new CallContentMediaDescriptionInterface appears. The streaming >implementation MUST respond by calling the CallContentMediaDescriptionInterface::Accept() or CallContentMediaDescriptionInterface::Reject() method on the description object appeared.

Emission of this signal indicates that the MediaDescriptionOffer property has changed to (Description, Contact, MediaDescriptionProperties).

When the MediaDescriptionOffer has been dealt with then CallContentInterfaceMediaInterface::MediaDescriptionOfferDone() must be emitted before CallContentInterfaceMediaInterface::NewMediaDescriptionOffer() is emitted again.

Parameters
mediaDescription
The object path of the new media description. This replaces any 
previous media description.
properties
The immutable properties of the remote media description. Having 
all the MediaDescription properties here saves a D-Bus round-trip - 
it shouldn&apos;t be necessary to get the properties from the 
MediaDescription object, in practice.
void Tp::Client::CallContentInterfaceMediaInterface::MediaDescriptionOfferDone ( )
signal

Represents the signal MediaDescriptionOfferDone on the remote object.

Emitted when a CallContentMediaDescriptionInterface has been handled.

Emission of this signal indicates that the MediaDescriptionOffer property has changed to ("/", 0, {}).

void Tp::Client::CallContentInterfaceMediaInterface::LocalMediaDescriptionChanged ( const QVariantMap &  updatedMediaDescription)
signal

Represents the signal LocalMediaDescriptionChanged on the remote object.

Change notification for CallContentInterfaceMediaInterface::LocalMediaDescriptions

Parameters
updatedMediaDescription

The local content description that was updated

void Tp::Client::CallContentInterfaceMediaInterface::RemoteMediaDescriptionsChanged ( const Tp::ContactMediaDescriptionPropertiesMap updatedMediaDescriptions)
signal

Represents the signal RemoteMediaDescriptionsChanged on the remote object.

Change notification for CallContentInterfaceMediaInterface::RemoteMediaDescriptions

Parameters
updatedMediaDescriptions

The remote content descriptions that were updated

void Tp::Client::CallContentInterfaceMediaInterface::MediaDescriptionsRemoved ( const Tp::UIntList removedMediaDescriptions)
signal

Represents the signal MediaDescriptionsRemoved on the remote object.

Removal notification for CallContentInterfaceMediaInterface::RemoteMediaDescriptions and CallContentInterfaceMediaInterface::LocalMediaDescriptions

Parameters
removedMediaDescriptions

The local and remote content descriptions that are no longer part of this content

void Tp::Client::CallContentInterfaceMediaInterface::DTMFChangeRequested ( uchar  event,
uint  state 
)
signal

Represents the signal DTMFChangeRequested on the remote object.

Used by the CM to relay instructions from Channel.Interface.DTMF to the streaming implementation. If any contact in this call supports the telephone-event codec in their MediaDescription, this event should be sent as outlined in RFC 4733. Otherwise, it should be sent as an audible tone.

Parameters
event
The event to send (or stop sending).
state
Either Pending_Send or Pending_Stop_Sending.
void Tp::Client::CallContentInterfaceMediaInterface::invalidate ( Tp::DBusProxy proxy,
const QString error,
const QString message 
)
protectedvirtual

Reimplemented from Tp::AbstractInterface.


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.6.1