telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
TpBaseCallContentTpBaseCallContent — base class for TpSvcCallContent implementations |
#include <telepathy-glib/telepathy-glib.h> TpBaseCallContent; struct TpBaseCallContentClass; GPtrArray * (*TpBaseCallContentGetInterfacesFunc) (TpBaseCallContent *self
); void (*TpBaseCallContentDeinitFunc) (TpBaseCallContent *self
); gboolean (*TpBaseCallContentMultipleTonesFunc) (TpBaseCallContent *self
,const gchar *tones
,GError **error
); gboolean (*TpBaseCallContentStartToneFunc) (TpBaseCallContent *self
,TpDTMFEvent event
,GError **error
); gboolean (*TpBaseCallContentStopToneFunc) (TpBaseCallContent *self
,GError **error
); TpBaseConnection * tp_base_call_content_get_connection (TpBaseCallContent *self
); const gchar * tp_base_call_content_get_object_path (TpBaseCallContent *self
); const gchar * tp_base_call_content_get_name (TpBaseCallContent *self
); TpMediaStreamType tp_base_call_content_get_media_type (TpBaseCallContent *self
); TpCallContentDisposition tp_base_call_content_get_disposition (TpBaseCallContent *self
); GList * tp_base_call_content_get_streams (TpBaseCallContent *self
); void tp_base_call_content_add_stream (TpBaseCallContent *self
,TpBaseCallStream *stream
); void tp_base_call_content_remove_stream (TpBaseCallContent *self
,TpBaseCallStream *stream
,TpHandle actor_handle
,TpCallStateChangeReason reason
,const gchar *dbus_reason
,const gchar *message
);
TpBaseCallContent implements TpSvcDBusProperties, TpSvcCallContent and TpSvcCallContentInterfaceDTMF.
"connection" TpBaseConnection* : Read / Write / Construct Only "creator" guint : Read / Write / Construct Only "currently-sending-tones" gboolean : Read "deferred-tones" gchar* : Read "disposition" guint : Read / Write / Construct Only "interfaces" GStrv : Read "media-type" guint : Read / Write / Construct Only "name" gchar* : Read / Write / Construct Only "object-path" gchar* : Read / Write / Construct Only "streams" GPtrArray_DBusGObjectPath_* : Read
This base class makes it easier to write TpSvcCallContent implementations by implementing its properties, and some of its methods.
Subclasses should fill in TpBaseCallContentClass.get_interfaces, and TpBaseCallContentClass.deinit virtual function.
typedef struct _TpBaseCallContent TpBaseCallContent;
A base class for call content implementations
Since 0.17.5
struct TpBaseCallContentClass { TpBaseCallContentDeinitFunc deinit; TpBaseCallContentGetInterfacesFunc get_interfaces; TpBaseCallContentStartToneFunc start_tone; TpBaseCallContentStopToneFunc stop_tone; TpBaseCallContentMultipleTonesFunc multiple_tones; };
The class structure for TpBaseCallContent
TpBaseCallContentDeinitFunc |
optional; virtual method called by TpBaseCallChannel when removing the content |
TpBaseCallContentGetInterfacesFunc |
extra interfaces provided by this content (this SHOULD NOT
include TP_IFACE_CALL_CONTENT itself). Implementation must first chainup on
parent class implementation then add extra interfaces into the GPtrArray. |
TpBaseCallContentStartToneFunc |
optional; virtual method called when user requested to send a DTMF tone. Note that this method is already implemented by TpBaseMediaCallContent and so does not have to be overriden when using that subclass |
TpBaseCallContentStopToneFunc |
optional; virtual method called when user requested to stop sending currently being played DTMF tones. Note that this method is already implemented by TpBaseMediaCallContent and so does not have to be overriden when using that subclass |
TpBaseCallContentMultipleTonesFunc |
optional; virtual method called when user requested to send multiple DTMF tones. Note that this method is already implemented by TpBaseMediaCallContent and so does not have to be overriden when using that subclass |
Since 0.17.5
GPtrArray * (*TpBaseCallContentGetInterfacesFunc)
(TpBaseCallContent *self
);
Signature of an implementation of TpBaseCallContentClass.get_interfaces.
|
a TpBaseCallContent |
Returns : |
a GPtrArray containing static strings. |
Since 0.17.5
void (*TpBaseCallContentDeinitFunc) (TpBaseCallContent *self
);
Signature of an implementation of TpBaseCallContentClass.deinit.
|
a TpBaseCallContent |
Since 0.17.5
gboolean (*TpBaseCallContentMultipleTonesFunc) (TpBaseCallContent *self
,const gchar *tones
,GError **error
);
Signature of an implementation of TpBaseCallContentClass.multiple_tones.
|
a TpBaseCallContent |
|
a string representation of one or more DTMF events |
|
a GError to fill |
Returns : |
TRUE on success, otherwise FALSE and set error
|
Since 0.17.5
gboolean (*TpBaseCallContentStartToneFunc) (TpBaseCallContent *self
,TpDTMFEvent event
,GError **error
);
Signature of an implementation of TpBaseCallContentClass.start_tone.
|
a TpBaseCallContent |
|
a TpDTMFEvent |
|
a GError to fill |
Returns : |
TRUE on success, otherwise FALSE and set error
|
Since 0.17.5
gboolean (*TpBaseCallContentStopToneFunc) (TpBaseCallContent *self
,GError **error
);
Signature of an implementation of TpBaseCallContentClass.stop_tone.
|
a TpBaseCallContent |
|
a GError to fill |
Returns : |
TRUE on success, otherwise FALSE and set error
|
Since 0.17.5
TpBaseConnection * tp_base_call_content_get_connection (TpBaseCallContent *self
);
|
a TpBaseCallContent |
Returns : |
the value of "connection" |
Since 0.17.5
const gchar * tp_base_call_content_get_object_path
(TpBaseCallContent *self
);
|
a TpBaseCallContent |
Returns : |
the value of "object-path" |
Since 0.17.5
const gchar * tp_base_call_content_get_name (TpBaseCallContent *self
);
|
a TpBaseCallContent |
Returns : |
the value of "name" |
Since 0.17.5
TpMediaStreamType tp_base_call_content_get_media_type (TpBaseCallContent *self
);
|
a TpBaseCallContent |
Returns : |
the value of "media-type" |
Since 0.17.5
TpCallContentDisposition tp_base_call_content_get_disposition
(TpBaseCallContent *self
);
|
a TpBaseCallContent |
Returns : |
the value of "disposition" |
Since 0.17.5
GList * tp_base_call_content_get_streams (TpBaseCallContent *self
);
|
a TpBaseCallContent |
Returns : |
a GList of TpBaseCallStream of this content. |
Since 0.17.5
void tp_base_call_content_add_stream (TpBaseCallContent *self
,TpBaseCallStream *stream
);
Add stream
to self
's "streams". Emitting StreamsAdded
DBus signal.
|
a TpBaseCallContent |
|
a TpBaseCallStream |
Since 0.17.5
void tp_base_call_content_remove_stream (TpBaseCallContent *self
,TpBaseCallStream *stream
,TpHandle actor_handle
,TpCallStateChangeReason reason
,const gchar *dbus_reason
,const gchar *message
);
Remove stream
from self
's "streams". Emitting
StreamsRemoved DBus signal.
|
a TpBaseCallContent |
|
a TpBaseCallStream |
|
the contact responsible for the change, or 0 if no contact was responsible. |
|
the TpCallStateChangeReason of the change |
|
a specific reason for the change, which may be a D-Bus error in the Telepathy namespace, a D-Bus error in any other namespace (for implementation-specific errors), or the empty string to indicate that the state change was not an error. |
|
an optional debug message, to expediate debugging the potentially many processes involved in a call. |
Since 0.17.5
"connection"
property"connection" TpBaseConnection* : Read / Write / Construct Only
TpBaseConnection object that owns this call content.
Since 0.17.5
"creator"
property "creator" guint : Read / Write / Construct Only
The contact TpHandle of the creator of this content.
Default value: 0
Since 0.17.5
"currently-sending-tones"
property "currently-sending-tones" gboolean : Read
If this content is currently sending tones or not
Default value: FALSE
Since 0.17.5
"deferred-tones"
property "deferred-tones" gchar* : Read
Tones that are waiting for the user action to play.
Default value: NULL
Since 0.17.5
"disposition"
property "disposition" guint : Read / Write / Construct Only
The TpCallContentDisposition of this content.
Default value: 0
Since 0.17.5
"interfaces"
property "interfaces" GStrv : Read
Additional interfaces implemented by this content.
Since 0.17.5
"media-type"
property "media-type" guint : Read / Write / Construct Only
The TpMediaStreamType of this content.
Default value: 0
Since 0.17.5
"name"
property "name" gchar* : Read / Write / Construct Only
The name of this content, if any.
Default value: ""
Since 0.17.5
"object-path"
property "object-path" gchar* : Read / Write / Construct Only
The D-Bus object path used for this object on the bus.
Default value: NULL
Since 0.17.5
"streams"
property "streams" GPtrArray_DBusGObjectPath_* : Read
A GPtrArray of this content streams' "object-path".
Since 0.17.5