How we can change the status of account?

Maulik Gandhi maulik.a2z at gmail.com
Fri Jul 2 05:59:31 EDT 2010


     status=purple_savedstatus_new("MyStatus",PURPLE_STATUS_AVAILABLE);
    purple_savedstatus_set_message(status,"Hello world ... Testing :)");
    purple_savedstatus_activate_for_account(status,account);

or if u have used this status before  then u can use it like this

    status = purple_savedstatus_find("MyStatus");
    if(status==NULL)
        {
        status=purple_savedstatus_new("MyStatus",PURPLE_STATUS_AVAILABLE);

        }
    purple_savedstatus_set_message(status,"Hello world ... Testing :)");
    purple_savedstatus_activate_for_account(status,account);

have anyone worked on audio call on nullclient??
pls i need help on that...




On Fri, Jul 2, 2010 at 3:20 PM, sandeep <sandeep at konstantinfo.com> wrote:

> Hello Support,
>
>
> We are using pidgin nullclient.c to connect different IM protocols
> Now we are facing problems in updating status of login account user.
>
>
> We have status.h & status.c for status function...
>
>
> const status_primitive_map[] =
> {
> { PURPLE_STATUS_UNSET, "unset", N_("Unset") },
> { PURPLE_STATUS_OFFLINE, "offline", N_("Offline") },
> { PURPLE_STATUS_AVAILABLE, "available", N_("Available") },
> { PURPLE_STATUS_UNAVAILABLE, "unavailable", N_("Do not disturb") },
> { PURPLE_STATUS_INVISIBLE, "invisible", N_("Invisible") },
> { PURPLE_STATUS_AWAY, "away", N_("Away") },
> { PURPLE_STATUS_EXTENDED_AWAY, "extended_away", N_("Extended away") },
> { PURPLE_STATUS_MOBILE, "mobile", N_("Mobile") },
> { PURPLE_STATUS_TUNE, "tune", N_("Listening to music") }
> };
>
>
> What will be the best way to integrate these status map with nullclient.c?
>
>
> Thanks for your understanding...
>
>
> Regards,
> Sandeep Verma
>
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/devel
>
>


-- 
Maulik Gandhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20100702/4b3f328c/attachment.html>


More information about the Devel mailing list