Update Greek translation
[empathy-mirror.git] / libempathy-gtk / empathy-roster-model-aggregator.h
blob3b9c0202bef6c3cde4053fe2af9f2671e192e13b
1 /*
2 * empathy-roster-model-aggregator.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
22 #ifndef __EMPATHY_ROSTER_MODEL_AGGREGATOR_H__
23 #define __EMPATHY_ROSTER_MODEL_AGGREGATOR_H__
25 #include <glib-object.h>
26 #include <folks/folks.h>
28 #include "empathy-roster-model.h"
30 G_BEGIN_DECLS
32 typedef struct _EmpathyRosterModelAggregator EmpathyRosterModelAggregator;
33 typedef struct _EmpathyRosterModelAggregatorClass
34 EmpathyRosterModelAggregatorClass;
35 typedef struct _EmpathyRosterModelAggregatorPriv
36 EmpathyRosterModelAggregatorPriv;
38 struct _EmpathyRosterModelAggregatorClass
40 /*<private>*/
41 GObjectClass parent_class;
44 struct _EmpathyRosterModelAggregator
46 /*<private>*/
47 GObject parent;
48 EmpathyRosterModelAggregatorPriv *priv;
51 typedef gboolean (* EmpathyRosterModelAggregatorFilterFunc) (
52 EmpathyRosterModel *model,
53 FolksIndividual *individual,
54 gpointer user_data);
56 GType empathy_roster_model_aggregator_get_type (void);
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))
80 EmpathyRosterModelAggregator * empathy_roster_model_aggregator_new (
81 EmpathyRosterModelAggregatorFilterFunc filter_func,
82 gpointer user_data);
84 EmpathyRosterModelAggregator *
85 empathy_roster_model_aggregator_new_with_aggregator (
86 FolksIndividualAggregator *aggregator,
87 EmpathyRosterModelAggregatorFilterFunc filter_func,
88 gpointer user_data);
90 G_END_DECLS
92 #endif /* #ifndef __EMPATHY_ROSTER_MODEL_AGGREGATOR_H__*/