1 /* |
|
2 * im-factory.h - Header for GabbleImFactory |
|
3 * Copyright (C) 2006 Collabora Ltd. |
|
4 * |
|
5 * This library is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU Lesser General Public |
|
7 * License as published by the Free Software Foundation; either |
|
8 * version 2.1 of the License, or (at your option) any later version. |
|
9 * |
|
10 * This library is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 * Lesser General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU Lesser General Public |
|
16 * License along with this library; if not, write to the Free Software |
|
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 */ |
|
19 |
|
20 #ifndef __IM_FACTORY_H__ |
|
21 #define __IM_FACTORY_H__ |
|
22 |
|
23 #include <glib-object.h> |
|
24 |
|
25 #include "gabble-im-channel.h" |
|
26 |
|
27 G_BEGIN_DECLS |
|
28 |
|
29 typedef struct _GabbleImFactory GabbleImFactory; |
|
30 typedef struct _GabbleImFactoryClass GabbleImFactoryClass; |
|
31 |
|
32 struct _GabbleImFactoryClass { |
|
33 GObjectClass parent_class; |
|
34 }; |
|
35 |
|
36 struct _GabbleImFactory { |
|
37 GObject parent; |
|
38 }; |
|
39 |
|
40 IMPORT_C GType gabble_im_factory_get_type(void); |
|
41 |
|
42 /* TYPE MACROS */ |
|
43 #define GABBLE_TYPE_IM_FACTORY \ |
|
44 (gabble_im_factory_get_type()) |
|
45 #define GABBLE_IM_FACTORY(obj) \ |
|
46 (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_IM_FACTORY, GabbleImFactory)) |
|
47 #define GABBLE_IM_FACTORY_CLASS(klass) \ |
|
48 (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_IM_FACTORY, GabbleImFactoryClass)) |
|
49 #define GABBLE_IS_IM_FACTORY(obj) \ |
|
50 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_IM_FACTORY)) |
|
51 #define GABBLE_IS_IM_FACTORY_CLASS(klass) \ |
|
52 (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_IM_FACTORY)) |
|
53 #define GABBLE_IM_FACTORY_GET_CLASS(obj) \ |
|
54 (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_IM_FACTORY, GabbleImFactoryClass)) |
|
55 |
|
56 |
|
57 G_END_DECLS |
|
58 |
|
59 #endif /* #ifndef __IM_FACTORY_H__ */ |
|
60 |
|