comparison src/protocols/msn/user.h @ 6701:b7e113a59b51

[gaim-migrate @ 7227] Updated to MSN Protocol 9. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 02 Sep 2003 04:32:16 +0000
parents bf2a7a7b739d
children faa491042c66
comparison
equal deleted inserted replaced
6700:57161e3abbb5 6701:b7e113a59b51
2 * @file user.h User functions 2 * @file user.h User functions
3 * 3 *
4 * gaim 4 * gaim
5 * 5 *
6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> 6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or 10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version. 11 * (at your option) any later version.
12 * 12 *
45 45
46 } phone; 46 } phone;
47 47
48 gboolean mobile; /**< Signed up with MSN Mobile. */ 48 gboolean mobile; /**< Signed up with MSN Mobile. */
49 49
50 int group_id; /**< The group ID. */ 50 GList *group_ids; /**< The group IDs. */
51 51
52 size_t ref_count; /**< The reference count. */ 52 size_t ref_count; /**< The reference count. */
53 53
54 GHashTable *clientcaps; /**< The client's capabilities. */ 54 GHashTable *clientcaps; /**< The client's capabilities. */
55 }; 55 };
69 /**************************************************************************/ 69 /**************************************************************************/
70 /*@{*/ 70 /*@{*/
71 71
72 /** 72 /**
73 * Creates a new user structure. 73 * Creates a new user structure.
74 * 74 *
75 * @param session The MSN session. 75 * @param session The MSN session.
76 * @param passport The initial passport. 76 * @param passport The initial passport.
77 * @param name The initial friendly name. 77 * @param name The initial friendly name.
78 * 78 *
79 * @return A new user structure. 79 * @return A new user structure.
123 * @param name The friendly name. 123 * @param name The friendly name.
124 */ 124 */
125 void msn_user_set_name(MsnUser *user, const char *name); 125 void msn_user_set_name(MsnUser *user, const char *name);
126 126
127 /** 127 /**
128 * Sets the group ID for a user. 128 * Sets the group ID list for a user.
129 *
130 * @param user The user.
131 * @param ids The group ID list.
132 */
133 void msn_user_set_group_ids(MsnUser *user, GList *ids);
134
135 /**
136 * Adds the group ID for a user.
129 * 137 *
130 * @param user The user. 138 * @param user The user.
131 * @param id The group ID. 139 * @param id The group ID.
132 */ 140 */
133 void msn_user_set_group_id(MsnUser *user, int id); 141 void msn_user_add_group_id(MsnUser *user, int id);
142
143 /**
144 * Removes the group ID from a user.
145 *
146 * @param user The user.
147 * @param id The group ID.
148 */
149 void msn_user_remove_group_id(MsnUser *user, int id);
134 150
135 /** 151 /**
136 * Sets the home phone number for a user. 152 * Sets the home phone number for a user.
137 * 153 *
138 * @param user The user. 154 * @param user The user.
173 * @return The friendly name. 189 * @return The friendly name.
174 */ 190 */
175 const char *msn_user_get_name(const MsnUser *user); 191 const char *msn_user_get_name(const MsnUser *user);
176 192
177 /** 193 /**
178 * Returns the group ID for a user. 194 * Returns the group IDs for a user.
179 * 195 *
180 * @param user The user. 196 * @param user The user.
181 * 197 *
182 * @return The group ID. 198 * @return The group IDs.
183 */ 199 */
184 int msn_user_get_group_id(const MsnUser *user); 200 GList *msn_user_get_group_ids(const MsnUser *user);
185 201
186 /** 202 /**
187 * Returns the home phone number for a user. 203 * Returns the home phone number for a user.
188 * 204 *
189 * @param user The user. 205 * @param user The user.
266 282
267 /** 283 /**
268 * Returns the number of users in a users list. 284 * Returns the number of users in a users list.
269 * 285 *
270 * @param users The users list. 286 * @param users The users list.
271 * 287 *
272 * @return The number of users. 288 * @return The number of users.
273 */ 289 */
274 size_t msn_users_get_count(const MsnUsers *users); 290 size_t msn_users_get_count(const MsnUsers *users);
275 291
276 /** 292 /**