1 /* |
|
2 * gabble-register.h - Headers for Gabble account registration |
|
3 * |
|
4 * Copyright (C) 2006 Collabora Ltd. |
|
5 |
|
6 * @author Ole Andre Vadla Ravnaas <ole.andre.ravnaas@collabora.co.uk> |
|
7 * |
|
8 * |
|
9 * |
|
10 * This library is free software; you can redistribute it and/or |
|
11 * modify it under the terms of the GNU Lesser General Public |
|
12 * License as published by the Free Software Foundation; either |
|
13 * version 2.1 of the License, or (at your option) any later version. |
|
14 * |
|
15 * This library is distributed in the hope that it will be useful, |
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
18 * Lesser General Public License for more details. |
|
19 * |
|
20 * You should have received a copy of the GNU Lesser General Public |
|
21 * License along with this library; if not, write to the Free Software |
|
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
23 */ |
|
24 |
|
25 #ifndef __GABBLE_REGISTER_H__ |
|
26 #define __GABBLE_REGISTER_H__ |
|
27 |
|
28 #include <glib-object.h> |
|
29 #include "loudmouth/loudmouth.h" |
|
30 |
|
31 G_BEGIN_DECLS |
|
32 |
|
33 typedef struct _GabbleRegister GabbleRegister; |
|
34 typedef struct _GabbleRegisterClass GabbleRegisterClass; |
|
35 |
|
36 IMPORT_C GType gabble_register_get_type(void); |
|
37 |
|
38 /* TYPE MACROS */ |
|
39 #define GABBLE_TYPE_REGISTER \ |
|
40 (gabble_register_get_type()) |
|
41 #define GABBLE_REGISTER(obj) \ |
|
42 (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_REGISTER, GabbleRegister)) |
|
43 #define GABBLE_REGISTER_CLASS(klass) \ |
|
44 (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_REGISTER, GabbleRegisterClass)) |
|
45 #define GABBLE_IS_REGISTER(obj) \ |
|
46 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_REGISTER)) |
|
47 #define GABBLE_IS_REGISTER_CLASS(klass) \ |
|
48 (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_REGISTER)) |
|
49 #define GABBLE_REGISTER_GET_CLASS(obj) \ |
|
50 (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_REGISTER, GabbleRegisterClass)) |
|
51 |
|
52 struct _GabbleRegisterClass { |
|
53 GObjectClass parent_class; |
|
54 }; |
|
55 |
|
56 struct _GabbleRegister { |
|
57 GObject parent; |
|
58 }; |
|
59 |
|
60 GabbleRegister *gabble_register_new (GabbleConnection *conn); |
|
61 void gabble_register_start (GabbleRegister *reg); |
|
62 |
|
63 G_END_DECLS |
|
64 |
|
65 #endif /* #ifndef __GABBLE_REGISTER_H__ */ |
|