> José Arcángel Salazar Delgado skrev:
> > Especificaly, I want to add something like:
> >
> >
> > QDate qdate = new QDate();
> > Date date = qdate.toDate();
> >
> >
> > or:
> >
> >
> > Date date = new Date();
> > QDate qdate = new QDate(date);
> >
> >
> > This is only and excersice for me, to know better the internals of qt
> > jambi.
>
> The QDate class is generated based on the QDate class in C++. If the
> functions make sense in both C++ and Java, then they can be added to the
> qdate.h header file in C++ and implemented in C++, and the function will
> automatically make it into the Java API through the Qt Jambi Generator.
>
> In a case like this, where the function only makes sense in Java, you
> would use the <inject-code> tag and put it into the
> typesystem-core-java.xml file. There are several examples in there on
> injected code. The inject code tag allows you to inject the code
> directly into the generated code, so you can write whatever you want
> there, and it will end up in the QDate.java file.
>
> I think it would be great to have conversion functions such as this, and
> perhaps to convert between the two I/O subsystems as well.
>
Yes, I'm thinking in that. In fact I want to implement 2 things:
1.- Converters from and to Java standar classes (Date, ByteArray, File, Image, 
streams, etc.)
2.- JPQL query model in the same way of the SQL query model (using 
eclipselink)

> -- Eskil
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to