| telepathy-glib API Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
TpBaseMediaCallContentTpBaseMediaCallContent — base class for TpSvcCallContentInterfaceMedia implementations |
#include <telepathy-glib/telepathy-glib.h>
TpBaseMediaCallContent;
struct TpBaseMediaCallContentClass;
GHashTable * tp_base_media_call_content_get_local_media_description
(TpBaseMediaCallContent *self,
TpHandle contact);
void tp_base_media_call_content_offer_media_description_async
(TpBaseMediaCallContent *self,
TpCallContentMediaDescription *md,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean tp_base_media_call_content_offer_media_description_finish
(TpBaseMediaCallContent *self,
GAsyncResult *result,
GError **error);
TpBaseMediaCallContent implements TpSvcDBusProperties, TpSvcCallContent, TpSvcCallContentInterfaceDTMF and TpSvcCallContentInterfaceMedia.
"current-dtmf-event" guchar : Read "current-dtmf-state" guint : Read "local-media-descriptions" GHashTable_guint+GHashTable_gchararray+GValue__* : Read "media-description-offer" GValueArray_DBusGObjectPath+GHashTable_gchararray+GValue__* : Read "packetization" guint : Read / Write / Construct Only "remote-media-descriptions" GHashTable_guint+GHashTable_gchararray+GValue__* : Read
This base class makes it easier to write TpSvcCallContentInterfaceMedia implementations by implementing its properties and methods.
Subclasses must still implement TpBaseCallContent's virtual methods.
typedef struct _TpBaseMediaCallContent TpBaseMediaCallContent;
A base class for media call content implementations
Since 0.17.5
struct TpBaseMediaCallContentClass {
};
The class structure for TpBaseMediaCallContent
Since 0.17.5
GHashTable * tp_base_media_call_content_get_local_media_description (TpBaseMediaCallContent *self,TpHandle contact);
Get the media description used to stream to contact.
|
a TpBaseMediaCallContent |
|
the contact |
Returns : |
borrowed GHashTable mapping iface propery string to GValue. |
Since 0.17.5
void tp_base_media_call_content_offer_media_description_async (TpBaseMediaCallContent *self,TpCallContentMediaDescription *md,GAsyncReadyCallback callback,gpointer user_data);
Offer md for media description negociation.
|
a TpBaseMediaCallContent |
|
a TpCallContentMediaDescription |
|
a callback to call when the operation finishes |
|
data to pass to callback
|
Since 0.17.5
gboolean tp_base_media_call_content_offer_media_description_finish (TpBaseMediaCallContent *self,GAsyncResult *result,GError **error);
Finishes tp_base_media_call_content_offer_media_description_async().
|
a TpBaseMediaCallContent |
|
a GAsyncResult |
|
a GError to fill |
Since 0.17.5
"current-dtmf-event" property"current-dtmf-event" guchar : Read
The currently being played TpDTMFEvent if any
Allowed values: <= 15
Default value: 0
Since 0.17.5
"current-dtmf-state" property"current-dtmf-state" guint : Read
The TpSendingState of the dtmf events
Allowed values: <= 3
Default value: 0
Since 0.17.5
"local-media-descriptions" property "local-media-descriptions" GHashTable_guint+GHashTable_gchararray+GValue__* : Read
GHashTable{contact TpHandle, properties GHashTable} The map of contacts to local media descriptions.
Since 0.17.5
"media-description-offer" property "media-description-offer" GValueArray_DBusGObjectPath+GHashTable_gchararray+GValue__* : Read
GValueArray{object-path, contact TpHandle, properties GHashTable}. The current media description offer if any.
Since 0.17.5
"packetization" property"packetization" guint : Read / Write / Construct Only
The TpCallContentPacketizationType of this content.
Default value: 0
Since 0.17.5
"remote-media-descriptions" property "remote-media-descriptions" GHashTable_guint+GHashTable_gchararray+GValue__* : Read
GHashTable{contact TpHandle, properties GHashTable} The map of contacts to remote media descriptions.
Since 0.17.5
"local-media-description-updated" signalvoid user_function (TpBaseMediaCallContent *self,
guint contact,
GHashTable *properties,
gpointer user_data) : Run Last
The ::local-media-description-changed signal is emitted whenever the local media description changes for a remote contact.
|
the TpCallChannel |
|
the remote contact |
|
the new media description properties asv |
|
user data set when the signal handler was connected. |
Since 0.17.5