comparison src/toc.c @ 1401:bf041349b11e

[gaim-migrate @ 1411] abliity to set accounts away independent of each other. also allows for all the other states (like in yahoo and icq). probably breaks MSN, so don't use it until rob fixes it. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 10 Jan 2001 22:15:24 +0000
parents 829242e7348c
children 96e93119268d
comparison
equal deleted inserted replaced
1400:476b24cdfa32 1401:bf041349b11e
44 #include "pixmaps/aol_icon.xpm" 44 #include "pixmaps/aol_icon.xpm"
45 #include "pixmaps/away_icon.xpm" 45 #include "pixmaps/away_icon.xpm"
46 #include "pixmaps/dt_icon.xpm" 46 #include "pixmaps/dt_icon.xpm"
47 #include "pixmaps/free_icon.xpm" 47 #include "pixmaps/free_icon.xpm"
48 48
49 #define REVISION "gaim:$Revision: 1393 $" 49 #define REVISION "gaim:$Revision: 1411 $"
50 50
51 #define TYPE_SIGNON 1 51 #define TYPE_SIGNON 1
52 #define TYPE_DATA 2 52 #define TYPE_DATA 2
53 #define TYPE_ERROR 3 53 #define TYPE_ERROR 3
54 #define TYPE_SIGNOFF 4 54 #define TYPE_SIGNOFF 4
710 debug_printf("Searching for: %s,%s,%s,%s,%s,%s,%s\n", first, middle, last, maiden, 710 debug_printf("Searching for: %s,%s,%s,%s,%s,%s,%s\n", first, middle, last, maiden,
711 city, state, country); 711 city, state, country);
712 sflap_send(g, buf, -1, TYPE_DATA); 712 sflap_send(g, buf, -1, TYPE_DATA);
713 } 713 }
714 714
715 static void toc_set_away(struct gaim_connection *g, char *message) 715 static void toc_set_away(struct gaim_connection *g, char *state, char *message)
716 { 716 {
717 char buf[MSG_LEN]; 717 char buf[MSG_LEN];
718 if (message) { 718 if (message) {
719 escape_text(message); 719 escape_text(message);
720 g_snprintf(buf, MSG_LEN, "toc_set_away \"%s\"", message); 720 g_snprintf(buf, MSG_LEN, "toc_set_away \"%s\"", message);
1167 static void toc_do_new_user() 1167 static void toc_do_new_user()
1168 { 1168 {
1169 open_url(NULL, "http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no"); 1169 open_url(NULL, "http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no");
1170 } 1170 }
1171 1171
1172 static GList *toc_away_states()
1173 {
1174 return g_list_append(NULL, GAIM_AWAY_CUSTOM);
1175 }
1176
1172 void toc_init(struct prpl *ret) 1177 void toc_init(struct prpl *ret)
1173 { 1178 {
1174 ret->protocol = PROTO_TOC; 1179 ret->protocol = PROTO_TOC;
1175 ret->options = OPT_PROTO_HTML; 1180 ret->options = OPT_PROTO_HTML;
1176 ret->name = toc_name; 1181 ret->name = toc_name;
1177 ret->list_icon = toc_list_icon; 1182 ret->list_icon = toc_list_icon;
1183 ret->away_states = toc_away_states;
1178 ret->action_menu = toc_action_menu; 1184 ret->action_menu = toc_action_menu;
1179 ret->user_opts = toc_user_opts; 1185 ret->user_opts = toc_user_opts;
1180 ret->draw_new_user = toc_draw_new_user; 1186 ret->draw_new_user = toc_draw_new_user;
1181 ret->do_new_user = toc_do_new_user; 1187 ret->do_new_user = toc_do_new_user;
1182 ret->login = toc_login; 1188 ret->login = toc_login;