comparison libpurple/protocols/msn/user.h @ 31558:ce968e115c95

propagate from branch 'im.pidgin.cpw.masca.p2p' (head 33ca865dacb9e5bcf763d06f6a42cbaca337cc64) to branch 'im.pidgin.pidgin' (head 92f47f4e8b0cbb107fd97e1ab814d1cedbf109ad)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 06 May 2011 06:25:14 +0000
parents feb50c34ec46
children
comparison
equal deleted inserted replaced
31557:f021d93a1f9b 31558:ce968e115c95
26 26
27 typedef struct _MsnUser MsnUser; 27 typedef struct _MsnUser MsnUser;
28 28
29 typedef enum 29 typedef enum
30 { 30 {
31 MSN_NETWORK_UNKNOWN = 0x00, 31 MSN_NETWORK_UNKNOWN = 0,
32 MSN_NETWORK_PASSPORT = 0x01, 32 MSN_NETWORK_PASSPORT = 1,
33 MSN_NETWORK_COMMUNICATOR = 0x02, 33 MSN_NETWORK_COMMUNICATOR = 2,
34 MSN_NETWORK_MOBILE = 0x04, 34 MSN_NETWORK_MOBILE = 4,
35 MSN_NETWORK_MNI = 0x08, 35 MSN_NETWORK_MNI = 8,
36 MSN_NETWORK_SMTP = 0x10, 36 MSN_NETWORK_CIRCLE = 9,
37 MSN_NETWORK_YAHOO = 0x20 37 MSN_NETWORK_TEMP_GROUP = 10,
38 MSN_NETWORK_CID = 11,
39 MSN_NETWORK_CONNECT = 13,
40 MSN_NETWORK_REMOTE = 14,
41 MSN_NETWORK_SMTP = 16,
42 MSN_NETWORK_YAHOO = 32
38 } MsnNetwork; 43 } MsnNetwork;
39 44
40 /** 45 /**
41 * Current media. 46 * Current media.
42 */ 47 */
142 * 147 *
143 * @param session The MSN session. 148 * @param session The MSN session.
144 * @param passport The initial passport. 149 * @param passport The initial passport.
145 * @param stored_name The initial stored name. 150 * @param stored_name The initial stored name.
146 * 151 *
147 * @return A new user structure. 152 * @return A new user structure. It will have a reference count of 1.
148 */ 153 */
149 MsnUser *msn_user_new(MsnUserList *userlist, const char *passport, 154 MsnUser *msn_user_new(MsnUserList *userlist, const char *passport,
150 const char *friendly_name); 155 const char *friendly_name);
151 156
152 /** 157 /**
157 * @return user. 162 * @return user.
158 */ 163 */
159 MsnUser *msn_user_ref(MsnUser *user); 164 MsnUser *msn_user_ref(MsnUser *user);
160 165
161 /** 166 /**
162 * Decrement the reference count. 167 * Decrement the reference count. When the count reaches 0 the object is
168 * automatically freed.
163 * 169 *
164 * @param user The user 170 * @param user The user
165 */ 171 */
166 void msn_user_unref(MsnUser *user); 172 void msn_user_unref(MsnUser *user);
167 173
432 /** 438 /**
433 * Check if the user is part of the group. 439 * Check if the user is part of the group.
434 * 440 *
435 * @param user The user we are asking group membership. 441 * @param user The user we are asking group membership.
436 * @param group_id The group where the user may be in. 442 * @param group_id The group where the user may be in.
437 * 443 *
438 * @return TRUE if user is part of the group. Otherwise, FALSE. 444 * @return TRUE if user is part of the group. Otherwise, FALSE.
439 */ 445 */
440 gboolean msn_user_is_in_group(MsnUser *user, const char * group_id); 446 gboolean msn_user_is_in_group(MsnUser *user, const char * group_id);
441 447
442 /** 448 /**