| Top |
TpBaseCallStreamTpBaseCallStream — base class for TpSvcCallStream implementations |
| GPtrArray * | (*TpBaseCallStreamGetInterfacesFunc) () |
| gboolean | (*TpBaseCallStreamRequestReceivingFunc) () |
| gboolean | (*TpBaseCallStreamSetSendingFunc) () |
| TpBaseConnection * | tp_base_call_stream_get_connection () |
| const gchar * | tp_base_call_stream_get_object_path () |
| TpSendingState | tp_base_call_stream_get_local_sending_state () |
| gboolean | tp_base_call_stream_update_local_sending_state () |
| TpSendingState | tp_base_call_stream_get_remote_sending_state () |
| gboolean | tp_base_call_stream_update_remote_sending_state () |
| gboolean | tp_base_call_stream_remove_member () |
| gboolean | can-request-receiving | Read |
| TpBaseCallChannel * | channel | Read |
| TpBaseConnection * | connection | Read / Write / Construct Only |
| TpBaseCallContent * | content | Read / Write / Construct Only |
| GStrv | interfaces | Read |
| guint | local-sending-state | Read / Write / Construct Only |
| gchar * | object-path | Read / Write / Construct Only |
| GHashTable_guint+gchararray_* | remote-member-identifiers | Read |
| GHashTable_guint+guint_* | remote-members | Read |
This base class makes it easier to write TpSvcCallStream implementations by implementing its properties, and some of its methods.
Subclasses should fill in TpBaseCallStreamClass.get_interfaces, TpBaseCallStreamClass.request_receiving and TpBaseCallStreamClass.set_sending virtual function.
GPtrArray *
(*TpBaseCallStreamGetInterfacesFunc) (TpBaseCallStream *self);
Signature of an implementation of TpBaseCallStreamClass.get_interfaces.
Since: 0.17.5
gboolean (*TpBaseCallStreamRequestReceivingFunc) (TpBaseCallStream *self,TpHandle contact,gboolean receive,GError **error);
Signature of an implementation of TpBaseCallStreamClass.request_receiving.
self |
||
contact |
the contact from who user wants to start or stop receiving |
|
receive |
wheter or not user would like to be receiving |
|
error |
a GError to fill |
Since: 0.17.5
gboolean (*TpBaseCallStreamSetSendingFunc) (TpBaseCallStream *self,gboolean sending,GError **error);
Signature of an implementation of TpBaseCallStreamClass.set_sending.
Since: 0.17.5
TpBaseConnection *
tp_base_call_stream_get_connection (TpBaseCallStream *self);
Since: 0.17.5
const gchar *
tp_base_call_stream_get_object_path (TpBaseCallStream *self);
Since: 0.17.5
TpSendingState
tp_base_call_stream_get_local_sending_state
(TpBaseCallStream *self);
Since: 0.17.5
gboolean tp_base_call_stream_update_local_sending_state (TpBaseCallStream *self,TpSendingState new_state,TpHandle actor_handle,TpCallStateChangeReason reason,const gchar *dbus_reason,const gchar *message);
Update the local sending state, emitting LocalSendingStateChanged DBus signal if needed.
self |
||
new_state |
the new local TpSendingState |
|
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
TpSendingState tp_base_call_stream_get_remote_sending_state (TpBaseCallStream *self,TpHandle contact);
Since: 0.17.5
gboolean tp_base_call_stream_update_remote_sending_state (TpBaseCallStream *self,TpHandle contact,TpSendingState new_state,TpHandle actor_handle,TpCallStateChangeReason reason,const gchar *dbus_reason,const gchar *message);
If contact
is not member, add it. Otherwise update its sending state. Emits
RemoteMemberChanged DBus signal if needed.
self |
||
contact |
the TpHandle to update or add to members |
|
new_state |
the new sending state of |
|
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
gboolean tp_base_call_stream_remove_member (TpBaseCallStream *self,TpHandle contact,TpHandle actor_handle,TpCallStateChangeReason reason,const gchar *dbus_reason,const gchar *message);
Remove contact
from stream members, emitting RemoteMembersChanged DBus
signal if needed. Do nothing if contact
is not member.
self |
||
contact |
the TpHandle to remove from members |
|
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 TpBaseCallStream;
A base class for call stream implementations
Since: 0.17.5
struct TpBaseCallStreamClass {
TpBaseCallStreamRequestReceivingFunc request_receiving;
TpBaseCallStreamSetSendingFunc set_sending;
TpBaseCallStreamGetInterfacesFunc get_interfaces;
};
The class structure for TpBaseCallStream
TpBaseCallStreamRequestReceivingFunc |
optional (see “can-request-receiving”); virtual method called when user requested receiving from the given remote contact. |
|
TpBaseCallStreamSetSendingFunc |
mandatory; virtual method called when user requested to start/stop sending to remote contacts. |
|
TpBaseCallStreamGetInterfacesFunc |
extra interfaces provided by this stream (this SHOULD NOT
include |
Since: 0.17.5
“can-request-receiving” property “can-request-receiving” gboolean
Whether or not user can request receiving from remote contact using the RequestSending DBus method call. The value is determined by whether or not TpBaseCallStreamClass.request_receiving is implemented.
Owner: TpBaseCallStream
Flags: Read
Default value: FALSE
Since: 0.17.5
“channel” property“channel” TpBaseCallChannel *
TpBaseChannel object that owns this call stream.
Owner: TpBaseCallStream
Flags: Read
Since: 0.17.5
“connection” property“connection” TpBaseConnection *
TpBaseConnection object that owns this call stream.
Owner: TpBaseCallStream
Flags: Read / Write / Construct Only
Since: 0.17.5
“content” property“content” TpBaseCallContent *
TpBaseCallContent object that owns this call stream.
Owner: TpBaseCallStream
Flags: Read / Write / Construct Only
Since: 0.17.6
“interfaces” property “interfaces” GStrv
Additional interfaces implemented by this stream.
Owner: TpBaseCallStream
Flags: Read
Since: 0.17.5
“local-sending-state” property “local-sending-state” guint
The local TpSendingState.
Owner: TpBaseCallStream
Flags: Read / Write / Construct Only
Allowed values: <= 4
Default value: 0
Since: 0.17.5
“object-path” property “object-path” gchar *
The D-Bus object path used for this object on the bus.
Owner: TpBaseCallStream
Flags: Read / Write / Construct Only
Default value: NULL
Since: 0.17.5
“remote-member-identifiers” property “remote-member-identifiers” GHashTable_guint+gchararray_*
GHashTable mapping contact TpHandle to their identifies.
Owner: TpBaseCallStream
Flags: Read
Since: 0.17.5
“remote-members” property “remote-members” GHashTable_guint+guint_*
GHashTable mapping contact TpHandle to their TpSendingState.
Owner: TpBaseCallStream
Flags: Read
Since: 0.17.5