2 * empathy-roster-model.h
4 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __EMPATHY_ROSTER_MODEL_H__
21 #define __EMPATHY_ROSTER_MODEL_H__
23 #include <glib-object.h>
25 #include <folks/folks.h>
29 typedef struct _EmpathyRosterModel EmpathyRosterModel;
30 typedef struct _EmpathyRosterModelInterface EmpathyRosterModelInterface;
32 struct _EmpathyRosterModelInterface
35 GTypeInterface g_iface;
38 GList * (* get_individuals) (EmpathyRosterModel *self);
39 GList * (*get_groups_for_individual) (EmpathyRosterModel *self,
40 FolksIndividual *individual);
43 GType empathy_roster_model_get_type (void);
46 #define EMPATHY_TYPE_ROSTER_MODEL \
47 (empathy_roster_model_get_type ())
48 #define EMPATHY_ROSTER_MODEL(obj) \
49 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
50 EMPATHY_TYPE_ROSTER_MODEL, \
52 #define EMPATHY_IS_ROSTER_MODEL(obj) \
53 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
54 EMPATHY_TYPE_ROSTER_MODEL))
55 #define EMPATHY_ROSTER_MODEL_GET_IFACE(obj) \
56 (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
57 EMPATHY_TYPE_ROSTER_MODEL, \
58 EmpathyRosterModelInterface))
62 void empathy_roster_model_fire_individual_added (EmpathyRosterModel *self,
63 FolksIndividual *individual);
65 void empathy_roster_model_fire_individual_removed (EmpathyRosterModel *self,
66 FolksIndividual *individual);
68 void empathy_roster_model_fire_groups_changed (EmpathyRosterModel *self,
69 FolksIndividual *individual,
74 GList * empathy_roster_model_get_individuals (EmpathyRosterModel *self);
76 GList * empathy_roster_model_get_groups_for_individual (EmpathyRosterModel *self,
77 FolksIndividual *individual);
81 #endif /* #ifndef __EMPATHY_ROSTER_MODEL_H__*/