2 * Copyright (C) 2007 Elliot Fairweather
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 * Authors: Elliot Fairweather <elliot.fairweather@collabora.co.uk>
21 #ifndef __EMPATHY_TP_CALL_H__
22 #define __EMPATHY_TP_CALL_H__
25 #include <telepathy-glib/channel.h>
29 #define EMPATHY_TYPE_TP_CALL (empathy_tp_call_get_type ())
30 #define EMPATHY_TP_CALL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), \
31 EMPATHY_TYPE_TP_CALL, EmpathyTpCall))
32 #define EMPATHY_TP_CALL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
33 EMPATHY_TYPE_TP_CALL, EmpathyTpCallClass))
34 #define EMPATHY_IS_TP_CALL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), \
35 EMPATHY_TYPE_TP_CALL))
36 #define EMPATHY_IS_TP_CALL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
37 EMPATHY_TYPE_TP_CALL))
38 #define EMPATHY_TP_CALL_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), \
39 EMPATHY_TYPE_TP_CALL, EmpathyTpCallClass))
41 typedef struct _EmpathyTpCall EmpathyTpCall;
42 typedef struct _EmpathyTpCallClass EmpathyTpCallClass;
44 struct _EmpathyTpCall {
48 struct _EmpathyTpCallClass {
49 GObjectClass parent_class;
54 EMPATHY_TP_CALL_STATUS_READYING,
55 EMPATHY_TP_CALL_STATUS_PENDING,
56 EMPATHY_TP_CALL_STATUS_ACCEPTED,
57 EMPATHY_TP_CALL_STATUS_CLOSED
58 } EmpathyTpCallStatus;
66 } EmpathyTpCallStream;
68 GType empathy_tp_call_get_type (void) G_GNUC_CONST;
69 EmpathyTpCall *empathy_tp_call_new (TpChannel *channel);
71 void empathy_tp_call_accept_incoming_call (EmpathyTpCall *call);
72 void empathy_tp_call_request_video_stream_direction (EmpathyTpCall *call,
74 void empathy_tp_call_add_preview_video (EmpathyTpCall *call,
75 guint preview_video_socket_id);
76 void empathy_tp_call_remove_preview_video (EmpathyTpCall *call,
77 guint preview_video_socket_id);
78 void empathy_tp_call_add_output_video (EmpathyTpCall *call,
79 guint output_video_socket_id);
80 void empathy_tp_call_set_output_volume (EmpathyTpCall *call, guint volume);
81 void empathy_tp_call_mute_output (EmpathyTpCall *call, gboolean is_muted);
82 void empathy_tp_call_mute_input (EmpathyTpCall *call, gboolean is_muted);
86 #endif /* __EMPATHY_TP_CALL_H__ */