2
* base-call-internal.h - Header for TpBaseCall* (internals)
3
* Copyright © 2011 Collabora Ltd.
4
* @author Olivier Crete <olivier.crete@collabora.com>
5
* @author Xavier Claessens <xavier.claessens@collabora.co.uk>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
#ifndef __TP_BASE_CALL_INTERNAL_H__
23
#define __TP_BASE_CALL_INTERNAL_H__
25
#include <telepathy-glib/base-connection.h>
29
/* Forward declaration */
30
typedef struct _TpBaseCallChannel TpBaseCallChannel;
31
typedef struct _TpBaseCallContent TpBaseCallContent;
32
typedef struct _TpBaseCallStream TpBaseCallStream;
33
typedef struct _TpCallContentMediaDescription TpCallContentMediaDescription;
34
typedef struct _TpBaseMediaCallChannel TpBaseMediaCallChannel;
35
typedef struct _TpBaseMediaCallContent TpBaseMediaCallContent;
36
typedef struct _TpBaseMediaCallStream TpBaseMediaCallStream;
37
typedef struct _TpCallStreamEndpoint TpCallStreamEndpoint;
39
/* Implemented in base-call-content.c */
40
void _tp_base_call_content_set_channel (TpBaseCallContent *self,
41
TpBaseCallChannel *channel);
42
TpBaseCallChannel *_tp_base_call_content_get_channel (TpBaseCallContent *self);
43
void _tp_base_call_content_accepted (TpBaseCallContent *self,
44
TpHandle actor_handle);
45
void _tp_base_call_content_deinit (TpBaseCallContent *self);
46
void _tp_base_call_content_remove_stream_internal (TpBaseCallContent *self,
47
TpBaseCallStream *stream,
48
const GValueArray *reason_array);
50
/* Implemented in base-media-call-content.c */
51
gboolean _tp_base_media_call_content_ready_to_accept (
52
TpBaseMediaCallContent *self);
53
void _tp_base_media_call_content_remote_accepted (TpBaseMediaCallContent *self);
55
/* Implemented in base-call-stream.c */
56
void _tp_base_call_stream_set_content (TpBaseCallStream *self,
57
TpBaseCallContent *content);
58
TpBaseCallContent *_tp_base_call_stream_get_content (TpBaseCallStream *self);
59
TpBaseCallChannel *_tp_base_call_stream_get_channel (TpBaseCallStream *self);
60
gboolean _tp_base_call_stream_set_sending (TpBaseCallStream *self,
62
TpHandle actor_handle,
63
TpCallStateChangeReason reason,
64
const gchar *dbus_reason,
67
GHashTable *_tp_base_call_stream_get_remote_members (TpBaseCallStream *self);
69
/* Implemented in base-media-call-stream.c */
70
void _tp_base_media_call_stream_set_remotely_held (TpBaseMediaCallStream *self,
71
gboolean remotely_held);
73
/* Implemented in base-call-channel.c */
74
GHashTable *_tp_base_call_dup_member_identifiers (TpBaseConnection *conn,
76
GValueArray *_tp_base_call_state_reason_new (TpHandle actor_handle,
77
TpCallStateChangeReason reason,
78
const gchar *dbus_reason,
79
const gchar *message);
80
void _tp_base_call_channel_remove_content_internal (TpBaseCallChannel *self,
81
TpBaseCallContent *content,
82
const GValueArray *reason_array);
83
gboolean _tp_base_call_channel_is_locally_accepted (TpBaseCallChannel *self);
84
gboolean _tp_base_call_channel_is_connected (TpBaseCallChannel *self);
85
const gchar *_tp_base_call_channel_get_initial_tones (TpBaseCallChannel *self);
87
/* Implemented in base-media-call-channel.c */
88
void _tp_base_media_call_channel_endpoint_state_changed (
89
TpBaseMediaCallChannel *self);
90
gboolean _tp_base_media_channel_is_held (TpBaseMediaCallChannel *self);
91
void _tp_base_media_call_channel_streams_sending_state_changed (
92
TpBaseMediaCallChannel *self,
94
void _tp_base_media_call_channel_streams_receiving_state_changed (
95
TpBaseMediaCallChannel *self,
98
/* Implemented in call-content-media-description.c */
99
void _tp_call_content_media_description_offer_async (
100
TpCallContentMediaDescription *self,
101
GCancellable *cancellable,
102
GAsyncReadyCallback callback,
104
gboolean _tp_call_content_media_description_offer_finish (
105
TpCallContentMediaDescription *self,
106
GAsyncResult *result,
107
GHashTable **properties,
109
GHashTable *_tp_call_content_media_description_dup_properties (
110
TpCallContentMediaDescription *self);
112
/* Implemented in call-stream-endpoint.c */
113
void _tp_call_stream_endpoint_set_stream (TpCallStreamEndpoint *self,
114
TpBaseMediaCallStream *stream);
116
/* Implemented in dtmf.c */
120
DTMF_CHAR_CLASS_MEANINGLESS,
121
DTMF_CHAR_CLASS_PAUSE,
122
DTMF_CHAR_CLASS_EVENT,
123
DTMF_CHAR_CLASS_WAIT_FOR_USER
126
TpDTMFEvent _tp_dtmf_char_to_event (gchar c);
127
DTMFCharClass _tp_dtmf_char_classify (gchar c);
131
#endif /* #ifndef __TP_BASE_CALL_INTERNAL_H__*/