aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-09-09 05:36:53 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-09-09 05:36:53 +0800
commit3ab538f85f2ec8fe2ffdb31957c341596d615e07 (patch)
treedeafd7ec89798bb1b51b5e53106e52116bbc8999 /libempathy
parentd3e46f8c3570d2486eeab6255899daaaf308b036 (diff)
downloadgsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.tar
gsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.tar.gz
gsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.tar.bz2
gsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.tar.lz
gsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.tar.xz
gsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.tar.zst
gsoc2013-empathy-3ab538f85f2ec8fe2ffdb31957c341596d615e07.zip
Adding UI to start a VoIP call. It does nothing yet. Most of the code is
2007-09-08 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-images.h: * libempathy-gtk/empathy-chat.glade: * libempathy-gtk/empathy-contact-list-view.c: * libempathy-gtk/empathy-contact-list-store.c: * libempathy-gtk/empathy-contact-list-store.h: * libempathy-gtk/Makefile.am: * libempathy-gtk/empathy-chat-window.c: * libempathy/empathy-contact.c: * libempathy/empathy-contact.h: Adding UI to start a VoIP call. It does nothing yet. Most of the code is ported from Gossip patch (Raphael Slinckx, Xavier Claessens). svn path=/trunk/; revision=292
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c13
-rw-r--r--libempathy/empathy-contact.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 221b06e17..76cab2a6e 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -625,6 +625,19 @@ empathy_contact_get_status (EmpathyContact *contact)
}
gboolean
+empathy_contact_can_voip (EmpathyContact *contact)
+{
+ EmpathyContactPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), FALSE);
+
+ priv = GET_PRIV (contact);
+
+ return priv->capabilities & (EMPATHY_CAPABILITIES_AUDIO |
+ EMPATHY_CAPABILITIES_VIDEO);
+}
+
+gboolean
empathy_contact_equal (gconstpointer v1,
gconstpointer v2)
{
diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h
index d062885bc..b5a3c1ec9 100644
--- a/libempathy/empathy-contact.h
+++ b/libempathy/empathy-contact.h
@@ -89,6 +89,7 @@ void empathy_contact_set_is_user (EmpathyContact *con
gboolean is_user);
gboolean empathy_contact_is_online (EmpathyContact *contact);
const gchar * empathy_contact_get_status (EmpathyContact *contact);
+gboolean empathy_contact_can_voip (EmpathyContact *contact);
gboolean empathy_contact_equal (gconstpointer v1,
gconstpointer v2);
guint empathy_contact_hash (gconstpointer key);