Mercurial > pidgin
comparison libpurple/protocols/jabber/google.c @ 28650:9ae3e70a327b
jabber: More namespaces! This is a good stopping point for now.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 27 Nov 2009 17:07:19 +0000 |
parents | 9feec7d1d95c |
children | 531f8367025e c4f836780e1c cb8b53a6f238 |
comparison
equal
deleted
inserted
replaced
28649:8d8a1afc4268 | 28650:9ae3e70a327b |
---|---|
908 jabber_iq_send(iq); | 908 jabber_iq_send(iq); |
909 | 909 |
910 purple_debug_misc("jabber", | 910 purple_debug_misc("jabber", |
911 "Got new mail notification. Sending request for more info\n"); | 911 "Got new mail notification. Sending request for more info\n"); |
912 | 912 |
913 iq = jabber_iq_new_query(js, JABBER_IQ_GET, "google:mail:notify"); | 913 iq = jabber_iq_new_query(js, JABBER_IQ_GET, NS_GOOGLE_MAIL_NOTIFY); |
914 jabber_iq_set_callback(iq, jabber_gmail_parse, NULL); | 914 jabber_iq_set_callback(iq, jabber_gmail_parse, NULL); |
915 query = xmlnode_get_child(iq->node, "query"); | 915 query = xmlnode_get_child(iq->node, "query"); |
916 | 916 |
917 if (js->gmail_last_time) | 917 if (js->gmail_last_time) |
918 xmlnode_set_attrib(query, "newer-than-time", js->gmail_last_time); | 918 xmlnode_set_attrib(query, "newer-than-time", js->gmail_last_time); |
942 xmlnode_set_namespace(usersetting, "google:setting"); | 942 xmlnode_set_namespace(usersetting, "google:setting"); |
943 mailnotifications = xmlnode_new_child(usersetting, "mailnotifications"); | 943 mailnotifications = xmlnode_new_child(usersetting, "mailnotifications"); |
944 xmlnode_set_attrib(mailnotifications, "value", "true"); | 944 xmlnode_set_attrib(mailnotifications, "value", "true"); |
945 jabber_iq_send(iq); | 945 jabber_iq_send(iq); |
946 | 946 |
947 iq = jabber_iq_new_query(js, JABBER_IQ_GET, "google:mail:notify"); | 947 iq = jabber_iq_new_query(js, JABBER_IQ_GET, NS_GOOGLE_MAIL_NOTIFY); |
948 jabber_iq_set_callback(iq, jabber_gmail_parse, NULL); | 948 jabber_iq_set_callback(iq, jabber_gmail_parse, NULL); |
949 jabber_iq_send(iq); | 949 jabber_iq_send(iq); |
950 } | 950 } |
951 | 951 |
952 void jabber_google_roster_init(JabberStream *js) | 952 void jabber_google_roster_init(JabberStream *js) |