]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-model-aggregator.c
75289dc7d8a1788ea0c7708927232bff938c1e22
[empathy.git] / libempathy-gtk / empathy-roster-model-aggregator.c
1 /*
2  * empathy-roster-model-aggregator.c
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 #include "config.h"
23
24 #include "empathy-roster-model-aggregator.h"
25
26 /**
27  * SECTION: empathy-roster-model-aggregator
28  * @title: EmpathyRosterModelAggregator
29  * @short_description: TODO
30  *
31  * TODO
32  */
33
34 /**
35  * EmpathyRosterModelAggregator:
36  *
37  * Data structure representing a #EmpathyRosterModelAggregator.
38  *
39  * Since: UNRELEASED
40  */
41
42 /**
43  * EmpathyRosterModelAggregatorClass:
44  *
45  * The class of a #EmpathyRosterModelAggregator.
46  *
47  * Since: UNRELEASED
48  */
49
50 G_DEFINE_TYPE (EmpathyRosterModelAggregator, empathy_roster_model_aggregator, G_TYPE_OBJECT)
51
52 enum
53 {
54   PROP_FIRST_PROP = 1,
55   N_PROPS
56 };
57
58 /*
59 enum
60 {
61   LAST_SIGNAL
62 };
63
64 static guint signals[LAST_SIGNAL];
65 */
66
67 struct _EmpathyRosterModelAggregatorPriv
68 {
69   gpointer badger;
70 };
71
72 static void
73 empathy_roster_model_aggregator_get_property (GObject *object,
74     guint property_id,
75     GValue *value,
76     GParamSpec *pspec)
77 {
78   //EmpathyRosterModelAggregator *self = EMPATHY_ROSTER_MODEL_AGGREGATOR (object);
79
80   switch (property_id)
81     {
82       default:
83         G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
84         break;
85     }
86 }
87
88 static void
89 empathy_roster_model_aggregator_set_property (GObject *object,
90     guint property_id,
91     const GValue *value,
92     GParamSpec *pspec)
93 {
94   //EmpathyRosterModelAggregator *self = EMPATHY_ROSTER_MODEL_AGGREGATOR (object);
95
96   switch (property_id)
97     {
98       default:
99         G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
100         break;
101     }
102 }
103
104 static void
105 empathy_roster_model_aggregator_constructed (GObject *object)
106 {
107   //EmpathyRosterModelAggregator *self = EMPATHY_ROSTER_MODEL_AGGREGATOR (object);
108   void (*chain_up) (GObject *) =
109       ((GObjectClass *) empathy_roster_model_aggregator_parent_class)->constructed;
110
111   if (chain_up != NULL)
112     chain_up (object);
113 }
114
115 static void
116 empathy_roster_model_aggregator_dispose (GObject *object)
117 {
118   //EmpathyRosterModelAggregator *self = EMPATHY_ROSTER_MODEL_AGGREGATOR (object);
119   void (*chain_up) (GObject *) =
120       ((GObjectClass *) empathy_roster_model_aggregator_parent_class)->dispose;
121
122   if (chain_up != NULL)
123     chain_up (object);
124 }
125
126 static void
127 empathy_roster_model_aggregator_finalize (GObject *object)
128 {
129   //EmpathyRosterModelAggregator *self = EMPATHY_ROSTER_MODEL_AGGREGATOR (object);
130   void (*chain_up) (GObject *) =
131       ((GObjectClass *) empathy_roster_model_aggregator_parent_class)->finalize;
132
133   if (chain_up != NULL)
134     chain_up (object);
135 }
136
137 static void
138 empathy_roster_model_aggregator_class_init (
139     EmpathyRosterModelAggregatorClass *klass)
140 {
141   GObjectClass *oclass = G_OBJECT_CLASS (klass);
142   //GParamSpec *spec;
143
144   oclass->get_property = empathy_roster_model_aggregator_get_property;
145   oclass->set_property = empathy_roster_model_aggregator_set_property;
146   oclass->constructed = empathy_roster_model_aggregator_constructed;
147   oclass->dispose = empathy_roster_model_aggregator_dispose;
148   oclass->finalize = empathy_roster_model_aggregator_finalize;
149
150   g_type_class_add_private (klass, sizeof (EmpathyRosterModelAggregatorPriv));
151 }
152
153 static void
154 empathy_roster_model_aggregator_init (EmpathyRosterModelAggregator *self)
155 {
156   self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
157       EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR, EmpathyRosterModelAggregatorPriv);
158 }
159
160 EmpathyRosterModelAggregator *
161 empathy_roster_model_aggregator_new (void)
162 {
163   return g_object_new (EMPATHY_TYPE_ROSTER_MODEL_AGGREGATOR,
164       NULL);
165 }