[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    [kopete-devel] How to unset an account mood in Kopete 0.70.90
From:       Romain <romainguinot () gmail ! com>
Date:       2009-09-30 12:17:57
Message-ID: ae44b51f0909300517h198360acoe0daaea1d0d4cbee () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I've set a mood for myself on a jabber account, but now would like to remove
it.
It seems clicking "None" does not work, at least not immediately since other
colleagues still see the mood with different clients (Gajim, Pidgin..; all
linux laptops).

Should the change be immediate ?

I've seen in protocols/jabber/jabberaccount.cpp (1109-1122) this snippet of
code :

void JabberAccount::slotSetMood()
{
    KAction *action = (KAction *)sender();
    Mood::Type type = (Mood::Type)action->data().toInt();
    if(type == Mood::None)
    {
    }
    else
    {
        PubSubItem psi("current",
Mood(type).toXml(*client()->client()->rootTask()->doc()));
        JT_PubSubPublish *task = new
JT_PubSubPublish(client()->client()->rootTask(), QString("
http://jabber.org/protocol/mood"), psi);
        task->go(true);
    }
}


If nothing is done when Mood is None, how is one supposed to reset a mood
back to None once one has been chosen ?

Many thanks,
Romain.




-- 
Romain.

[Attachment #5 (text/html)]

Hi, <br><br>I&#39;ve set a mood for myself on a jabber account, but now would like to \
remove it. <br>It seems clicking &quot;None&quot; does not work, at least not \
immediately since other colleagues still see the mood with different clients (Gajim, \
Pidgin..; all linux laptops). <br> <br>Should the change be immediate ? \
<br><br>I&#39;ve seen in protocols/jabber/jabberaccount.cpp (1109-1122) this snippet \
of code : <br><br>void JabberAccount::slotSetMood()<br>{<br>    KAction *action = \
(KAction *)sender();<br>  Mood::Type type = \
(Mood::Type)action-&gt;data().toInt();<br>    if(type == Mood::None)<br>    {<br>    \
}<br>    else<br>    {<br>        PubSubItem psi(&quot;current&quot;, \
Mood(type).toXml(*client()-&gt;client()-&gt;rootTask()-&gt;doc()));<br>  \
JT_PubSubPublish *task = new JT_PubSubPublish(client()-&gt;client()-&gt;rootTask(), \
QString(&quot;<a href="http://jabber.org/protocol/mood">http://jabber.org/protocol/mood</a>&quot;), \
psi);<br>        task-&gt;go(true);<br>  }<br>}<br><br><br>If nothing is done when \
Mood is None, how is one supposed to reset a mood back to None once one has been \
chosen ? <br><br>Many thanks, <br>Romain.<br><br><br><br clear="all"><br>-- \
<br>Romain.<br>



_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic