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

List:       kopete-devel
Subject:    Re: [kopete-devel] kdenetwork/kopete/protocols/oscar/oscarsocket
From:       Richard Smith <kde () metafoo ! co ! uk>
Date:       2004-10-05 23:59:31
Message-ID: 200410060059.32270.kde () metafoo ! co ! uk
[Download RAW message or body]

On Tuesday 05 October 2004 23:31, Grzegorz Piotr Jaskiewicz wrote:
> Matt Rogers wrote:
> >hmmm, I think i'll need to integrate that too. we need to put the code
> >somewhere. I wonder if we should create a directory under libkopete
> >(although i don't have the slightest clue what to call it) for stuff
> >that's used in more than one protocol that's not Kopete API specific?

Perhaps a libkopeteutils directory, for a libkopeteutils.so?

> If you want to make it nice and tidy, it will be nice to have it
> integrated with chatwindow stuff.
> I suggested some time ago already, that we shouldn't be passing messages
> around as text, but already parsed XML tree. Easier to modify, and khtml
> should be able to "eat" such format for render too.
> Now it seems we need to parse it few times before it get's displayed,
> and few times before it's off to the wire.

If we want to redesign Message's internals (and I think we do, even if no-one 
else does), I think we should go with something sane and simple. I had it 
suggested to me on IRC (I think by Grzegorz, but it might possibly have been 
by Michel) that we have a linked list of (text, formatting) objects. Which 
seems sane, trivial to convert to HTML, and should be reasonably easy to 
convert to from RTF (but from full HTML it's a right arse). It'd sure make 
processing the text (adding emoticons, links, whatever) a hell of a lot 
easier.

If converting from HTML is a problem (AIM messages?) then passing round a 
QDomDocument is better than nothing, but I'd like to abstract out an iterator 
over the text in it to make processing it easier.

Thanks,
Richard
_______________________________________________
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