aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-07-15 23:45:12 +0800
committerDavyd Madeley <davyd@madeley.id.au>2009-07-15 23:45:12 +0800
commitaedb2729fa86eafc2891bc522cad68285d41b8a5 (patch)
tree43b59bda29aa676f83d8ff136b24f1d127e753f7 /libempathy
parent2a6048e015b83b22eb2c771412b2e4770c4ada01 (diff)
parent9fe194288e580fcbd79fcae90050ccb8b6380a63 (diff)
downloadgsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.tar
gsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.tar.gz
gsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.tar.bz2
gsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.tar.lz
gsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.tar.xz
gsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.tar.zst
gsoc2013-empathy-aedb2729fa86eafc2891bc522cad68285d41b8a5.zip
Merge commit 'jtellier/video-call-button-sensitivity'
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c24
-rw-r--r--libempathy/empathy-contact.h2
2 files changed, 26 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index d351aecbc..c82ecd467 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -802,6 +802,30 @@ empathy_contact_can_voip (EmpathyContact *contact)
}
gboolean
+empathy_contact_can_voip_audio (EmpathyContact *contact)
+{
+ EmpathyContactPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), FALSE);
+
+ priv = GET_PRIV (contact);
+
+ return priv->capabilities & EMPATHY_CAPABILITIES_AUDIO;
+}
+
+gboolean
+empathy_contact_can_voip_video (EmpathyContact *contact)
+{
+ EmpathyContactPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), FALSE);
+
+ priv = GET_PRIV (contact);
+
+ return priv->capabilities & EMPATHY_CAPABILITIES_VIDEO;
+}
+
+gboolean
empathy_contact_can_send_files (EmpathyContact *contact)
{
EmpathyContactPriv *priv;
diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h
index d4e385924..4e9c98756 100644
--- a/libempathy/empathy-contact.h
+++ b/libempathy/empathy-contact.h
@@ -99,6 +99,8 @@ void empathy_contact_set_is_user (EmpathyContact *contact,
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_can_voip_audio (EmpathyContact *contact);
+gboolean empathy_contact_can_voip_video (EmpathyContact *contact);
gboolean empathy_contact_can_send_files (EmpathyContact *contact);
gboolean empathy_contact_can_use_stream_tube (EmpathyContact *contact);
guint empathy_contact_hash (gconstpointer key);