Top |
TpBaseCallContentTpBaseCallContent — base class for TpSvcCallContent implementations |
GPtrArray * | (*TpBaseCallContentGetInterfacesFunc) () |
void | (*TpBaseCallContentDeinitFunc) () |
gboolean | (*TpBaseCallContentMultipleTonesFunc) () |
gboolean | (*TpBaseCallContentStartToneFunc) () |
gboolean | (*TpBaseCallContentStopToneFunc) () |
TpBaseConnection * | tp_base_call_content_get_connection () |
const gchar * | tp_base_call_content_get_object_path () |
const gchar * | tp_base_call_content_get_name () |
TpMediaStreamType | tp_base_call_content_get_media_type () |
TpCallContentDisposition | tp_base_call_content_get_disposition () |
GList * | tp_base_call_content_get_streams () |
void | tp_base_call_content_add_stream () |
void | tp_base_call_content_remove_stream () |
TpBaseConnection * | connection | Read / Write / Construct Only |
guint | creator | Read / Write / Construct Only |
gboolean | currently-sending-tones | Read |
gchar * | deferred-tones | Read |
guint | disposition | Read / Write / Construct Only |
GStrv | interfaces | Read |
guint | media-type | Read / Write / Construct Only |
gchar * | name | Read / Write / Construct Only |
gchar * | object-path | Read / Write / Construct Only |
GPtrArray_DBusGObjectPath_ * | streams | Read |
TpBaseCallContent implements TpSvcDBusProperties, TpSvcCallContent and TpSvcCallContentInterfaceDTMF.
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.
GPtrArray *
(*TpBaseCallContentGetInterfacesFunc) (TpBaseCallContent *self
);
Signature of an implementation of TpBaseCallContentClass.get_interfaces.
Since: 0.17.5
void
(*TpBaseCallContentDeinitFunc) (TpBaseCallContent *self
);
Signature of an implementation of TpBaseCallContentClass.deinit.
Since: 0.17.5
gboolean (*TpBaseCallContentMultipleTonesFunc) (TpBaseCallContent *self
,const gchar *tones
,GError **error
);
Signature of an implementation of TpBaseCallContentClass.multiple_tones.
Since: 0.17.5
gboolean (*TpBaseCallContentStartToneFunc) (TpBaseCallContent *self
,TpDTMFEvent event
,GError **error
);
Signature of an implementation of TpBaseCallContentClass.start_tone.
Since: 0.17.5
gboolean (*TpBaseCallContentStopToneFunc) (TpBaseCallContent *self
,GError **error
);
Signature of an implementation of TpBaseCallContentClass.stop_tone.
Since: 0.17.5
TpBaseConnection *
tp_base_call_content_get_connection (TpBaseCallContent *self
);
Since: 0.17.5
const gchar *
tp_base_call_content_get_object_path (TpBaseCallContent *self
);
Since: 0.17.5
const gchar *
tp_base_call_content_get_name (TpBaseCallContent *self
);
Since: 0.17.5
TpMediaStreamType
tp_base_call_content_get_media_type (TpBaseCallContent *self
);
Since: 0.17.5
TpCallContentDisposition
tp_base_call_content_get_disposition (TpBaseCallContent *self
);
Since: 0.17.5
GList *
tp_base_call_content_get_streams (TpBaseCallContent *self
);
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.
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.
self |
||
stream |
||
actor_handle |
the contact responsible for the change, or 0 if no contact was responsible. |
|
reason |
the TpCallStateChangeReason of the change |
|
dbus_reason |
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. |
|
message |
an optional debug message, to expediate debugging the potentially many processes involved in a call. |
Since: 0.17.5
struct 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 |
|
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
“connection”
property“connection” TpBaseConnection *
TpBaseConnection object that owns this call content.
Owner: TpBaseCallContent
Flags: Read / Write / Construct Only
Since: 0.17.5
“creator”
property “creator” guint
The contact TpHandle of the creator of this content.
Owner: TpBaseCallContent
Flags: Read / Write / Construct Only
Default value: 0
Since: 0.17.5
“currently-sending-tones”
property “currently-sending-tones” gboolean
If this content is currently sending tones or not
Owner: TpBaseCallContent
Flags: Read
Default value: FALSE
Since: 0.17.5
“deferred-tones”
property “deferred-tones” gchar *
Tones that are waiting for the user action to play.
Owner: TpBaseCallContent
Flags: Read
Default value: NULL
Since: 0.17.5
“disposition”
property “disposition” guint
The TpCallContentDisposition of this content.
Owner: TpBaseCallContent
Flags: Read / Write / Construct Only
Default value: 0
Since: 0.17.5
“interfaces”
property “interfaces” GStrv
Additional interfaces implemented by this content.
Owner: TpBaseCallContent
Flags: Read
Since: 0.17.5
“media-type”
property “media-type” guint
The TpMediaStreamType of this content.
Owner: TpBaseCallContent
Flags: Read / Write / Construct Only
Default value: 0
Since: 0.17.5
“name”
property “name” gchar *
The name of this content, if any.
Owner: TpBaseCallContent
Flags: Read / Write / Construct Only
Default value: ""
Since: 0.17.5
“object-path”
property “object-path” gchar *
The D-Bus object path used for this object on the bus.
Owner: TpBaseCallContent
Flags: Read / Write / Construct Only
Default value: NULL
Since: 0.17.5
“streams”
property “streams” GPtrArray_DBusGObjectPath_ *
A GPtrArray of this content streams' “object-path”.
Owner: TpBaseCallContent
Flags: Read
Since: 0.17.5