aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-02 20:26:31 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-03 17:18:44 +0800
commitc1b7707c628cb16b44d2159fff993b44e1a5b946 (patch)
treefee4286e075356099daa5b67d967d238fc113055 /libempathy/empathy-contact.h
parent76db409a25964cfb74e030c2edb426bc1aab2d6a (diff)
downloadgsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.tar
gsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.tar.gz
gsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.tar.bz2
gsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.tar.lz
gsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.tar.xz
gsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.tar.zst
gsoc2013-empathy-c1b7707c628cb16b44d2159fff993b44e1a5b946.zip
Add empathy_contact_dup_best_for_action()
This takes a FolksIndividual and returns an EmpathyContact corresponding to the FolksPersona in the Individual which is most suited to having a given action performed on it. Helps: bgo#628338
Diffstat (limited to 'libempathy/empathy-contact.h')
-rw-r--r--libempathy/empathy-contact.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h
index c1ef55d6b..005cf1e7a 100644
--- a/libempathy/empathy-contact.h
+++ b/libempathy/empathy-contact.h
@@ -100,6 +100,17 @@ gboolean empathy_contact_can_voip_video (EmpathyContact *contact);
gboolean empathy_contact_can_send_files (EmpathyContact *contact);
gboolean empathy_contact_can_use_rfb_stream_tube (EmpathyContact *contact);
+typedef enum {
+ EMPATHY_ACTION_CHAT,
+ EMPATHY_ACTION_AUDIO_CALL,
+ EMPATHY_ACTION_VIDEO_CALL,
+ EMPATHY_ACTION_VIEW_LOGS,
+ EMPATHY_ACTION_SEND_FILE,
+ EMPATHY_ACTION_SHARE_MY_DESKTOP,
+} EmpathyActionType;
+
+gboolean empathy_contact_can_do_action (EmpathyContact *self,
+ EmpathyActionType action_type);
#define EMPATHY_TYPE_AVATAR (empathy_avatar_get_type ())
GType empathy_avatar_get_type (void) G_GNUC_CONST;
@@ -118,6 +129,9 @@ gboolean empathy_contact_equal (gconstpointer contact1,
gconstpointer contact2);
EmpathyContact *empathy_contact_dup_from_tp_contact (TpContact *tp_contact);
+EmpathyContact * empathy_contact_dup_best_for_action (
+ FolksIndividual *individual,
+ EmpathyActionType action_type);
G_END_DECLS