[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: A few questions (XMPP, avatars, CommandHandler)
From: Teemu Rytilahti <tpr () d5k ! net>
Date: 2010-03-19 11:11:07
Message-ID: hnvm4n$5i0$1 () dough ! gmane ! org
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everyone,
I have been lately trying to understand the code-base of Kopete to fix
some issues I have encountered, and after pondering a while decided to
post here to ask some questions.
The first question is related to avatar handling, especially regarding
to bugs #156184 and #149602. I located that the issue is that Kopete
uses account id to save the avatars. The problem is that JIDs may
contain slash ('/') to indicate the resource for that user, a feature
which is also used to identify MUC contacts. Now the problem is that
as the slash is a part of the id and also used as a directory
separator, QImage::save() won't save the image as the directory where
it tries to save it doesn't exist.
So to the question, which way this should be handled? I assume that
the account id is used instead of just a hash to make it user-friendly
to browse the items, so using a plain hash for filenames is not an
option. I was thinking about replacing '/' with something else when
saving the avatar, but what would be replacement? And do such an
issues appear with other characters allowed in XMPP and other
protocols?
Another question is that is CommandHandler a wrong way to implement
IRC-style commands? Looking to protocols/irc/ircprotocol.cpp, which is
the only user of CommandHandler, has commented those out. I'm asking
this because I would like to implement (at least some) of the mappings
described in http://xmpp.org/extensions/xep-0045.html#impl-client-irc
.
The final question is about how to handle adding a support for a new
XEP. Let's assume that I would like to implement XEP-0224 (Attention)
to allow XMPP users to "nudge". Where should I start looking for the
right place to do it? Should the ground-work be done in libiris side?
All pointers where to start for any of those issues are very welcome.
- --
Best regards,
Teemu Rytilahti
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkujW88ACgkQo1xDqUCf6jgQmwCeMoDegjO8p5OmQ5D1QU5xzTYo
s/oAnj/ltYinq+/ydwRDjdkiP0R/XUpF
=+Xh/
-----END PGP SIGNATURE-----
_______________________________________________
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