File:  [Coherent Logic Development] / ChivanetAimPidgin / oscarprpl / src / c / libaim.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Mon Jan 27 19:48:25 2025 UTC (6 months ago) by snw
Branches: MAIN, CoherentLogicDevelopment
CVS tags: test-tag, start, HEAD
Pidgin AIM Plugin for ChivaNet

    1: /* purple
    2:  *
    3:  * Purple is the legal property of its developers, whose names are too numerous
    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
   19:  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
   20:  *
   21:  */
   22: 
   23: /* libaim is the AIM protocol plugin. It is linked against liboscar,
   24:  * which contains all the shared implementation code with libicq
   25:  */
   26: 
   27: #include <purple.h>
   28: #include "oscarcommon.h"
   29: #include "oscar.h"
   30: 
   31: static PurplePluginProtocolInfo prpl_info =
   32: {
   33: 	OPT_PROTO_MAIL_CHECK | OPT_PROTO_IM_IMAGE | OPT_PROTO_INVITE_MESSAGE,
   34: 	NULL,					/* user_splits */
   35: 	NULL,					/* protocol_options */
   36: 	{"gif,jpeg,bmp,ico", 0, 0, 64, 64, 7168, PURPLE_ICON_SCALE_SEND | PURPLE_ICON_SCALE_DISPLAY}, /* icon_spec */
   37: 	oscar_list_icon_aim,		/* list_icon */
   38: 	oscar_list_emblem,		/* list_emblems */
   39: 	oscar_status_text,		/* status_text */
   40: 	oscar_tooltip_text,		/* tooltip_text */
   41: 	oscar_status_types,		/* status_types */
   42: 	oscar_blist_node_menu,	/* blist_node_menu */
   43: 	oscar_chat_info,		/* chat_info */
   44: 	oscar_chat_info_defaults, /* chat_info_defaults */
   45: 	oscar_login,			/* login */
   46: 	oscar_close,			/* close */
   47: 	oscar_send_im,			/* send_im */
   48: 	oscar_set_info,			/* set_info */
   49: 	oscar_send_typing,		/* send_typing */
   50: 	oscar_get_info,			/* get_info */
   51: 	oscar_set_status,		/* set_status */
   52: 	oscar_set_idle,			/* set_idle */
   53: 	oscar_change_passwd,	/* change_passwd */
   54: 	NULL,					/* add_buddy */
   55: 	NULL,					/* add_buddies */
   56: 	oscar_remove_buddy,		/* remove_buddy */
   57: 	NULL,					/* remove_buddies */
   58: 	oscar_add_permit,		/* add_permit */
   59: 	oscar_add_deny,			/* add_deny */
   60: 	oscar_rem_permit,		/* rem_permit */
   61: 	oscar_rem_deny,			/* rem_deny */
   62: 	oscar_set_aim_permdeny,	/* set_permit_deny */
   63: 	oscar_join_chat,		/* join_chat */
   64: 	NULL,					/* reject_chat */
   65: 	oscar_get_chat_name,	/* get_chat_name */
   66: 	oscar_chat_invite,		/* chat_invite */
   67: 	oscar_chat_leave,		/* chat_leave */
   68: 	NULL,					/* chat_whisper */
   69: 	oscar_send_chat,		/* chat_send */
   70: 	oscar_keepalive,		/* keepalive */
   71: 	NULL,					/* register_user */
   72: 	NULL,					/* get_cb_info */
   73: 	NULL,					/* get_cb_away */
   74: 	oscar_alias_buddy,		/* alias_buddy */
   75: 	oscar_move_buddy,		/* group_buddy */
   76: 	oscar_rename_group,		/* rename_group */
   77: 	NULL,					/* buddy_free */
   78: 	oscar_convo_closed,		/* convo_closed */
   79: 	oscar_normalize,		/* normalize */
   80: 	oscar_set_icon,			/* set_buddy_icon */
   81: 	oscar_remove_group,		/* remove_group */
   82: 	NULL,					/* get_cb_real_name */
   83: 	NULL,					/* set_chat_topic */
   84: 	NULL,					/* find_blist_chat */
   85: 	NULL,					/* roomlist_get_list */
   86: 	NULL,					/* roomlist_cancel */
   87: 	NULL,					/* roomlist_expand_category */
   88: 	oscar_can_receive_file,	/* can_receive_file */
   89: 	oscar_send_file,		/* send_file */
   90: 	oscar_new_xfer,			/* new_xfer */
   91: 	oscar_offline_message,	/* offline_message */
   92: 	NULL,					/* whiteboard_prpl_ops */
   93: 	NULL,					/* send_raw */
   94: 	NULL,					/* roomlist_room_serialize */
   95: 	NULL,					/* unregister_user */
   96: 	NULL,					/* send_attention */
   97: 	NULL,					/* get_attention_types */
   98: 	sizeof(PurplePluginProtocolInfo),       /* struct_size */
   99: 	NULL,					/* get_account_text_table */
  100: 	NULL,					/* initiate_media */
  101: 	NULL,					/* get_media_caps */
  102: 	NULL,					/* get_moods */
  103: 	NULL,					/* set_public_alias */
  104: 	NULL,					/* get_public_alias */
  105: 	oscar_add_buddy,		/* add_buddy_with_invite */
  106: 	NULL					/* add_buddies_with_invite */
  107: };
  108: 
  109: static PurplePluginInfo info =
  110: {
  111: 	PURPLE_PLUGIN_MAGIC,
  112: 	PURPLE_MAJOR_VERSION,
  113: 	PURPLE_MINOR_VERSION,
  114: 	PURPLE_PLUGIN_PROTOCOL,                             /**< type           */
  115: 	NULL,                                             /**< ui_requirement */
  116: 	0,                                                /**< flags          */
  117: 	NULL,                                             /**< dependencies   */
  118: 	PURPLE_PRIORITY_DEFAULT,                            /**< priority       */
  119: 
  120: 	"prpl-aim",                                       /**< id             */
  121: 	"AIM",                                            /**< name           */
  122: 	"2.13.0",                                      /**< version        */
  123: 	                                                  /**  summary        */
  124: 	N_("AIM Protocol Plugin"),
  125: 	                                                  /**  description    */
  126: 	N_("AIM Protocol Plugin"),
  127: 	"The Pidgin developers; Animadoria",                                             /**< author         */
  128: 	"http://pidgin.im/",                                     /**< homepage       */
  129: 
  130: 	NULL,                                             /**< load           */
  131: 	NULL,                                             /**< unload         */
  132: 	NULL,                                             /**< destroy        */
  133: 
  134: 	NULL,                                             /**< ui_info        */
  135: 	&prpl_info,                                       /**< extra_info     */
  136: 	NULL,
  137: 	oscar_actions,
  138: 
  139: 	/* padding */
  140: 	NULL,
  141: 	NULL,
  142: 	NULL,
  143: 	NULL
  144: };
  145: 
  146: static void
  147: init_plugin(PurplePlugin *plugin)
  148: {
  149: 	oscar_init(plugin, FALSE);
  150: }
  151: 
  152: PURPLE_INIT_PLUGIN(aim, init_plugin, info);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>