aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorJonathan Tellier <jonathan.tellier@gmail.com>2009-07-03 00:08:43 +0800
committerjtellier <jonathan.tellier@collabora.co.uk>2009-07-03 00:08:43 +0800
commit9fe194288e580fcbd79fcae90050ccb8b6380a63 (patch)
treee852b5515218042a5ac459e68090f3946a618c8e /libempathy/empathy-contact.c
parent5dae9d1185b972651a7c7e8d4431f8dcdd2e0cd3 (diff)
downloadgsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar
gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.gz
gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.bz2
gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.lz
gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.xz
gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.zst
gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.zip
Added functions to determine if a contact has video capabilities
Activating the "Video Call" button only if the remote contact support video. The call window's "Send Video" is only sensitive if the contact has video capabilities.
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c24
1 files changed, 24 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;