Mercurial > pidgin
annotate libpurple/protocols/oscar/oscarcommon.h @ 30987:1ab50afb7925
It doesn't seem like we use this kv value, so might as well save the
memory for it.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 02 Dec 2010 05:16:27 +0000 |
parents | 04ffd3b52283 |
children | b39a2bd81566 |
rev | line source |
---|---|
15822 | 1 /* purple |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
2 * |
15822 | 3 * Purple is the legal property of its developers, whose names are too numerous |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
4 * to list here. Please refer to the COPYRIGHT file distributed with this |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
5 * source distribution. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
6 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
7 * This program is free software; you can redistribute it and/or modify |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * (at your option) any later version. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * GNU General Public License for more details. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU General Public License |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * along with this program; if not, write to the Free Software |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19577
diff
changeset
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 /* oscarcommon.h contains prototypes for the prpl functions used by libaim.c |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 * and libicq.c |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
25 */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
26 |
28770
259bbfb423d4
Fix all the remaining files for which internal.h doesn't end up being the first include.
Paul Aurich <paul@darkrain42.org>
parents:
28502
diff
changeset
|
27 #include "internal.h" |
259bbfb423d4
Fix all the remaining files for which internal.h doesn't end up being the first include.
Paul Aurich <paul@darkrain42.org>
parents:
28502
diff
changeset
|
28 |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
29 #include "accountopt.h" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
30 #include "prpl.h" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
31 #include "version.h" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
32 #include "notify.h" |
29440
1fb503adb2ae
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@wiktel.com>
parents:
23311
diff
changeset
|
33 #include "status.h" |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
34 |
30647
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
35 #define AIM_DEFAULT_LOGIN_SERVER "login.oscar.aol.com" |
30961
04ffd3b52283
Properly handle an AIM login server of login.messaging.aol.com. Fixes #12948.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30903
diff
changeset
|
36 #define AIM_ALT_LOGIN_SERVER "login.messaging.aol.com" |
30647
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
37 #define AIM_DEFAULT_SSL_LOGIN_SERVER "slogin.oscar.aol.com" |
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
38 #define ICQ_DEFAULT_LOGIN_SERVER "login.icq.com" |
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
39 #define ICQ_DEFAULT_SSL_LOGIN_SERVER "slogin.icq.com" |
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
40 |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
41 #define OSCAR_DEFAULT_LOGIN_PORT 5190 |
30647
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
42 |
30903
f8f853ab3aba
A followup commit to d849dc2a852a4ffdd345a150f0b88ab37de36e36.
ivan.komarov@soc.pidgin.im
parents:
30647
diff
changeset
|
43 #define OSCAR_OPPORTUNISTIC_ENCRYPTION "opportunistic_encryption" |
f8f853ab3aba
A followup commit to d849dc2a852a4ffdd345a150f0b88ab37de36e36.
ivan.komarov@soc.pidgin.im
parents:
30647
diff
changeset
|
44 #define OSCAR_REQUIRE_ENCRYPTION "require_encryption" |
f8f853ab3aba
A followup commit to d849dc2a852a4ffdd345a150f0b88ab37de36e36.
ivan.komarov@soc.pidgin.im
parents:
30647
diff
changeset
|
45 #define OSCAR_NO_ENCRYPTION "no_encryption" |
f8f853ab3aba
A followup commit to d849dc2a852a4ffdd345a150f0b88ab37de36e36.
ivan.komarov@soc.pidgin.im
parents:
30647
diff
changeset
|
46 |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
47 #ifndef _WIN32 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
48 #define OSCAR_DEFAULT_CUSTOM_ENCODING "ISO-8859-1" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
49 #else |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
50 #define OSCAR_DEFAULT_CUSTOM_ENCODING oscar_get_locale_charset() |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
51 #endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
52 #define OSCAR_DEFAULT_AUTHORIZATION TRUE |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
53 #define OSCAR_DEFAULT_HIDE_IP TRUE |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
54 #define OSCAR_DEFAULT_WEB_AWARE FALSE |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
55 #define OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY FALSE |
23311
f1a0258b44f4
Added paramater to aim_send_login() to allow control over whether we want
Evan Schoenberg <evan.s@dreskin.net>
parents:
19681
diff
changeset
|
56 #define OSCAR_DEFAULT_ALLOW_MULTIPLE_LOGINS TRUE |
28273
27691d6bafc6
Per discussions in devel@conference.pidgin.im that saw no objections, make SSL
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27161
diff
changeset
|
57 #define OSCAR_DEFAULT_USE_CLIENTLOGIN TRUE |
30903
f8f853ab3aba
A followup commit to d849dc2a852a4ffdd345a150f0b88ab37de36e36.
ivan.komarov@soc.pidgin.im
parents:
30647
diff
changeset
|
58 #define OSCAR_DEFAULT_ENCRYPTION OSCAR_OPPORTUNISTIC_ENCRYPTION |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
59 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
60 #ifdef _WIN32 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
61 const char *oscar_get_locale_charset(void); |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
62 #endif |
29440
1fb503adb2ae
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@wiktel.com>
parents:
23311
diff
changeset
|
63 PurpleMood* oscar_get_purple_moods(PurpleAccount *account); |
15822 | 64 const char *oscar_list_icon_icq(PurpleAccount *a, PurpleBuddy *b); |
65 const char *oscar_list_icon_aim(PurpleAccount *a, PurpleBuddy *b); | |
66 const char* oscar_list_emblem(PurpleBuddy *b); | |
67 char *oscar_status_text(PurpleBuddy *b); | |
68 void oscar_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full); | |
69 GList *oscar_status_types(PurpleAccount *account); | |
70 GList *oscar_blist_node_menu(PurpleBlistNode *node); | |
71 GList *oscar_chat_info(PurpleConnection *gc); | |
72 GHashTable *oscar_chat_info_defaults(PurpleConnection *gc, const char *chat_name); | |
73 void oscar_login(PurpleAccount *account); | |
74 void oscar_close(PurpleConnection *gc); | |
75 int oscar_send_im(PurpleConnection *gc, const char *name, const char *message, PurpleMessageFlags imflags); | |
76 void oscar_set_info(PurpleConnection *gc, const char *rawinfo); | |
77 unsigned int oscar_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state); | |
78 void oscar_get_info(PurpleConnection *gc, const char *name); | |
79 void oscar_set_status(PurpleAccount *account, PurpleStatus *status); | |
80 void oscar_set_idle(PurpleConnection *gc, int time); | |
81 void oscar_change_passwd(PurpleConnection *gc, const char *old, const char *new); | |
82 void oscar_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); | |
83 void oscar_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); | |
84 void oscar_add_permit(PurpleConnection *gc, const char *who); | |
85 void oscar_add_deny(PurpleConnection *gc, const char *who); | |
86 void oscar_rem_permit(PurpleConnection *gc, const char *who); | |
87 void oscar_rem_deny(PurpleConnection *gc, const char *who); | |
88 void oscar_join_chat(PurpleConnection *gc, GHashTable *data); | |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
89 char *oscar_get_chat_name(GHashTable *data); |
15822 | 90 void oscar_chat_invite(PurpleConnection *gc, int id, const char *message, const char *name); |
91 void oscar_chat_leave(PurpleConnection *gc, int id); | |
92 int oscar_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); | |
93 void oscar_keepalive(PurpleConnection *gc); | |
94 void oscar_alias_buddy(PurpleConnection *gc, const char *name, const char *alias); | |
95 void oscar_move_buddy(PurpleConnection *gc, const char *name, const char *old_group, const char *new_group); | |
96 void oscar_rename_group(PurpleConnection *gc, const char *old_name, PurpleGroup *group, GList *moved_buddies); | |
97 void oscar_convo_closed(PurpleConnection *gc, const char *who); | |
98 const char *oscar_normalize(const PurpleAccount *account, const char *str); | |
16390
4fc51a87ce42
Updates for the account buddy icon stuff. This doesn't yet work fully (and maybe not even partly), but it compiles.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
99 void oscar_set_icon(PurpleConnection *gc, PurpleStoredImage *img); |
18755
84d53c3c699d
Some changes from Matthew Goldstein and I to not automatically remove
Mark Doliner <mark@kingant.net>
parents:
16390
diff
changeset
|
100 void oscar_remove_group(PurpleConnection *gc, PurpleGroup *group); |
15822 | 101 gboolean oscar_can_receive_file(PurpleConnection *gc, const char *who); |
102 void oscar_send_file(PurpleConnection *gc, const char *who, const char *file); | |
103 PurpleXfer *oscar_new_xfer(PurpleConnection *gc, const char *who); | |
104 gboolean oscar_offline_message(const PurpleBuddy *buddy); | |
27161
7054f810b0f9
Check in code that connects to oscar using clientLogin. This is the
Mark Doliner <mark@kingant.net>
parents:
25246
diff
changeset
|
105 void oscar_format_username(PurpleConnection *gc, const char *nick); |
15822 | 106 GList *oscar_actions(PurplePlugin *plugin, gpointer context); |
30647
4297feb30ad1
Merged everything related to ICQ server changes.
ivan.komarov@soc.pidgin.im
parents:
30376
diff
changeset
|
107 void oscar_init(PurplePlugin *plugin, gboolean is_icq); |