comparison libpurple/protocols/qq/qq.c @ 23695:5f454b975a99

2008.08.10 - csyfek <csyfek(at)gmail.com> * Commit to Pidgin 2008.08.06 - ccpaging <ecc_hy(at)hotmail.com> * Rename names of variables, Group, to Room * Functions of group_network merged into qq_network and qq_process * Canceled managing glist of group packet, add sub_cmdd and room_id to transaction * Fixed error of demo group: If 'room list' and 'room infor' are not setup, response received from server will emits 'room_id = 0' packet. 2008.08.04 - ccpaging <ecc_hy(at)hotmail.com> * Use new crypt/decrypt functions * Rename crypt.c/h to qq_crypt.c/h * Clean code of decrypt functions * Fixed decryption failure 2008.08.04 - csyfek <csyfek(at)gmail.com> * Update AUTHORS
author SHiNE CsyFeK <csyfek@gmail.com>
date Sun, 10 Aug 2008 04:32:14 +0000
parents f56505a982e8
children e16982ad923f 967344bc404d
comparison
equal deleted inserted replaced
23690:107166bb2a64 23695:5f454b975a99
40 40
41 #include "buddy_info.h" 41 #include "buddy_info.h"
42 #include "buddy_opt.h" 42 #include "buddy_opt.h"
43 #include "buddy_list.h" 43 #include "buddy_list.h"
44 #include "char_conv.h" 44 #include "char_conv.h"
45 #include "crypt.h"
46 #include "group.h" 45 #include "group.h"
47 #include "group_find.h" 46 #include "group_find.h"
48 #include "group_im.h" 47 #include "group_im.h"
49 #include "group_info.h" 48 #include "group_info.h"
50 #include "group_join.h" 49 #include "group_join.h"
549 PurpleConnection *gc = (PurpleConnection *) action->context; 548 PurpleConnection *gc = (PurpleConnection *) action->context;
550 purple_request_input(gc, _("Create QQ Qun"), 549 purple_request_input(gc, _("Create QQ Qun"),
551 _("Input Qun name here"), 550 _("Input Qun name here"),
552 _("Only QQ members can create permanent Qun"), 551 _("Only QQ members can create permanent Qun"),
553 "OpenQ", FALSE, FALSE, NULL, 552 "OpenQ", FALSE, FALSE, NULL,
554 _("Create"), G_CALLBACK(qq_group_create_with_name), _("Cancel"), NULL, gc); 553 _("Create"), G_CALLBACK(qq_room_create_new), _("Cancel"), NULL, gc);
555 } 554 }
556 */ 555 */
557 556
558 static void _qq_menu_unsubscribe_group(PurpleBlistNode * node) 557 static void _qq_menu_unsubscribe_group(PurpleBlistNode * node)
559 { 558 {
687 { 686 {
688 g_return_val_if_fail(who != NULL, NULL); 687 g_return_val_if_fail(who != NULL, NULL);
689 return chat_name_to_purple_name(who); 688 return chat_name_to_purple_name(who);
690 } 689 }
691 690
692 static PurplePluginProtocolInfo prpl_info = 691 PurplePlugin *my_protocol = NULL;
693 { 692 static PurplePluginProtocolInfo prpl_info = {
694 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_USE_POINTSIZE, 693 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_USE_POINTSIZE,
695 NULL, /* user_splits */ 694 NULL, /* user_splits */
696 NULL, /* protocol_options */ 695 NULL, /* protocol_options */
697 {"png", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND}, /* icon_spec */ 696 {"png", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND}, /* icon_spec */
698 _qq_list_icon, /* list_icon */ 697 _qq_list_icon, /* list_icon */
751 NULL, /* new xfer */ 750 NULL, /* new xfer */
752 NULL, /* offline_message */ 751 NULL, /* offline_message */
753 NULL, /* PurpleWhiteboardPrplOps */ 752 NULL, /* PurpleWhiteboardPrplOps */
754 NULL, /* send_raw */ 753 NULL, /* send_raw */
755 NULL, /* roomlist_room_serialize */ 754 NULL, /* roomlist_room_serialize */
756 NULL, /* unregister_user */ 755
757 NULL, /* send_attention */ 756 /* padding */
758 NULL, /* get attention_types */ 757 NULL,
759 758 NULL,
760 sizeof(PurplePluginProtocolInfo), /* struct_size */ 759 NULL,
761 NULL 760 NULL
762 }; 761 };
763 762
764 static PurplePluginInfo info = { 763 static PurplePluginInfo info = {
765 PURPLE_PLUGIN_MAGIC, 764 PURPLE_PLUGIN_MAGIC,
818 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); 817 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
819 818
820 option = purple_account_option_int_new(_("Update interval(s)"), "update_interval", 300); 819 option = purple_account_option_int_new(_("Update interval(s)"), "update_interval", 300);
821 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); 820 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
822 821
822 my_protocol = plugin;
823
823 purple_prefs_add_none("/plugins/prpl/qq"); 824 purple_prefs_add_none("/plugins/prpl/qq");
824 purple_prefs_add_bool("/plugins/prpl/qq/show_status_by_icon", TRUE); 825 purple_prefs_add_bool("/plugins/prpl/qq/show_status_by_icon", TRUE);
825 purple_prefs_add_bool("/plugins/prpl/qq/show_fake_video", FALSE); 826 purple_prefs_add_bool("/plugins/prpl/qq/show_fake_video", FALSE);
826 purple_prefs_add_bool("/plugins/prpl/qq/prompt_group_msg_on_recv", TRUE); 827 purple_prefs_add_bool("/plugins/prpl/qq/prompt_group_msg_on_recv", TRUE);
827 } 828 }