Sat, 19 May 2007 21:38:47 +0000
merge of '1442df274a24edc9a31194327bd00dfbcf478720'
and 'ce02548a6b6a545d97fb3f371506bcf1b5cc5131'
| 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 | |
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 20 | * | |
| 21 | */ | |
| 22 | ||
| 23 | /* oscarcommon.h contains prototypes for the prpl functions used by libaim.c | |
| 24 | * and libicq.c | |
| 25 | */ | |
| 26 | ||
| 27 | #include "accountopt.h" | |
| 28 | #include "internal.h" | |
| 29 | #include "prpl.h" | |
| 30 | #include "version.h" | |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
15122
diff
changeset
|
31 | #include "notify.h" |
| 15030 | 32 | |
| 33 | #define OSCAR_DEFAULT_LOGIN_SERVER "login.oscar.aol.com" | |
| 34 | #define OSCAR_DEFAULT_LOGIN_PORT 5190 | |
|
15122
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
35 | #ifndef _WIN32 |
| 15030 | 36 | #define OSCAR_DEFAULT_CUSTOM_ENCODING "ISO-8859-1" |
|
15122
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
37 | #else |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
38 | #define OSCAR_DEFAULT_CUSTOM_ENCODING oscar_get_locale_charset() |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
39 | #endif |
| 15030 | 40 | #define OSCAR_DEFAULT_AUTHORIZATION TRUE |
| 41 | #define OSCAR_DEFAULT_HIDE_IP TRUE | |
| 42 | #define OSCAR_DEFAULT_WEB_AWARE FALSE | |
| 43 | #define OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY FALSE | |
| 44 | ||
|
15122
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
45 | #ifdef _WIN32 |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
46 | const char *oscar_get_locale_charset(void); |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
47 | #endif |
| 15884 | 48 | const char *oscar_list_icon_icq(PurpleAccount *a, PurpleBuddy *b); |
| 49 | const char *oscar_list_icon_aim(PurpleAccount *a, PurpleBuddy *b); | |
| 50 | const char* oscar_list_emblem(PurpleBuddy *b); | |
| 51 | char *oscar_status_text(PurpleBuddy *b); | |
| 52 | void oscar_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full); | |
| 53 | GList *oscar_status_types(PurpleAccount *account); | |
| 54 | GList *oscar_blist_node_menu(PurpleBlistNode *node); | |
| 55 | GList *oscar_chat_info(PurpleConnection *gc); | |
| 56 | GHashTable *oscar_chat_info_defaults(PurpleConnection *gc, const char *chat_name); | |
| 57 | void oscar_login(PurpleAccount *account); | |
| 58 | void oscar_close(PurpleConnection *gc); | |
| 59 | int oscar_send_im(PurpleConnection *gc, const char *name, const char *message, PurpleMessageFlags imflags); | |
| 60 | void oscar_set_info(PurpleConnection *gc, const char *rawinfo); | |
| 61 | unsigned int oscar_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state); | |
| 62 | void oscar_get_info(PurpleConnection *gc, const char *name); | |
| 63 | void oscar_set_status(PurpleAccount *account, PurpleStatus *status); | |
| 64 | void oscar_set_idle(PurpleConnection *gc, int time); | |
| 65 | void oscar_change_passwd(PurpleConnection *gc, const char *old, const char *new); | |
| 66 | void oscar_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); | |
| 67 | void oscar_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); | |
| 68 | void oscar_add_permit(PurpleConnection *gc, const char *who); | |
| 69 | void oscar_add_deny(PurpleConnection *gc, const char *who); | |
| 70 | void oscar_rem_permit(PurpleConnection *gc, const char *who); | |
| 71 | void oscar_rem_deny(PurpleConnection *gc, const char *who); | |
| 72 | void oscar_set_permit_deny(PurpleConnection *gc); | |
| 73 | void oscar_join_chat(PurpleConnection *gc, GHashTable *data); | |
| 15030 | 74 | char *oscar_get_chat_name(GHashTable *data); |
| 15884 | 75 | void oscar_chat_invite(PurpleConnection *gc, int id, const char *message, const char *name); |
| 76 | void oscar_chat_leave(PurpleConnection *gc, int id); | |
| 77 | int oscar_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); | |
| 78 | void oscar_keepalive(PurpleConnection *gc); | |
| 79 | void oscar_alias_buddy(PurpleConnection *gc, const char *name, const char *alias); | |
| 80 | void oscar_move_buddy(PurpleConnection *gc, const char *name, const char *old_group, const char *new_group); | |
| 81 | void oscar_rename_group(PurpleConnection *gc, const char *old_name, PurpleGroup *group, GList *moved_buddies); | |
| 82 | void oscar_convo_closed(PurpleConnection *gc, const char *who); | |
| 83 | const char *oscar_normalize(const PurpleAccount *account, const char *str); | |
|
16538
c7e61e2917c9
Updates for the account buddy icon stuff. This doesn't yet work fully (and maybe not even partly), but it compiles.
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
84 | void oscar_set_icon(PurpleConnection *gc, PurpleStoredImage *img); |
| 15884 | 85 | gboolean oscar_can_receive_file(PurpleConnection *gc, const char *who); |
| 86 | void oscar_send_file(PurpleConnection *gc, const char *who, const char *file); | |
| 87 | PurpleXfer *oscar_new_xfer(PurpleConnection *gc, const char *who); | |
| 88 | gboolean oscar_offline_message(const PurpleBuddy *buddy); | |
| 89 | GList *oscar_actions(PurplePlugin *plugin, gpointer context); | |
| 90 | void oscar_init(PurplePluginProtocolInfo *prpl_info); |