Re: Plasma .operations file to JOLIE interface converter and plasma::(dataengine/service) return value typing

2009-02-02 Thread Fabrizio Montesi
Asraniel awesomely produced a working converter already! :-)

Code's attached. I've already commented it a bit and it's already been
patched for more JOLIE compatibility.
Three points remain:
1) there are some plasma types jolie doesn't support, such as bool and uint
udouble. They are currently converted to integers or doubles. I still need
to think about this.
2) plasma team comments about style or whatever by some C++ coder
3) when (2) is finished, where to upload this thing in svn?


src.tar.gz
Description: GNU Zip compressed data
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Plasma .operations file to JOLIE interface converter and plasma::(dataengine/service) return value typing

2009-02-02 Thread Aaron J. Seigo
On Monday 02 February 2009, Fabrizio Montesi wrote:
 3) when (2) is finished, where to upload this thing in svn?

you can put this in playground already; playground has nearly no requirements 
as to code maturity (basically: things should build :) and this way you can 
all work on it together until it's ready to go into a main module.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software



signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Plasma .operations file to JOLIE interface converter and plasma::(dataengine/service) return value typing

2009-01-20 Thread Aaron J. Seigo
On Tuesday 20 January 2009, Fabrizio Montesi wrote:
 today I was chatting with asraniel on #plasma about making an automatic
 generator of JOLIE interfaces from Plasma::Service .operations XML files
 and he decided to go ahead and start the project.

brilliant.

 Current objective is to make a command line tool working like:
 plasmaoperations2jolieinterface source.operations dest.iol

 Suggestions for a name for this tool or other aspects in general?

a validator feature might be nice eventually; as for name .. hm.. 
plasma2jolie? =)

 You can find an example of a correct conversion in attachment, to make it
 clear what we want to achieve.

very cool.

 Moreover, though operation call parameters are typed in .operations files,
 it seems there is no mechanism for typing a DataEngine or Service return
 value. This is supported by JOLIE (as one can leave the return value of an
 operation call untyped), but I was wondering: is there any future plan
 regarding this?

well, QVariant really provides this metadata upon return ... there is no 
declaration capabilities at this point though that is something that would be 
useful to add imho.

 PS: another thing for the future will be to make the opposite tool (JOLIE
 interface to Plasma .operations file, so to import automagically already
 defined JOLIE service interfaces), but that's another story. =)

=)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software



signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel