]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-model-aggregator.h
Updated Spanish translation
[empathy.git] / libempathy-gtk / empathy-roster-model-aggregator.h
1 /*
2  * empathy-roster-model-aggregator.h
3  *
4  * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
5  *
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.
10  *
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.
15  *
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
19  */
20
21
22 #ifndef __EMPATHY_ROSTER_MODEL_AGGREGATOR_H__
23 #define __EMPATHY_ROSTER_MODEL_AGGREGATOR_H__
24
25 #include <glib-object.h>
26 #include <folks/folks.h>
27
28 #include "empathy-roster-model.h"
29
30 G_BEGIN_DECLS
31
32 typedef struct _EmpathyRosterModelAggregator EmpathyRosterModelAggregator;
33 typedef struct _EmpathyRosterModelAggregatorClass
34 EmpathyRosterModelAggregatorClass;
35 typedef struct _EmpathyRosterModelAggregatorPriv
36 EmpathyRosterModelAggregatorPriv;
37
38 struct _EmpathyRosterModelAggregatorClass
39 {
40   /*<private>*/
41   GObjectClass parent_class;
42 };
43
44 struct _EmpathyRosterModelAggregator
45 {
46   /*<private>*/
47   GObject parent;
48   EmpathyRosterModelAggregatorPriv *priv;
49 };
50
51 typedef gboolean (* EmpathyRosterModelAggregatorFilterFunc) (
52     EmpathyRosterModel *model,
53     FolksIndividual *individual,
54     gpointer user_data);
55
56 GType empathy_roster_model_aggregator_get_type (void);
57
58 /* TYPE MACROS */
59 #define EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR \
60   (empathy_roster_model_aggregator_get_type ())
61 #define EMPATHY_ROSTER_MODEL_AGGREGATOR(obj) \
62   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
63     EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR, \
64     EmpathyRosterModelAggregator))
65 #define EMPATHY_ROSTER_MODEL_AGGREGATOR_CLASS(klass) \
66   (G_TYPE_CHECK_CLASS_CAST((klass), \
67     EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR, \
68     EmpathyRosterModelAggregatorClass))
69 #define EMPATHY_IS_ROSTER_MODEL_AGGREGATOR(obj) \
70   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
71     EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR))
72 #define EMPATHY_IS_ROSTER_MODEL_AGGREGATOR_CLASS(klass) \
73   (G_TYPE_CHECK_CLASS_TYPE((klass), \
74     EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR))
75 #define EMPATHY_ROSTER_MODEL_AGGREGATOR_GET_CLASS(obj) \
76   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
77     EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR, \
78     EmpathyRosterModelAggregatorClass))
79
80 EmpathyRosterModelAggregator * empathy_roster_model_aggregator_new (
81     EmpathyRosterModelAggregatorFilterFunc filter_func,
82     gpointer user_data);
83
84 EmpathyRosterModelAggregator *
85 empathy_roster_model_aggregator_new_with_aggregator (
86     FolksIndividualAggregator *aggregator,
87     EmpathyRosterModelAggregatorFilterFunc filter_func,
88     gpointer user_data);
89
90 G_END_DECLS
91
92 #endif /* #ifndef __EMPATHY_ROSTER_MODEL_AGGREGATOR_H__*/