AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
-# -----------------------------------------------------------
-# VoIP support
-# -----------------------------------------------------------
-AC_ARG_ENABLE(voip,
- AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
- [Add support for Voice and Video call]), ,
- enable_voip=yes)
-
-if test "x$enable_voip" = "xyes"; then
- AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
-fi
-
-AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
-
# -----------------------------------------------------------
AC_OUTPUT([
GtkTreeModel *model,
GtkTreeIter *iter,
EmpathyContactListView *view);
-#ifdef HAVE_VOIP
static void contact_list_view_voip_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *model,
GtkTreeIter *iter,
EmpathyContactListView *view);
-#endif
static void contact_list_view_avatar_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *model,
GtkTreePath *path,
GtkTreeViewColumn *col,
gpointer user_data);
-#ifdef HAVE_VOIP
static void contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell,
const gchar *path_string,
EmpathyContactListView *view);
-#endif
static void contact_list_view_row_expand_or_collapse_cb (EmpathyContactListView *view,
GtkTreeIter *iter,
GtkTreePath *path,
N_("_View Previous Conversations"), NULL, N_("View previous conversations with this contact"),
G_CALLBACK (contact_list_view_action_cb)
},
-#ifdef HAVE_VOIP
{ "Call", EMPATHY_IMAGE_VOIP,
N_("_Call"), NULL, N_("Start a voice or video conversation with this contact"),
G_CALLBACK (contact_list_view_action_cb)
},
-#endif
};
static guint n_entries = G_N_ELEMENTS (entries);
"<ui>"
" <popup name='Contact'>"
" <menuitem action='Chat'/>"
-#ifdef HAVE_VOIP
" <menuitem action='Call'/>"
-#endif
" <menuitem action='Log'/>"
" <menuitem action='SendFile'/>"
" <separator/>"
gtk_tree_view_column_add_attribute (col, cell,
"is_group", EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP);
-#ifdef HAVE_VOIP
/* Voip Capability Icon */
cell = empathy_cell_renderer_activatable_new ();
gtk_tree_view_column_pack_start (col, cell, FALSE);
g_signal_connect (cell, "path-activated",
G_CALLBACK (contact_list_view_voip_activated_cb),
view);
-#endif
/* Avatar */
cell = gtk_cell_renderer_pixbuf_new ();
contact_list_view_cell_set_background (view, cell, is_group, is_active);
}
-#ifdef HAVE_VOIP
static void
contact_list_view_voip_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
contact_list_view_cell_set_background (view, cell, is_group, is_active);
}
-#endif
static void
contact_list_view_avatar_cell_data_func (GtkTreeViewColumn *tree_column,
action = gtk_ui_manager_get_action (priv->ui, "/Contact/Chat");
gtk_action_set_visible (action, priv->features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_CHAT);
-#ifdef HAVE_VOIP
action = gtk_ui_manager_get_action (priv->ui, "/Contact/Call");
gtk_action_set_sensitive (action, can_voip);
gtk_action_set_visible (action, priv->features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_CALL);
-#endif
action = gtk_ui_manager_get_action (priv->ui, "/Contact/Log");
gtk_action_set_sensitive (action, can_show_log);
}
}
-#ifdef HAVE_VOIP
static void
contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell,
const gchar *path_string,
g_object_unref (contact);
}
}
-#endif
-
static void
contact_list_view_row_expand_or_collapse_cb (EmpathyContactListView *view,
}
}
-#ifdef HAVE_VOIP
static void
filter_call_dispatch (EmpathyFilter *filter,
gpointer user_data)
filter);
}
}
-#endif
static void
filter_contact_list_subscribe (EmpathyFilter *filter,
if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT)) {
func = filter_chat_handle_channel;
}
-#ifdef HAVE_VOIP
else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)) {
func = filter_call_handle_channel;
}
-#endif
else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_CONTACT_LIST)) {
func = filter_contact_list_handle_channel;
}
}
}
-#ifdef HAVE_VOIP
static void
filter_connection_advertise_capabilities_cb (TpConnection *connection,
const GPtrArray *capabilities,
error->message);
}
}
-#endif
static void
filter_connection_ready_cb (TpConnection *connection,
gpointer unused,
EmpathyFilter *filter)
{
-#ifdef HAVE_VOIP
GPtrArray *capabilities;
GType cap_type;
GValue cap = {0, };
const gchar *remove = NULL;
-#endif
empathy_debug (DEBUG_DOMAIN, "Connection ready, accepting new channels");
NULL, NULL,
G_OBJECT (filter));
-#ifdef HAVE_VOIP
/* Advertise VoIP capabilities */
capabilities = g_ptr_array_sized_new (1);
cap_type = dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING,
capabilities, &remove,
filter_connection_advertise_capabilities_cb,
NULL, NULL, G_OBJECT (filter));
-#endif
}
static void