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

List:       kfm-devel
Subject:    Re: Basic Live Connect support for java
From:       Simon Hausmann <hausmann () kde ! org>
Date:       2002-05-15 18:58:22
[Download RAW message or body]

On Wed, May 15, 2002 at 08:50:37PM +0200, Koos Vriezen wrote:
> On Wed, 15 May 2002, Simon Hausmann wrote:
> >
> > Cool idea. Just one little thought: How about using QVariant to pass
> > the data around, instead of the enum and QString?
> 
> But enum's TypeFunction and TypeObject are still needed. IMO QVariant
> would make conversion only harder, e.g. const char*, QString, QCString.
> Other types, such as QByteArray, have no meaning. QValueList<QVariant>
> can't be used as an array reference, because it can't hold object
> references.
> So, I don't see the advantages of using QVariant.
> Please comment.

Ah, right, I overlooked TypeFunction/TypeObject. It was just a
thought, this switch-for-data-type code looked so qvariant like to
me. But it looks like this is indeed off QVariant's usability.
Forget me then :)

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

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