Mercurial > pidgin
comparison src/protocols/msn/notification.c @ 19795:38e4a4b404e5
[gaim-migrate @ 16685]
add delte group SOAP operation code ok
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Thu, 10 Aug 2006 15:43:55 +0000 |
parents | b22d13f55232 |
children | 3a15b4e5c336 |
comparison
equal
deleted
inserted
replaced
19794:b22d13f55232 | 19795:38e4a4b404e5 |
---|---|
299 account = session->account; | 299 account = session->account; |
300 | 300 |
301 g_snprintf(proto_str, sizeof(proto_str), "MSNP%d", session->protocol_ver); | 301 g_snprintf(proto_str, sizeof(proto_str), "MSNP%d", session->protocol_ver); |
302 | 302 |
303 for (i = 1; i < cmd->param_count -1; i++){ | 303 for (i = 1; i < cmd->param_count -1; i++){ |
304 gaim_debug_info("MaYuan","%s\,proto_str:%s\n",cmd->params[i],proto_str); | 304 gaim_debug_info("MaYuan","%s,proto_str:%s\n",cmd->params[i],proto_str); |
305 if (strcmp(cmd->params[i], proto_str) >= 0) { | 305 if (strcmp(cmd->params[i], proto_str) >= 0) { |
306 protocol_supported = TRUE; | 306 protocol_supported = TRUE; |
307 break; | 307 break; |
308 } | 308 } |
309 } | 309 } |
529 rml_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 529 rml_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
530 { | 530 { |
531 MsnTransaction *trans; | 531 MsnTransaction *trans; |
532 char * payload; | 532 char * payload; |
533 | 533 |
534 gaim_debug_info("MaYuan","Process ADL\n"); | |
535 #if 0 | |
534 trans = msn_transaction_new(cmdproc, "RML",""); | 536 trans = msn_transaction_new(cmdproc, "RML",""); |
535 | 537 |
536 msn_transaction_set_payload(trans, payload, strlen(payload)); | 538 msn_transaction_set_payload(trans, payload, strlen(payload)); |
537 | 539 |
538 msn_cmdproc_send_trans(cmdproc, trans); | 540 msn_cmdproc_send_trans(cmdproc, trans); |
541 #endif | |
539 } | 542 } |
540 | 543 |
541 static void | 544 static void |
542 add_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 545 add_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
543 { | 546 { |
1412 | 1415 |
1413 g_strfreev(tokens); | 1416 g_strfreev(tokens); |
1414 } | 1417 } |
1415 | 1418 |
1416 g_strfreev(elems); | 1419 g_strfreev(elems); |
1420 /* test code for add group*/ | |
1421 // msn_add_group(session,"hello"); | |
1417 } | 1422 } |
1418 | 1423 |
1419 static void | 1424 static void |
1420 email_msg(MsnCmdProc *cmdproc, MsnMessage *msg) | 1425 email_msg(MsnCmdProc *cmdproc, MsnMessage *msg) |
1421 { | 1426 { |
1589 msn_table_add_cmd(cbs_table, NULL, "GCF", gcf_cmd); | 1594 msn_table_add_cmd(cbs_table, NULL, "GCF", gcf_cmd); |
1590 msn_table_add_cmd(cbs_table, NULL, "SBS", sbs_cmd); | 1595 msn_table_add_cmd(cbs_table, NULL, "SBS", sbs_cmd); |
1591 msn_table_add_cmd(cbs_table, NULL, "NOT", not_cmd); | 1596 msn_table_add_cmd(cbs_table, NULL, "NOT", not_cmd); |
1592 | 1597 |
1593 msn_table_add_cmd(cbs_table, NULL, "CHL", chl_cmd); | 1598 msn_table_add_cmd(cbs_table, NULL, "CHL", chl_cmd); |
1594 msn_table_add_cmd(cbs_table, NULL, "REM", rem_cmd); | 1599 msn_table_add_cmd(cbs_table, NULL, "RML", rml_cmd); |
1595 msn_table_add_cmd(cbs_table, NULL, "ADL", adl_cmd); | 1600 msn_table_add_cmd(cbs_table, NULL, "ADL", adl_cmd); |
1596 | 1601 |
1597 msn_table_add_cmd(cbs_table, NULL, "QRY", NULL); | 1602 msn_table_add_cmd(cbs_table, NULL, "QRY", NULL); |
1598 msn_table_add_cmd(cbs_table, NULL, "QNG", NULL); | 1603 msn_table_add_cmd(cbs_table, NULL, "QNG", NULL); |
1599 msn_table_add_cmd(cbs_table, NULL, "FLN", fln_cmd); | 1604 msn_table_add_cmd(cbs_table, NULL, "FLN", fln_cmd); |