Basic Live Connect support for java

Simon Hausmann hausmann at kde.org
Wed May 15 19:58:22 BST 2002


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




More information about the kfm-devel mailing list