comparison src/protocols/qq/qq_proxy.c @ 13989:16102b9c5c4a

[gaim-migrate @ 16562] *Eliminated all Gtk-related code from the prpl. Notably, this included the group ("Qun") administrative dialog and a dialog for setting and viewing personal information. Code for the latter now uses the gaim UI, while the former is currently disabled. *Disabled a few non-functional/non-essential menu actions. These included: IP lookup, system logging, about dialog, and qq_buddy_menu. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 24 Jul 2006 13:39:12 +0000
parents 2be9dfa9569b
children ef8490f9e823
comparison
equal deleted inserted replaced
13988:4d5cc9e4cb12 13989:16102b9c5c4a
35 35
36 #include "utils.h" // qq_debug 36 #include "utils.h" // qq_debug
37 #include "packet_parse.h" // MAX_PACKET_SIZE 37 #include "packet_parse.h" // MAX_PACKET_SIZE
38 #include "buddy_info.h" // qq_info_query_free 38 #include "buddy_info.h" // qq_info_query_free
39 #include "buddy_opt.h" // qq_add_buddy_request_free 39 #include "buddy_opt.h" // qq_add_buddy_request_free
40 #include "group_admindlg.h" // qq_qun_info_window_free 40 #include "char_conv.h" // qq_sending_im_msg_cb
41 #include "group_free.h" // qq_group_packets_free 41 #include "group_free.h" // qq_group_packets_free
42 #include "infodlg.h" // qq_contact_info_window_free
43 #include "login_logout.h" // qq_send_packet_login 42 #include "login_logout.h" // qq_send_packet_login
44 #include "qq_proxy.h" // 43 #include "qq_proxy.h" //
45 #include "recv_core.h" // qq_pending, qq_b4_packets_free 44 #include "recv_core.h" // qq_pending, qq_b4_packets_free
46 #include "send_core.h" // qq_send_cmd 45 #include "send_core.h" // qq_send_cmd
47 #include "sendqueue.h" // qq_sendqueue_timeout_callback 46 #include "sendqueue.h" // qq_sendqueue_timeout_callback
124 addr->sin_port = htons(port); 123 addr->sin_port = htons(port);
125 return 0; 124 return 0;
126 } // _qq_fill_host 125 } // _qq_fill_host
127 126
128 /*****************************************************************************/ 127 /*****************************************************************************/
128 // set up any finalizing start-up stuff
129 static void _qq_start_services(GaimConnection *gc)
130 {
131 /* start watching for IMs about to be sent */
132 /*
133 gaim_signal_connect(gaim_conversations_get_handle(),
134 "sending-im-msg", gc,
135 GAIM_CALLBACK(qq_sending_im_msg_cb), NULL);
136 */
137 }
138
129 // the callback function after socket is built 139 // the callback function after socket is built
130 // we setup the qq protocol related configuration here 140 // we setup the qq protocol related configuration here
131 static void _qq_got_login(gpointer data, gint source, GaimInputCondition cond) 141 static void _qq_got_login(gpointer data, gint source, GaimInputCondition cond)
132 { 142 {
133 qq_data *qd; 143 qq_data *qd;
169 // Update the login progress status display 179 // Update the login progress status display
170 buf = g_strdup_printf("Login as %d", qd->uid); 180 buf = g_strdup_printf("Login as %d", qd->uid);
171 gaim_connection_update_progress(gc, buf, 1, QQ_CONNECT_STEPS); 181 gaim_connection_update_progress(gc, buf, 1, QQ_CONNECT_STEPS);
172 g_free(buf); 182 g_free(buf);
173 183
184 _qq_start_services(gc);
185
174 // qq_send_packet_login(gc); // finally ready to fire 186 // qq_send_packet_login(gc); // finally ready to fire
175 qq_send_packet_request_login_token(gc); 187 qq_send_packet_request_login_token(gc);
176 } // _qq_got_login 188 } // _qq_got_login
177 189
178 /*****************************************************************************/ 190 /*****************************************************************************/
204 qq_sendqueue_free(qd); 216 qq_sendqueue_free(qd);
205 qq_group_packets_free(qd); 217 qq_group_packets_free(qd);
206 qq_group_free_all(qd); 218 qq_group_free_all(qd);
207 qq_add_buddy_request_free(qd); 219 qq_add_buddy_request_free(qd);
208 qq_info_query_free(qd); 220 qq_info_query_free(qd);
209 qq_contact_info_window_free(qd);
210 qq_qun_info_window_free(qd);
211 qq_buddies_list_free(gc->account /* by gfhuang */, qd); 221 qq_buddies_list_free(gc->account /* by gfhuang */, qd);
212 222
213 } // _qq_common_clean 223 } // _qq_common_clean
214 224
215 /*****************************************************************************/ 225 /*****************************************************************************/