Top |
TpBaseCallContentTpBaseCallContent — base class for TpSvcCall1Content implementations |
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 TpSvcCall1Content and TpSvcCall1ContentInterfaceDTMF1.
This base class makes it easier to write TpSvcCall1Content 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.
Flags: Read / Write / Construct Only
Since 0.17.5
“creator”
property“creator” guint
The contact TpHandle of the creator of this content.
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
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.
Flags: Read
Default value: NULL
Since 0.17.5
“disposition”
property“disposition” guint
The TpCallContentDisposition of this content.
Flags: Read / Write / Construct Only
Default value: 0
Since 0.17.5
“interfaces”
property“interfaces” GStrv
Additional interfaces implemented by this content.
Flags: Read
Since 0.17.5
“media-type”
property“media-type” guint
The TpMediaStreamType of this content.
Flags: Read / Write / Construct Only
Default value: 0
Since 0.17.5
“name”
property“name” gchar *
The name of this content, if any.
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.
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”.
Flags: Read
Since 0.17.5