comparison libpurple/protocols/qq/qq.c @ 16345:6b4e778ee4b4

Death to // comments.
author Richard Laager <rlaager@wiktel.com>
date Mon, 23 Apr 2007 17:19:11 +0000
parents 32c366eeeb99
children a338acd14365
comparison
equal deleted inserted replaced
16344:a45cb71d54db 16345:6b4e778ee4b4
397 { 397 {
398 guint32 uid; 398 guint32 uid;
399 gc_and_uid *g; 399 gc_and_uid *g;
400 PurpleBuddy *buddy; 400 PurpleBuddy *buddy;
401 PurpleConnection *gc; 401 PurpleConnection *gc;
402 // const gchar *who = param_who; gfhuang
403 const gchar *who; 402 const gchar *who;
404 403
405 g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node)); 404 g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node));
406 405
407 buddy = (PurpleBuddy *) node; 406 buddy = (PurpleBuddy *) node;
501 g_return_if_fail(components != NULL); 500 g_return_if_fail(components != NULL);
502 qq_group_manage_group(gc, components); 501 qq_group_manage_group(gc, components);
503 } 502 }
504 */ 503 */
505 504
506 /* TODO: re-enable this 505 #if 0
506 /* TODO: re-enable this */
507 static void _qq_menu_send_file(PurpleBlistNode * node, gpointer ignored) 507 static void _qq_menu_send_file(PurpleBlistNode * node, gpointer ignored)
508 { 508 {
509 PurpleBuddy *buddy; 509 PurpleBuddy *buddy;
510 PurpleConnection *gc; 510 PurpleConnection *gc;
511 qq_buddy *q_bud; 511 qq_buddy *q_bud;
512 512
513 g_return_if_fail (PURPLE_BLIST_NODE_IS_BUDDY (node)); 513 g_return_if_fail (PURPLE_BLIST_NODE_IS_BUDDY (node));
514 buddy = (PurpleBuddy *) node; 514 buddy = (PurpleBuddy *) node;
515 q_bud = (qq_buddy *) buddy->proto_data; 515 q_bud = (qq_buddy *) buddy->proto_data;
516 // if (is_online (q_bud->status)) { 516 /* if (is_online (q_bud->status)) { */
517 gc = purple_account_get_connection (buddy->account); 517 gc = purple_account_get_connection (buddy->account);
518 g_return_if_fail (gc != NULL && gc->proto_data != NULL); 518 g_return_if_fail (gc != NULL && gc->proto_data != NULL);
519 qq_send_file(gc, buddy->name, NULL); 519 qq_send_file(gc, buddy->name, NULL);
520 // } 520 /* } */
521 } 521 }
522 */ 522 #endif
523 523
524 /* protocol related menus */ 524 /* protocol related menus */
525 static GList *_qq_actions(PurplePlugin *plugin, gpointer context) 525 static GList *_qq_actions(PurplePlugin *plugin, gpointer context)
526 { 526 {
527 GList *m; 527 GList *m;
573 573
574 if(PURPLE_BLIST_NODE_IS_CHAT(node)) 574 if(PURPLE_BLIST_NODE_IS_CHAT(node))
575 return _qq_chat_menu(node); 575 return _qq_chat_menu(node);
576 576
577 m = NULL; 577 m = NULL;
578
579 /* TODO : not working, temp commented out by gfhuang */
580 #if 0
581
582 act = purple_menu_action_new(_("Block this buddy"), PURPLE_CALLBACK(_qq_menu_block_buddy), NULL, NULL); /* add NULL by gfhuang */
583 m = g_list_append(m, act);
584 /* if (q_bud && is_online(q_bud->status)) { */
585 act = purple_menu_action_new(_("Send File"), PURPLE_CALLBACK(_qq_menu_send_file), NULL, NULL); /* add NULL by gfhuang */
586 m = g_list_append(m, act);
587 /* } */
588 #endif
589
578 return m; 590 return m;
579 } 591 }
580
581 /* TODO : not working, temp commented out by gfhuang
582
583 act = purple_menu_action_new(_("Block this buddy"), PURPLE_CALLBACK(_qq_menu_block_buddy), NULL, NULL); //add NULL by gfhuang
584 m = g_list_append(m, act);
585 // if (q_bud && is_online(q_bud->status)) {
586 act = purple_menu_action_new(_("Send File"), PURPLE_CALLBACK(_qq_menu_send_file), NULL, NULL); //add NULL by gfhuang
587 m = g_list_append(m, act);
588 // }
589 */
590 /*
591 return m;
592 }
593 */
594 592
595 593
596 static void _qq_keep_alive(PurpleConnection *gc) 594 static void _qq_keep_alive(PurpleConnection *gc)
597 { 595 {
598 qq_group *group; 596 qq_group *group;