~ubuntu-branches/ubuntu/precise/telepathy-glib/precise-201202222208

« back to all changes in this revision

Viewing changes to telepathy-glib/base-call-internal.h

  • Committer: Ken VanDine
  • Date: 2012-02-22 18:08:37 UTC
  • mfrom: (1.6.39)
  • Revision ID: ken.vandine@canonical.com-20120222180837-02um6fex0eg073lf
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
20
 */
 
21
 
 
22
#ifndef __TP_BASE_CALL_INTERNAL_H__
 
23
#define __TP_BASE_CALL_INTERNAL_H__
 
24
 
 
25
#include <telepathy-glib/base-connection.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
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;
 
38
 
 
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);
 
49
 
 
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);
 
54
 
 
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,
 
61
    gboolean send,
 
62
    TpHandle actor_handle,
 
63
    TpCallStateChangeReason reason,
 
64
    const gchar *dbus_reason,
 
65
    const gchar *message,
 
66
    GError **error);
 
67
GHashTable *_tp_base_call_stream_get_remote_members (TpBaseCallStream *self);
 
68
 
 
69
/* Implemented in base-media-call-stream.c */
 
70
void _tp_base_media_call_stream_set_remotely_held (TpBaseMediaCallStream *self,
 
71
    gboolean remotely_held);
 
72
 
 
73
/* Implemented in base-call-channel.c */
 
74
GHashTable *_tp_base_call_dup_member_identifiers (TpBaseConnection *conn,
 
75
    GHashTable *source);
 
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);
 
86
 
 
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,
 
93
    gboolean success);
 
94
void _tp_base_media_call_channel_streams_receiving_state_changed (
 
95
    TpBaseMediaCallChannel *self,
 
96
    gboolean success);
 
97
 
 
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,
 
103
    gpointer user_data);
 
104
gboolean _tp_call_content_media_description_offer_finish (
 
105
    TpCallContentMediaDescription *self,
 
106
    GAsyncResult *result,
 
107
    GHashTable **properties,
 
108
    GError **error);
 
109
GHashTable *_tp_call_content_media_description_dup_properties (
 
110
    TpCallContentMediaDescription *self);
 
111
 
 
112
/* Implemented in call-stream-endpoint.c */
 
113
void _tp_call_stream_endpoint_set_stream (TpCallStreamEndpoint *self,
 
114
    TpBaseMediaCallStream *stream);
 
115
 
 
116
/* Implemented in dtmf.c */
 
117
 
 
118
typedef enum
 
119
{
 
120
  DTMF_CHAR_CLASS_MEANINGLESS,
 
121
  DTMF_CHAR_CLASS_PAUSE,
 
122
  DTMF_CHAR_CLASS_EVENT,
 
123
  DTMF_CHAR_CLASS_WAIT_FOR_USER
 
124
} DTMFCharClass;
 
125
 
 
126
TpDTMFEvent _tp_dtmf_char_to_event (gchar c);
 
127
DTMFCharClass _tp_dtmf_char_classify (gchar c);
 
128
 
 
129
G_END_DECLS
 
130
 
 
131
#endif /* #ifndef __TP_BASE_CALL_INTERNAL_H__*/