Пример #1
0
void
msn_session_set_public_alias (MsnSession *session,
                              const gchar *value)
{
    msn_session_set_prp (session, "MFN",
                         value ? value : msn_session_get_username (session));
}
Пример #2
0
static void
process_get_profile (RoamingRequest *roaming_request,
                     char *body)
{
    gchar *value;

    pn_parse_xml_tag (body, "ResourceID", 
                      &roaming_request->roaming_session->resource_id);

    pn_parse_xml_tag (body, "DisplayName", &value);
    if (value)
    {
        msn_session_set_prp (roaming_request->roaming_session->session,
                             "MFN", value);
        g_free (value);
    }

#ifndef PECAN_USE_PSM
    if (!strstr (body, "<PersonalStatus />"))
        pn_parse_xml_tag (body, "PersonalStatus", &value);
    if (value)
    {
        PurpleAccount *account;
        account = msn_session_get_user_data (roaming_request->roaming_session->session);
        purple_account_set_string (account, "personal_message", value);
        g_free (value);
    }
#endif /* PECAN_USE_PSM */
}
Пример #3
0
void
msn_session_set_public_alias (MsnSession *session,
                              const gchar *value)
{
    msn_session_set_prp (session, "MFN",
                         value ? value : msn_session_get_username (session));

    pn_roaming_session_request (session->roaming_session,
                                PN_UPDATE_PROFILE,
                                value, NULL);
}