comparison libpurple/protocols/qq/qq.c @ 24078:0a92aa673a33

2008.10.05 - lonicerae <lonicerae(at)gmail.com> * Added 'About OpenQ' dialog 2008.10.05 - lonicerae <lonicerae(at)gmail.com> * Bug fix in 'About OpenQ' dialog
author SHiNE CsyFeK <csyfek@gmail.com>
date Wed, 22 Oct 2008 14:55:09 +0000
parents ce94189f15ad
children 1bdf7b602684
comparison
equal deleted inserted replaced
24077:ce94189f15ad 24078:0a92aa673a33
55 #include "send_file.h" 55 #include "send_file.h"
56 #include "utils.h" 56 #include "utils.h"
57 #include "version.h" 57 #include "version.h"
58 58
59 #define OPENQ_AUTHOR "Puzzlebird" 59 #define OPENQ_AUTHOR "Puzzlebird"
60 #define OPENQ_WEBSITE "http://openq.sourceforge.net" 60 #define OPENQ_WEBSITE "http://openq.sourceforge.net"
61 #define OPENQ_VERSION DISPLAY_VERSION
61 62
62 static GList *server_list_build(gchar select) 63 static GList *server_list_build(gchar select)
63 { 64 {
64 GList *list = NULL; 65 GList *list = NULL;
65 66
616 purple_notify_formatted(gc, NULL, _("Login Information"), NULL, info->str, NULL, NULL); 617 purple_notify_formatted(gc, NULL, _("Login Information"), NULL, info->str, NULL, NULL);
617 618
618 g_string_free(info, TRUE); 619 g_string_free(info, TRUE);
619 } 620 }
620 621
622 static void action_about_openq(PurplePluginAction *action)
623 {
624 PurpleConnection *gc = (PurpleConnection *) action->context;
625 qq_data *qd;
626 GString *info;
627 gchar *title;
628
629 g_return_if_fail(NULL != gc && NULL != gc->proto_data);
630 qd = (qq_data *) gc->proto_data;
631
632 info = g_string_new("<html><body>");
633 g_string_append(info, _("<p><b>Original Author</b>:<br>\n"));
634 g_string_append(info, "puzzlebird<br>\n");
635 g_string_append(info, "<br>\n");
636 g_string_append(info, _("<p><b>Code Contributors</b>:<br>\n"));
637 g_string_append(info, "gfhuang : patches for libpurple 2.0.0beta2, maintainer<br>\n");
638 g_string_append(info, "Yuan Qingyun : patches for libpurple 1.5.0, maintainer<br>\n");
639 g_string_append(info, "henryouly : file transfer, udp sock5 proxy and qq_show, maintainer<br>\n");
640 g_string_append(info, "hzhr : maintainer<br>\n");
641 g_string_append(info, "joymarquis : maintainer<br>\n");
642 g_string_append(info, "arfankai : fixed bugs in char_conv.c<br>\n");
643 g_string_append(info, "rakescar : provided filter for HTML tag<br>\n");
644 g_string_append(info, "yyw : improved performance on PPC linux<br>\n");
645 g_string_append(info, "lvxiang : provided ip to location original code<br>\n");
646 g_string_append(info, "markhuetsch : OpenQ merge into libpurple, maintainer 2006-2007<br>\n");
647 g_string_append(info, "ccpaging : maintainer since 2007<br>\n");
648 g_string_append(info, "icesky : maintainer since 2007<br>\n");
649 g_string_append(info, "csyfek : faces, maintainer since 2007<br>\n");
650 g_string_append(info, "<br>\n");
651 g_string_append(info, _("<p><b>Lovely Patch Writers</b>:<br>\n"));
652 g_string_append(info, "gnap : message displaying, documentation<br>\n");
653 g_string_append(info, "manphiz : qun processing<br>\n");
654 g_string_append(info, "moo : qun processing<br>\n");
655 g_string_append(info, "Coly Li : qun processing<br>\n");
656 g_string_append(info, "Emil Alexiev : captcha verification on login based on LumaQQ for MAC (2007), login, add buddy, remove buddy, message exchange and logout<br>\n");
657 g_string_append(info, "<br>\n");
658 g_string_append(info, _("<p><b>Acknowledgement</b>:<br>\n"));
659 g_string_append(info, "Shufeng Tan : http://sf.net/projects/perl-oicq<br>\n");
660 g_string_append(info, "Jeff Ye : http://www.sinomac.com<br>\n");
661 g_string_append(info, "Hu Zheng : http://forlinux.yeah.net<br>\n");
662 g_string_append(info, "yunfan : http://www.myswear.net<br>\n");
663 g_string_append(info, "OpenQ Team : http://openq.linuxsir.org<br>\n");
664 g_string_append(info, "LumaQQ Team : http://lumaqq.linuxsir.org<br>\n");
665 g_string_append(info, "khc(at)pidgin.im<br>\n");
666 g_string_append(info, "qulogic(at)pidgin.im<br>\n");
667 g_string_append(info, "rlaager(at)pidgin.im<br>\n");
668 g_string_append(info, "OpenQ Google Group : http://groups.google.com/group/openq<br>\n");
669 g_string_append(info, "<br>\n");
670 g_string_append(info, _("<p><i>And, all the boys in the backroom...</i><br>\n"));
671 g_string_append(info, _("<i>Feel free to join us!</i> :)"));
672 g_string_append(info, "</body></html>");
673
674 title = g_strdup_printf(_("About OpenQ %s"), OPENQ_VERSION);
675 purple_notify_formatted(gc, NULL, title, NULL, info->str, NULL, NULL);
676
677 g_free(title);
678 g_string_free(info, TRUE);
679 }
680
621 /* 681 /*
622 static void _qq_menu_search_or_add_permanent_group(PurplePluginAction *action) 682 static void _qq_menu_search_or_add_permanent_group(PurplePluginAction *action)
623 { 683 {
624 purple_roomlist_show_with_account(NULL); 684 purple_roomlist_show_with_account(NULL);
625 } 685 }
720 m = g_list_append(m, act); 780 m = g_list_append(m, act);
721 781
722 act = purple_plugin_action_new(_("Update all QQ Quns"), action_update_all_rooms); 782 act = purple_plugin_action_new(_("Update all QQ Quns"), action_update_all_rooms);
723 m = g_list_append(m, act); 783 m = g_list_append(m, act);
724 784
785 act = purple_plugin_action_new(_("About OpenQ"), action_about_openq);
786 m = g_list_append(m, act);
725 /* 787 /*
726 act = purple_plugin_action_new(_("Qun: Search a permanent Qun"), _qq_menu_search_or_add_permanent_group); 788 act = purple_plugin_action_new(_("Qun: Search a permanent Qun"), _qq_menu_search_or_add_permanent_group);
727 m = g_list_append(m, act); 789 m = g_list_append(m, act);
728 790
729 act = purple_plugin_action_new(_("Qun: Create a permanent Qun"), _qq_menu_create_permanent_group); 791 act = purple_plugin_action_new(_("Qun: Create a permanent Qun"), _qq_menu_create_permanent_group);