aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-14 09:00:56 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-14 09:07:37 +0800
commit89546bb514ec002bfddf7a13998398efa89a5cb5 (patch)
treee87843d411d082340ae6d3b85ad767b8fec1beb5 /libempathy
parent20700ef6d7f72e7211195016335cac43ea2195e2 (diff)
downloadgsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.tar
gsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.tar.gz
gsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.tar.bz2
gsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.tar.lz
gsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.tar.xz
gsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.tar.zst
gsoc2013-empathy-89546bb514ec002bfddf7a13998398efa89a5cb5.zip
Hook up abusive argument into TpContactList backend
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact-list.c5
-rw-r--r--libempathy/empathy-contact-list.h6
-rw-r--r--libempathy/empathy-contact-manager.c6
-rw-r--r--libempathy/empathy-individual-manager.c5
-rw-r--r--libempathy/empathy-individual-manager.h3
-rw-r--r--libempathy/empathy-tp-contact-list.c3
6 files changed, 18 insertions, 10 deletions
diff --git a/libempathy/empathy-contact-list.c b/libempathy/empathy-contact-list.c
index d8af8938f..d28866735 100644
--- a/libempathy/empathy-contact-list.c
+++ b/libempathy/empathy-contact-list.c
@@ -282,12 +282,13 @@ empathy_contact_list_remove_from_favourites (EmpathyContactList *list,
void
empathy_contact_list_set_blocked (EmpathyContactList *list,
EmpathyContact *contact,
- gboolean blocked)
+ gboolean blocked,
+ gboolean abusive)
{
EmpathyContactListIface *iface = EMPATHY_CONTACT_LIST_GET_IFACE (list);
if (iface->set_blocked != NULL)
- iface->set_blocked (list, contact, blocked);
+ iface->set_blocked (list, contact, blocked, abusive);
}
gboolean
diff --git a/libempathy/empathy-contact-list.h b/libempathy/empathy-contact-list.h
index 8be93baf9..cf523bf2a 100644
--- a/libempathy/empathy-contact-list.h
+++ b/libempathy/empathy-contact-list.h
@@ -81,7 +81,8 @@ struct _EmpathyContactListIface {
EmpathyContact *contact);
void (*set_blocked) (EmpathyContactList *list,
EmpathyContact *contact,
- gboolean blocked);
+ gboolean blocked,
+ gboolean abusive);
gboolean (*get_blocked) (EmpathyContactList *list,
EmpathyContact *contact);
};
@@ -125,7 +126,8 @@ void empathy_contact_list_remove_from_favourites
void empathy_contact_list_set_blocked (EmpathyContactList *list,
EmpathyContact *contact,
- gboolean blocked);
+ gboolean blocked,
+ gboolean abusive);
gboolean empathy_contact_list_get_blocked (EmpathyContactList *list,
EmpathyContact *contact);
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 2242159b5..b00f82477 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -867,7 +867,8 @@ contact_manager_remove_group (EmpathyContactList *manager,
static void
contact_manager_set_blocked (EmpathyContactList *manager,
EmpathyContact *contact,
- gboolean blocked)
+ gboolean blocked,
+ gboolean abusive)
{
EmpathyContactManagerPriv *priv = GET_PRIV (manager);
EmpathyContactList *list;
@@ -879,7 +880,8 @@ contact_manager_set_blocked (EmpathyContactList *manager,
list = g_hash_table_lookup (priv->lists, connection);
if (list != NULL) {
- empathy_contact_list_set_blocked (list, contact, blocked);
+ empathy_contact_list_set_blocked (list, contact,
+ blocked, abusive);
}
}
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 4adf8e1cb..0a99b7c23 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -503,7 +503,8 @@ empathy_individual_manager_supports_blocking (EmpathyIndividualManager *self,
void
empathy_individual_manager_set_blocked (EmpathyIndividualManager *self,
FolksIndividual *individual,
- gboolean blocked)
+ gboolean blocked,
+ gboolean abusive)
{
EmpathyIndividualManagerPriv *priv;
GList *personas, *l;
@@ -527,7 +528,7 @@ empathy_individual_manager_set_blocked (EmpathyIndividualManager *self,
empathy_contact_set_persona (contact, FOLKS_PERSONA (persona));
empathy_contact_list_set_blocked (
EMPATHY_CONTACT_LIST (priv->contact_manager),
- contact, blocked);
+ contact, blocked, abusive);
g_object_unref (contact);
}
diff --git a/libempathy/empathy-individual-manager.h b/libempathy/empathy-individual-manager.h
index cace94794..e0d8cf4de 100644
--- a/libempathy/empathy-individual-manager.h
+++ b/libempathy/empathy-individual-manager.h
@@ -102,7 +102,8 @@ gboolean empathy_individual_manager_supports_blocking (
void empathy_individual_manager_set_blocked (EmpathyIndividualManager *self,
FolksIndividual *individual,
- gboolean blocked);
+ gboolean blocked,
+ gboolean abusive);
G_END_DECLS
#endif /* __EMPATHY_INDIVIDUAL_MANAGER_H__ */
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index ec4f17245..9b3383d9f 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -1313,7 +1313,8 @@ tp_contact_list_get_flags (EmpathyContactList *list)
static void
tp_contact_list_set_blocked (EmpathyContactList *list,
EmpathyContact *contact,
- gboolean blocked)
+ gboolean blocked,
+ gboolean abusive)
{
EmpathyTpContactListPriv *priv = GET_PRIV (list);
TpHandle handle = empathy_contact_get_handle (contact);