comparison src/protocols/msn/user.c @ 19840:5568b3ac6fce

[gaim-migrate @ 17481] gradually got SOAP contact list and address book from Server. Cache the info in blist.xml committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sat, 14 Oct 2006 20:00:56 +0000
parents 3b971c87279d
children
comparison
equal deleted inserted replaced
19839:2b36697b05ea 19840:5568b3ac6fce
184 184
185 user->type = type; 185 user->type = type;
186 } 186 }
187 187
188 void 188 void
189 msn_user_set_op(MsnUser *user,int list_op)
190 {
191 g_return_if_fail(list_op != NULL);
192 user->list_op |= list_op;
193 }
194
195 void
189 msn_user_set_buddy_icon(MsnUser *user, const char *filename) 196 msn_user_set_buddy_icon(MsnUser *user, const char *filename)
190 { 197 {
191 struct stat st; 198 struct stat st;
192 FILE *fp; 199 FILE *fp;
193 MsnObject *msnobj = msn_user_get_object(user); 200 MsnObject *msnobj = msn_user_get_object(user);
293 g = gaim_group_new(group_name); 300 g = gaim_group_new(group_name);
294 gaim_blist_add_group(g, NULL); 301 gaim_blist_add_group(g, NULL);
295 } 302 }
296 303
297 b = gaim_find_buddy_in_group(account, passport, g); 304 b = gaim_find_buddy_in_group(account, passport, g);
298
299 if (b == NULL){ 305 if (b == NULL){
300 b = gaim_buddy_new(account, passport, NULL); 306 b = gaim_buddy_new(account, passport, NULL);
301
302 gaim_blist_add_buddy(b, NULL, g, NULL); 307 gaim_blist_add_buddy(b, NULL, g, NULL);
303 } 308 }
304
305 b->proto_data = user; 309 b->proto_data = user;
310 /*Update the blist Node info*/
311 // gaim_blist_node_set_string(&(b->node), "", "");
306 } 312 }
307 313
308 /*check if the msn user is online*/ 314 /*check if the msn user is online*/
309 gboolean 315 gboolean
310 msn_user_is_online(GaimAccount *account, const char *name) 316 msn_user_is_online(GaimAccount *account, const char *name)