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

List:       kopete-devel
Subject:    [kopete-devel] A problem about Kopete::Message::RichText
From:       "Chao-Cheng Wu" <chaocheng.wu () gmail ! com>
Date:       2007-08-23 17:40:09
Message-ID: 8e65e1570708231040oebdc7f7kd631c578f7e03958 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

Recently I am tracing the bug about receiving custom emotions from MSN Live
Messenger 8. After some modifications on the MNS protocol part, right now I
can successfully get emotions in  KTempFile. But when the MSN protocol part
sends the rich text message to the chat window, somehow the chat window only
shows the text without icons. The detail is described as follows.

In function
Kopete::Message &MSNSwitchBoardSocket::parseCustomEmoticons(Kopete::Message
&kmsg)

It sends the 'message' as RichText to Kopete chat window.
kmsg.setBody(message, Kopete::Message::RichText);

and the content of the 'message' is
<img align="center" width="20" height="20" src="/tmp/kde/msnpicture--
WMw1Ka.png" title="a" alt="a"/><img align="center" width="20" height="20"
src="/tmp/kde/msnpicture--oNcHOa.png" title="b" alt="b"/><img align="center"
width="19" height="19" src="/tmp/kde/msnpicture--uGVnEb.png" title="|¦("
alt="|¦("/>:D:'(

The message shown in the chat window is
ab|¦(:D:'(
without any emotion inside.

I checked the image files specified by the 'message', and they all contained
the correct images. So I was wondering if it is a bug on the chat window
part or the message format sent by that function is not correct. The Kopete
I'm using is from SVN with revision 703929. If there is any suggestion,
please let me know!

Thanks,
Chao-Cheng Wu

[Attachment #5 (text/html)]

Hi,<br><br>Recently I am tracing the bug about receiving custom emotions from MSN \
Live Messenger 8. After some modifications on the MNS protocol part, right now I can \
successfully get emotions in&nbsp; KTempFile. But when the MSN protocol part sends \
the rich text message to the chat window, somehow the chat window only shows the text \
without icons. The detail is described as follows. <br><br>In \
function<br>Kopete::Message \
&amp;MSNSwitchBoardSocket::parseCustomEmoticons(Kopete::Message &amp;kmsg)<br><br>It \
sends the &#39;message&#39; as RichText to Kopete chat \
window.<br>kmsg.setBody(message, Kopete::Message::RichText); <br><br>and the content \
of the &#39;message&#39; is<br>&lt;img align=&quot;center&quot; width=&quot;20&quot; \
height=&quot;20&quot; src=&quot;/tmp/kde/msnpicture--WMw1Ka.png&quot; \
title=&quot;a&quot; alt=&quot;a&quot;/&gt;&lt;img align=&quot;center&quot; \
width=&quot;20&quot; height=&quot;20&quot; src=&quot;/tmp/kde/msnpicture-- \
oNcHOa.png&quot; title=&quot;b&quot; alt=&quot;b&quot;/&gt;&lt;img \
align=&quot;center&quot; width=&quot;19&quot; height=&quot;19&quot; \
src=&quot;/tmp/kde/msnpicture--uGVnEb.png&quot; title=&quot;|¦(&quot; \
alt=&quot;|¦(&quot;/&gt;:D:&#39;( <br><br>The message shown in the chat window \
is<br>ab|¦(:D:&#39;(<br>without any emotion inside.<br><br>I checked the image files \
specified by the &#39;message&#39;, and they all contained the correct images. So I \
was wondering if it is a bug on the chat window part or the message format sent by \
that function is not correct. The Kopete I&#39;m using is from SVN with revision \
703929. If there is any suggestion, please let me know! <br><br>Thanks,<br>Chao-Cheng \
Wu<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