Mon, 22 Feb 2010 18:00:18 +0000
warnings--
| 15884 | 1 | /* purple |
| 15030 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 15030 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19050
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 15030 | 20 | * |
| 21 | */ | |
| 22 | ||
| 23 | /* libaim is the AIM protocol plugin. It is linked against liboscarcommon, | |
| 24 | * which contains all the shared implementation code with libicq | |
| 25 | */ | |
| 26 | ||
| 27 | #include "oscarcommon.h" | |
| 28 | ||
| 15884 | 29 | static PurplePluginProtocolInfo prpl_info = |
| 15030 | 30 | { |
| 31 | OPT_PROTO_MAIL_CHECK | OPT_PROTO_IM_IMAGE, | |
| 32 | NULL, /* user_splits */ | |
| 33 | NULL, /* protocol_options */ | |
|
15274
19f6578ddb99
[gaim-migrate @ 18002]
Mark Doliner <markdoliner@pidgin.im>
parents:
15185
diff
changeset
|
34 | /* The mimimum icon size below is not needed in AIM 6.0 */ |
|
29268
92d85eee78b2
New versions of AIM:
Mark Doliner <markdoliner@pidgin.im>
parents:
28817
diff
changeset
|
35 | {"gif,jpeg,bmp,ico", 0, 0, 100, 100, 7168, PURPLE_ICON_SCALE_DISPLAY}, /* icon_spec */ |
| 15030 | 36 | oscar_list_icon_aim, /* list_icon */ |
| 15524 | 37 | oscar_list_emblem, /* list_emblems */ |
| 15030 | 38 | oscar_status_text, /* status_text */ |
| 39 | oscar_tooltip_text, /* tooltip_text */ | |
| 40 | oscar_status_types, /* status_types */ | |
| 41 | oscar_blist_node_menu, /* blist_node_menu */ | |
| 42 | oscar_chat_info, /* chat_info */ | |
| 43 | oscar_chat_info_defaults, /* chat_info_defaults */ | |
| 44 | oscar_login, /* login */ | |
| 45 | oscar_close, /* close */ | |
| 46 | oscar_send_im, /* send_im */ | |
| 47 | oscar_set_info, /* set_info */ | |
| 48 | oscar_send_typing, /* send_typing */ | |
| 49 | oscar_get_info, /* get_info */ | |
| 50 | oscar_set_status, /* set_status */ | |
| 51 | oscar_set_idle, /* set_idle */ | |
| 52 | oscar_change_passwd, /* change_passwd */ | |
| 53 | oscar_add_buddy, /* add_buddy */ | |
| 54 | NULL, /* add_buddies */ | |
| 55 | oscar_remove_buddy, /* remove_buddy */ | |
| 56 | NULL, /* remove_buddies */ | |
| 57 | oscar_add_permit, /* add_permit */ | |
| 58 | oscar_add_deny, /* add_deny */ | |
| 59 | oscar_rem_permit, /* rem_permit */ | |
| 60 | oscar_rem_deny, /* rem_deny */ | |
| 61 | oscar_set_permit_deny, /* set_permit_deny */ | |
| 62 | oscar_join_chat, /* join_chat */ | |
| 63 | NULL, /* reject_chat */ | |
| 64 | oscar_get_chat_name, /* get_chat_name */ | |
| 65 | oscar_chat_invite, /* chat_invite */ | |
| 66 | oscar_chat_leave, /* chat_leave */ | |
| 67 | NULL, /* chat_whisper */ | |
| 68 | oscar_send_chat, /* chat_send */ | |
| 69 | oscar_keepalive, /* keepalive */ | |
| 70 | NULL, /* register_user */ | |
| 71 | NULL, /* get_cb_info */ | |
| 72 | NULL, /* get_cb_away */ | |
| 73 | oscar_alias_buddy, /* alias_buddy */ | |
| 74 | oscar_move_buddy, /* group_buddy */ | |
| 75 | oscar_rename_group, /* rename_group */ | |
| 76 | NULL, /* buddy_free */ | |
| 77 | oscar_convo_closed, /* convo_closed */ | |
| 78 | oscar_normalize, /* normalize */ | |
| 79 | oscar_set_icon, /* set_buddy_icon */ | |
|
19050
78ed2f8cd58d
Some changes from Matthew Goldstein and I to not automatically remove
Mark Doliner <markdoliner@pidgin.im>
parents:
16746
diff
changeset
|
80 | oscar_remove_group, /* remove_group */ |
| 15030 | 81 | NULL, /* get_cb_real_name */ |
| 82 | NULL, /* set_chat_topic */ | |
| 83 | NULL, /* find_blist_chat */ | |
| 84 | NULL, /* roomlist_get_list */ | |
| 85 | NULL, /* roomlist_cancel */ | |
| 86 | NULL, /* roomlist_expand_category */ | |
| 87 | oscar_can_receive_file, /* can_receive_file */ | |
| 88 | oscar_send_file, /* send_file */ | |
| 89 | oscar_new_xfer, /* new_xfer */ | |
| 90 | oscar_offline_message, /* offline_message */ | |
| 91 | NULL, /* whiteboard_prpl_ops */ | |
| 15185 | 92 | NULL, /* send_raw */ |
| 93 | NULL, /* roomlist_room_serialize */ | |
|
22244
221f48b173e3
Update some comments in oscar's prpl callback structs
Mark Doliner <markdoliner@pidgin.im>
parents:
20288
diff
changeset
|
94 | NULL, /* unregister_user */ |
|
221f48b173e3
Update some comments in oscar's prpl callback structs
Mark Doliner <markdoliner@pidgin.im>
parents:
20288
diff
changeset
|
95 | NULL, /* send_attention */ |
|
221f48b173e3
Update some comments in oscar's prpl callback structs
Mark Doliner <markdoliner@pidgin.im>
parents:
20288
diff
changeset
|
96 | NULL, /* get_attention_types */ |
|
23276
f4944cfaa1ff
Use up the last padding for PurplePluginProtocolInfo in a way that allows
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22244
diff
changeset
|
97 | sizeof(PurplePluginProtocolInfo), /* struct_size */ |
|
23707
480f94157418
propagate from branch 'im.pidgin.pidgin' (head bd5f7f61d9349053ee4738efc0d17453f0574057)
Sadrul Habib Chowdhury <sadrul@pidgin.im>
diff
changeset
|
98 | NULL, /* get_account_text_table */ |
|
480f94157418
propagate from branch 'im.pidgin.pidgin' (head bd5f7f61d9349053ee4738efc0d17453f0574057)
Sadrul Habib Chowdhury <sadrul@pidgin.im>
diff
changeset
|
99 | NULL, /* initiate_media */ |
| 29756 | 100 | NULL, /* get_media_caps */ |
| 101 | NULL /* get_moods */ | |
| 15030 | 102 | }; |
| 103 | ||
| 15884 | 104 | static PurplePluginInfo info = |
| 15030 | 105 | { |
| 15884 | 106 | PURPLE_PLUGIN_MAGIC, |
| 107 | PURPLE_MAJOR_VERSION, | |
| 108 | PURPLE_MINOR_VERSION, | |
| 109 | PURPLE_PLUGIN_PROTOCOL, /**< type */ | |
| 15030 | 110 | NULL, /**< ui_requirement */ |
| 111 | 0, /**< flags */ | |
| 112 | NULL, /**< dependencies */ | |
| 15884 | 113 | PURPLE_PRIORITY_DEFAULT, /**< priority */ |
| 15030 | 114 | |
| 115 | "prpl-aim", /**< id */ | |
| 116 | "AIM", /**< name */ | |
|
20288
5ca925a094e2
applied changes from 03b709ec2a153e7e82719df0ba4635108bb1d3c6
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
117 | DISPLAY_VERSION, /**< version */ |
| 15030 | 118 | /** summary */ |
| 119 | N_("AIM Protocol Plugin"), | |
| 120 | /** description */ | |
| 121 | N_("AIM Protocol Plugin"), | |
| 122 | NULL, /**< author */ | |
| 15884 | 123 | PURPLE_WEBSITE, /**< homepage */ |
| 15030 | 124 | |
| 125 | NULL, /**< load */ | |
| 126 | NULL, /**< unload */ | |
| 127 | NULL, /**< destroy */ | |
| 128 | ||
| 129 | NULL, /**< ui_info */ | |
| 130 | &prpl_info, /**< extra_info */ | |
| 131 | NULL, | |
|
16746
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
132 | oscar_actions, |
|
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
133 | |
|
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
134 | /* padding */ |
|
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
135 | NULL, |
|
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
136 | NULL, |
|
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
137 | NULL, |
|
72faf41c3c4f
And now the protocols
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
138 | NULL |
| 15030 | 139 | }; |
| 140 | ||
| 141 | static void | |
| 15884 | 142 | init_plugin(PurplePlugin *plugin) |
| 15030 | 143 | { |
|
28817
a6c03addaccf
oscar: Remove the simultaneous logins option from ICQ accounts.
Paul Aurich <darkrain42@pidgin.im>
parents:
23707
diff
changeset
|
144 | oscar_init(plugin); |
| 15030 | 145 | } |
| 146 | ||
| 15884 | 147 | PURPLE_INIT_PLUGIN(aim, init_plugin, info); |