comparison libpurple/protocols/msn/user.h @ 19797:60bc06498746

Committing khc's msnp14 changes from Trac Ticket #148. --rlaager committer: Richard Laager <rlaager@wiktel.com>
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 15 Apr 2007 04:12:27 +0000
parents 32c366eeeb99
children 6f986caeab59
comparison
equal deleted inserted replaced
16121:6167ee79ecd0 19797:60bc06498746
43 43
44 char *passport; /**< The passport account. */ 44 char *passport; /**< The passport account. */
45 char *store_name; /**< The name stored in the server. */ 45 char *store_name; /**< The name stored in the server. */
46 char *friendly_name; /**< The friendly name. */ 46 char *friendly_name; /**< The friendly name. */
47 47
48 char * uid; /*< User Id */
49
48 const char *status; /**< The state of the user. */ 50 const char *status; /**< The state of the user. */
51 char *statusline; /**< The state of the user. */
52 char *currentmedia; /**< The current media of the user. */
53
49 gboolean idle; /**< The idle state of the user. */ 54 gboolean idle; /**< The idle state of the user. */
50 55
51 struct 56 struct
52 { 57 {
53 char *home; /**< Home phone number. */ 58 char *home; /**< Home phone number. */
63 68
64 MsnObject *msnobj; /**< The user's MSN Object. */ 69 MsnObject *msnobj; /**< The user's MSN Object. */
65 70
66 GHashTable *clientcaps; /**< The client's capabilities. */ 71 GHashTable *clientcaps; /**< The client's capabilities. */
67 72
73 int type;
68 int list_op; 74 int list_op;
69 }; 75 };
70 76
71 /**************************************************************************/ 77 /**************************************************************************/
72 /** @name User API */ 78 /** @name User API */
100 * 106 *
101 * @param user The user to update. 107 * @param user The user to update.
102 */ 108 */
103 void msn_user_update(MsnUser *user); 109 void msn_user_update(MsnUser *user);
104 110
111 /**
112 * Sets the new statusline of user.
113 *
114 * @param user The user.
115 * @param state The statusline string.
116 */
117 void msn_user_set_statusline(MsnUser *user, const char *statusline);
118
119 /**
120 * Sets the current media of user.
121 *
122 * @param user The user.
123 * @param state The statusline string.
124 */
125 void msn_user_set_currentmedia(MsnUser *user, const char *currentmedia);
126
105 /** 127 /**
106 * Sets the new state of user. 128 * Sets the new state of user.
107 * 129 *
108 * @param user The user. 130 * @param user The user.
109 * @param state The state string. 131 * @param state The state string.
154 * Adds the group ID for a user. 176 * Adds the group ID for a user.
155 * 177 *
156 * @param user The user. 178 * @param user The user.
157 * @param id The group ID. 179 * @param id The group ID.
158 */ 180 */
159 void msn_user_add_group_id(MsnUser *user, int id); 181 void msn_user_add_group_id(MsnUser *user, const char * id);
160 182
161 /** 183 /**
162 * Removes the group ID from a user. 184 * Removes the group ID from a user.
163 * 185 *
164 * @param user The user. 186 * @param user The user.
165 * @param id The group ID. 187 * @param id The group ID.
166 */ 188 */
167 void msn_user_remove_group_id(MsnUser *user, int id); 189 void msn_user_remove_group_id(MsnUser *user, const char * id);
168 190
169 /** 191 /**
170 * Sets the home phone number for a user. 192 * Sets the home phone number for a user.
171 * 193 *
172 * @param user The user. 194 * @param user The user.
180 * @param user The user. 202 * @param user The user.
181 * @param number The work phone number. 203 * @param number The work phone number.
182 */ 204 */
183 void msn_user_set_work_phone(MsnUser *user, const char *number); 205 void msn_user_set_work_phone(MsnUser *user, const char *number);
184 206
207 void msn_user_set_uid(MsnUser *user, const char *uid);
208 void msn_user_set_type(MsnUser *user,int type);
209
185 /** 210 /**
186 * Sets the mobile phone number for a user. 211 * Sets the mobile phone number for a user.
187 * 212 *
188 * @param user The user. 213 * @param user The user.
189 * @param number The mobile phone number. 214 * @param number The mobile phone number.
277 * 302 *
278 * @return The client information. 303 * @return The client information.
279 */ 304 */
280 GHashTable *msn_user_get_client_caps(const MsnUser *user); 305 GHashTable *msn_user_get_client_caps(const MsnUser *user);
281 306
307 /**
308 * check to see if user is online
309 */
310 gboolean
311 msn_user_is_online(PurpleAccount *account, const char *name);
312
313 /**
314 * check to see if user is Yahoo User
315 */
316 gboolean
317 msn_user_is_yahoo(PurpleAccount *account ,const char *name);
318
319 void msn_user_set_op(MsnUser *user,int list_op);
320
282 /*@}*/ 321 /*@}*/
283 322
323
284 #endif /* _MSN_USER_H_ */ 324 #endif /* _MSN_USER_H_ */