Thu, 28 Sep 2017 20:33:59 -0500
closing merged branch
| 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:
19753
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 15030 | 20 | * |
| 21 | */ | |
| 22 | ||
| 23 | /* oscarcommon.h contains prototypes for the prpl functions used by libaim.c | |
| 24 | * and libicq.c | |
| 25 | */ | |
| 26 | ||
|
29106
51c7b2177e42
Fix all the remaining files for which internal.h doesn't end up being the first include.
Paul Aurich <darkrain42@pidgin.im>
parents:
28817
diff
changeset
|
27 | #include "internal.h" |
|
51c7b2177e42
Fix all the remaining files for which internal.h doesn't end up being the first include.
Paul Aurich <darkrain42@pidgin.im>
parents:
28817
diff
changeset
|
28 | |
| 15030 | 29 | #include "accountopt.h" |
| 30 | #include "prpl.h" | |
| 31 | #include "version.h" | |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
15122
diff
changeset
|
32 | #include "notify.h" |
|
24912
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
23454
diff
changeset
|
33 | #include "status.h" |
| 15030 | 34 | |
|
30888
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
35 | #define AIM_DEFAULT_LOGIN_SERVER "login.oscar.aol.com" |
|
31156
ccbe6a14ed5f
Apply my specific AIM login fix listed below to the 2.7.7 branch.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
31100
diff
changeset
|
36 | #define AIM_ALT_LOGIN_SERVER "login.messaging.aol.com" |
|
30888
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
37 | #define AIM_DEFAULT_SSL_LOGIN_SERVER "slogin.oscar.aol.com" |
|
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
38 | #define ICQ_DEFAULT_LOGIN_SERVER "login.icq.com" |
|
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
39 | #define ICQ_DEFAULT_SSL_LOGIN_SERVER "slogin.icq.com" |
|
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
40 | |
|
37697
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
41 | #define AIM_DEFAULT_KDC_SERVER "kdc.uas.aol.com" |
|
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
42 | #define AIM_DEFAULT_KDC_PORT 443 |
|
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
43 | |
|
38208
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
44 | /* |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
45 | * Using clientLogin requires a developer ID. This key is for libpurple. |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
46 | * It is the default key for all libpurple-based clients. AOL encourages |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
47 | * UIs (especially ones with lots of users) to override this with their |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
48 | * own key. |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
49 | */ |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
50 | #define ICQ_DEFAULT_DIST_ID 1553 |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
51 | #define ICQ_DEFAULT_CLIENT_KEY "ma15d7JTxbmVG-RP" |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
52 | #define AIM_DEFAULT_DIST_ID 1717 |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
53 | #define AIM_DEFAULT_CLIENT_KEY "ma19CwYN9i9Mw5nY" |
|
31ecbdda7ff3
aim: Switch to new libpurple/finch distid/devids provided by AOL
dx <dx@dxzone.com.ar>
parents:
37697
diff
changeset
|
54 | |
| 15030 | 55 | #define OSCAR_DEFAULT_LOGIN_PORT 5190 |
|
30888
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
56 | |
|
31100
c31129fd32ad
A followup commit to 5d0b140eab3e0acd0515c6ac215ed5accd68e3f8.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30888
diff
changeset
|
57 | #define OSCAR_OPPORTUNISTIC_ENCRYPTION "opportunistic_encryption" |
|
c31129fd32ad
A followup commit to 5d0b140eab3e0acd0515c6ac215ed5accd68e3f8.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30888
diff
changeset
|
58 | #define OSCAR_REQUIRE_ENCRYPTION "require_encryption" |
|
c31129fd32ad
A followup commit to 5d0b140eab3e0acd0515c6ac215ed5accd68e3f8.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30888
diff
changeset
|
59 | #define OSCAR_NO_ENCRYPTION "no_encryption" |
|
c31129fd32ad
A followup commit to 5d0b140eab3e0acd0515c6ac215ed5accd68e3f8.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30888
diff
changeset
|
60 | |
|
37697
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
61 | #define OSCAR_MD5_LOGIN "md5_login" |
|
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
62 | #define OSCAR_CLIENT_LOGIN "client_login" |
|
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
63 | #define OSCAR_KERBEROS_LOGIN "kerberos_login" |
|
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
64 | |
|
15122
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
65 | #ifndef _WIN32 |
| 15030 | 66 | #define OSCAR_DEFAULT_CUSTOM_ENCODING "ISO-8859-1" |
|
15122
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
67 | #else |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
68 | #define OSCAR_DEFAULT_CUSTOM_ENCODING oscar_get_locale_charset() |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
69 | #endif |
| 15030 | 70 | #define OSCAR_DEFAULT_AUTHORIZATION TRUE |
| 71 | #define OSCAR_DEFAULT_HIDE_IP TRUE | |
| 72 | #define OSCAR_DEFAULT_WEB_AWARE FALSE | |
| 73 | #define OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY FALSE | |
|
23454
d8721c84f49c
Added paramater to aim_send_login() to allow control over whether we want
Evan Schoenberg <evands@pidgin.im>
parents:
19859
diff
changeset
|
74 | #define OSCAR_DEFAULT_ALLOW_MULTIPLE_LOGINS TRUE |
|
37697
eda46d7224d7
oscar: Adding kerberos-based authentication
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents:
31599
diff
changeset
|
75 | #define OSCAR_DEFAULT_LOGIN OSCAR_CLIENT_LOGIN |
|
31100
c31129fd32ad
A followup commit to 5d0b140eab3e0acd0515c6ac215ed5accd68e3f8.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30888
diff
changeset
|
76 | #define OSCAR_DEFAULT_ENCRYPTION OSCAR_OPPORTUNISTIC_ENCRYPTION |
| 15030 | 77 | |
|
15122
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
78 | #ifdef _WIN32 |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
79 | const char *oscar_get_locale_charset(void); |
|
58eab9b89e86
[gaim-migrate @ 17844]
Daniel Atallah <datallah@pidgin.im>
parents:
15030
diff
changeset
|
80 | #endif |
|
24912
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
23454
diff
changeset
|
81 | PurpleMood* oscar_get_purple_moods(PurpleAccount *account); |
| 15884 | 82 | const char *oscar_list_icon_icq(PurpleAccount *a, PurpleBuddy *b); |
| 83 | const char *oscar_list_icon_aim(PurpleAccount *a, PurpleBuddy *b); | |
| 84 | const char* oscar_list_emblem(PurpleBuddy *b); | |
| 85 | char *oscar_status_text(PurpleBuddy *b); | |
| 86 | void oscar_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full); | |
| 87 | GList *oscar_status_types(PurpleAccount *account); | |
| 88 | GList *oscar_blist_node_menu(PurpleBlistNode *node); | |
| 89 | GList *oscar_chat_info(PurpleConnection *gc); | |
| 90 | GHashTable *oscar_chat_info_defaults(PurpleConnection *gc, const char *chat_name); | |
| 91 | void oscar_login(PurpleAccount *account); | |
| 92 | void oscar_close(PurpleConnection *gc); | |
| 93 | int oscar_send_im(PurpleConnection *gc, const char *name, const char *message, PurpleMessageFlags imflags); | |
| 94 | void oscar_set_info(PurpleConnection *gc, const char *rawinfo); | |
| 95 | unsigned int oscar_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state); | |
| 96 | void oscar_get_info(PurpleConnection *gc, const char *name); | |
| 97 | void oscar_set_status(PurpleAccount *account, PurpleStatus *status); | |
| 98 | void oscar_set_idle(PurpleConnection *gc, int time); | |
| 99 | void oscar_change_passwd(PurpleConnection *gc, const char *old, const char *new); | |
|
31599
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31417
diff
changeset
|
100 | void oscar_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group, const char *msg); |
| 15884 | 101 | void oscar_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); |
| 102 | void oscar_add_permit(PurpleConnection *gc, const char *who); | |
| 103 | void oscar_add_deny(PurpleConnection *gc, const char *who); | |
| 104 | void oscar_rem_permit(PurpleConnection *gc, const char *who); | |
| 105 | void oscar_rem_deny(PurpleConnection *gc, const char *who); | |
| 106 | void oscar_join_chat(PurpleConnection *gc, GHashTable *data); | |
| 15030 | 107 | char *oscar_get_chat_name(GHashTable *data); |
| 15884 | 108 | void oscar_chat_invite(PurpleConnection *gc, int id, const char *message, const char *name); |
| 109 | void oscar_chat_leave(PurpleConnection *gc, int id); | |
| 110 | int oscar_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); | |
| 111 | void oscar_keepalive(PurpleConnection *gc); | |
| 112 | void oscar_alias_buddy(PurpleConnection *gc, const char *name, const char *alias); | |
| 113 | void oscar_move_buddy(PurpleConnection *gc, const char *name, const char *old_group, const char *new_group); | |
| 114 | void oscar_rename_group(PurpleConnection *gc, const char *old_name, PurpleGroup *group, GList *moved_buddies); | |
| 115 | void oscar_convo_closed(PurpleConnection *gc, const char *who); | |
| 116 | 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
|
117 | void oscar_set_icon(PurpleConnection *gc, PurpleStoredImage *img); |
|
19050
78ed2f8cd58d
Some changes from Matthew Goldstein and I to not automatically remove
Mark Doliner <markdoliner@pidgin.im>
parents:
16538
diff
changeset
|
118 | void oscar_remove_group(PurpleConnection *gc, PurpleGroup *group); |
| 15884 | 119 | gboolean oscar_can_receive_file(PurpleConnection *gc, const char *who); |
| 120 | void oscar_send_file(PurpleConnection *gc, const char *who, const char *file); | |
| 121 | PurpleXfer *oscar_new_xfer(PurpleConnection *gc, const char *who); | |
| 122 | gboolean oscar_offline_message(const PurpleBuddy *buddy); | |
| 123 | GList *oscar_actions(PurplePlugin *plugin, gpointer context); | |
|
30888
21a931e7747e
Merged everything related to ICQ server changes.
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
30653
diff
changeset
|
124 | void oscar_init(PurplePlugin *plugin, gboolean is_icq); |