|
1 /* |
|
2 * gabble-roomlist-channel.h - Header for GabbleRoomlistChannel |
|
3 * Copyright (C) 2005 Collabora Ltd. |
|
4 * |
|
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 #ifndef __GABBLE_ROOMLIST_CHANNEL_H__ |
|
22 #define __GABBLE_ROOMLIST_CHANNEL_H__ |
|
23 |
|
24 #include <glib-object.h> |
|
25 |
|
26 G_BEGIN_DECLS |
|
27 |
|
28 typedef struct _GabbleRoomlistChannel GabbleRoomlistChannel; |
|
29 typedef struct _GabbleRoomlistChannelClass GabbleRoomlistChannelClass; |
|
30 |
|
31 struct _GabbleRoomlistChannelClass { |
|
32 GObjectClass parent_class; |
|
33 }; |
|
34 |
|
35 struct _GabbleRoomlistChannel { |
|
36 GObject parent; |
|
37 |
|
38 gpointer priv; |
|
39 }; |
|
40 |
|
41 IMPORT_C GType gabble_roomlist_channel_get_type(void); |
|
42 |
|
43 /* TYPE MACROS */ |
|
44 #define GABBLE_TYPE_ROOMLIST_CHANNEL \ |
|
45 (gabble_roomlist_channel_get_type()) |
|
46 #define GABBLE_ROOMLIST_CHANNEL(obj) \ |
|
47 (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannel)) |
|
48 #define GABBLE_ROOMLIST_CHANNEL_CLASS(klass) \ |
|
49 (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannelClass)) |
|
50 #define GABBLE_IS_ROOMLIST_CHANNEL(obj) \ |
|
51 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_ROOMLIST_CHANNEL)) |
|
52 #define GABBLE_IS_ROOMLIST_CHANNEL_CLASS(klass) \ |
|
53 (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_ROOMLIST_CHANNEL)) |
|
54 #define GABBLE_ROOMLIST_CHANNEL_GET_CLASS(obj) \ |
|
55 (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannelClass)) |
|
56 |
|
57 |
|
58 GabbleRoomlistChannel *_gabble_roomlist_channel_new (GabbleConnection *conn, const gchar *object_path, const gchar *conference_server); |
|
59 |
|
60 gboolean |
|
61 gabble_roomlist_channel_close (GabbleRoomlistChannel *self, |
|
62 GError **error); |
|
63 |
|
64 gboolean |
|
65 gabble_roomlist_channel_get_channel_type (GabbleRoomlistChannel *self, |
|
66 gchar **ret, |
|
67 GError **error); |
|
68 |
|
69 gboolean |
|
70 gabble_roomlist_channel_get_handle (GabbleRoomlistChannel *self, |
|
71 guint *ret, |
|
72 guint *ret1, |
|
73 GError **error); |
|
74 |
|
75 gboolean |
|
76 gabble_roomlist_channel_get_interfaces (GabbleRoomlistChannel *self, |
|
77 gchar ***ret, |
|
78 GError **error); |
|
79 |
|
80 gboolean |
|
81 gabble_roomlist_channel_get_listing_rooms (GabbleRoomlistChannel *self, |
|
82 gboolean *ret, |
|
83 GError **error); |
|
84 |
|
85 gboolean |
|
86 gabble_roomlist_channel_list_rooms (GabbleRoomlistChannel *self, |
|
87 GError **error); |
|
88 |
|
89 |
|
90 |
|
91 G_END_DECLS |
|
92 |
|
93 #endif /* #ifndef __GABBLE_ROOMLIST_CHANNEL_H__*/ |