|
1 /* |
|
2 * gabble-roster-channel.h - Header for GabbleRosterChannel |
|
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_ROSTER_CHANNEL_H__ |
|
22 #define __GABBLE_ROSTER_CHANNEL_H__ |
|
23 |
|
24 #include <glib-object.h> |
|
25 #include "gintset.h" |
|
26 |
|
27 #include "gabble-types.h" |
|
28 #include "group-mixin.h" |
|
29 |
|
30 G_BEGIN_DECLS |
|
31 |
|
32 typedef struct _GabbleRosterChannelClass GabbleRosterChannelClass; |
|
33 |
|
34 struct _GabbleRosterChannelClass { |
|
35 GObjectClass parent_class; |
|
36 |
|
37 GabbleGroupMixinClass group_class; |
|
38 }; |
|
39 |
|
40 struct _GabbleRosterChannel { |
|
41 GObject parent; |
|
42 |
|
43 GabbleGroupMixin group; |
|
44 |
|
45 gpointer priv; |
|
46 }; |
|
47 |
|
48 IMPORT_C GType gabble_roster_channel_get_type(void); |
|
49 |
|
50 /* TYPE MACROS */ |
|
51 #define GABBLE_TYPE_ROSTER_CHANNEL \ |
|
52 (gabble_roster_channel_get_type()) |
|
53 #define GABBLE_ROSTER_CHANNEL(obj) \ |
|
54 (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannel)) |
|
55 #define GABBLE_ROSTER_CHANNEL_CLASS(klass) \ |
|
56 (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannelClass)) |
|
57 #define GABBLE_IS_ROSTER_CHANNEL(obj) \ |
|
58 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_ROSTER_CHANNEL)) |
|
59 #define GABBLE_IS_ROSTER_CHANNEL_CLASS(klass) \ |
|
60 (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_ROSTER_CHANNEL)) |
|
61 #define GABBLE_ROSTER_CHANNEL_GET_CLASS(obj) \ |
|
62 (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannelClass)) |
|
63 |
|
64 |
|
65 gboolean |
|
66 gabble_roster_channel_add_members (GabbleRosterChannel *self, |
|
67 const GArray *contacts, |
|
68 const gchar *message, |
|
69 GError **error); |
|
70 |
|
71 gboolean |
|
72 gabble_roster_channel_close (GabbleRosterChannel *self, |
|
73 GError **error); |
|
74 |
|
75 gboolean |
|
76 gabble_roster_channel_get_all_members (GabbleRosterChannel *self, |
|
77 GArray **ret, |
|
78 GArray **ret1, |
|
79 GArray **ret2, |
|
80 GError **error); |
|
81 |
|
82 gboolean |
|
83 gabble_roster_channel_get_channel_type (GabbleRosterChannel *self, |
|
84 gchar **ret, |
|
85 GError **error); |
|
86 |
|
87 gboolean |
|
88 gabble_roster_channel_get_group_flags (GabbleRosterChannel *self, |
|
89 guint *ret, |
|
90 GError **error); |
|
91 |
|
92 gboolean |
|
93 gabble_roster_channel_get_handle (GabbleRosterChannel *self, |
|
94 guint *ret, |
|
95 guint *ret1, |
|
96 GError **error); |
|
97 |
|
98 gboolean |
|
99 gabble_roster_channel_get_handle_owners (GabbleRosterChannel *self, |
|
100 const GArray *handles, |
|
101 GArray **ret, |
|
102 GError **error); |
|
103 |
|
104 gboolean |
|
105 gabble_roster_channel_get_interfaces (GabbleRosterChannel *self, |
|
106 gchar ***ret, |
|
107 GError **error); |
|
108 |
|
109 gboolean |
|
110 gabble_roster_channel_get_local_pending_members (GabbleRosterChannel *self, |
|
111 GArray **ret, |
|
112 GError **error); |
|
113 |
|
114 gboolean |
|
115 gabble_roster_channel_get_members (GabbleRosterChannel *self, |
|
116 GArray **ret, |
|
117 GError **error); |
|
118 |
|
119 gboolean |
|
120 gabble_roster_channel_get_remote_pending_members (GabbleRosterChannel *self, |
|
121 GArray **ret, |
|
122 GError **error); |
|
123 |
|
124 gboolean |
|
125 gabble_roster_channel_get_self_handle (GabbleRosterChannel *self, |
|
126 guint *ret, |
|
127 GError **error); |
|
128 |
|
129 gboolean |
|
130 gabble_roster_channel_remove_members (GabbleRosterChannel *self, |
|
131 const GArray *contacts, |
|
132 const gchar *message, |
|
133 GError **error); |
|
134 |
|
135 |
|
136 |
|
137 G_END_DECLS |
|
138 |
|
139 #endif /* #ifndef __GABBLE_ROSTER_CHANNEL_H__*/ |