1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2007 Elliot Fairweather
4 * Copyright (C) 2007-2008 Collabora Ltd.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 * Authors: Elliot Fairweather <elliot.fairweather@collabora.co.uk>
21 * Xavier Claessens <xclaesse@gmail.com>
24 #ifndef __EMPATHY_TP_CALL_H__
25 #define __EMPATHY_TP_CALL_H__
28 #include <telepathy-glib/channel.h>
32 #define EMPATHY_TYPE_TP_CALL (empathy_tp_call_get_type ())
33 #define EMPATHY_TP_CALL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), \
34 EMPATHY_TYPE_TP_CALL, EmpathyTpCall))
35 #define EMPATHY_TP_CALL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
36 EMPATHY_TYPE_TP_CALL, EmpathyTpCallClass))
37 #define EMPATHY_IS_TP_CALL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), \
38 EMPATHY_TYPE_TP_CALL))
39 #define EMPATHY_IS_TP_CALL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
40 EMPATHY_TYPE_TP_CALL))
41 #define EMPATHY_TP_CALL_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), \
42 EMPATHY_TYPE_TP_CALL, EmpathyTpCallClass))
44 typedef struct _EmpathyTpCall EmpathyTpCall;
45 typedef struct _EmpathyTpCallClass EmpathyTpCallClass;
47 struct _EmpathyTpCall {
51 struct _EmpathyTpCallClass {
52 GObjectClass parent_class;
57 EMPATHY_TP_CALL_STATUS_READYING,
58 EMPATHY_TP_CALL_STATUS_PENDING,
59 EMPATHY_TP_CALL_STATUS_ACCEPTED,
60 EMPATHY_TP_CALL_STATUS_CLOSED
61 } EmpathyTpCallStatus;
69 } EmpathyTpCallStream;
71 GType empathy_tp_call_get_type (void) G_GNUC_CONST;
72 EmpathyTpCall *empathy_tp_call_new (TpChannel *channel);
74 void empathy_tp_call_accept_incoming_call (EmpathyTpCall *call);
75 void empathy_tp_call_request_video_stream_direction (EmpathyTpCall *call,
77 void empathy_tp_call_add_preview_video (EmpathyTpCall *call,
78 guint preview_video_socket_id);
79 void empathy_tp_call_remove_preview_video (EmpathyTpCall *call,
80 guint preview_video_socket_id);
81 void empathy_tp_call_add_output_video (EmpathyTpCall *call,
82 guint output_video_socket_id);
83 void empathy_tp_call_set_output_volume (EmpathyTpCall *call, guint volume);
84 void empathy_tp_call_mute_output (EmpathyTpCall *call, gboolean is_muted);
85 void empathy_tp_call_mute_input (EmpathyTpCall *call, gboolean is_muted);
89 #endif /* __EMPATHY_TP_CALL_H__ */