diff options
author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2016-09-16 08:43:00 +0200 |
---|---|---|
committer | Juergen Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2016-11-30 10:01:20 +0100 |
commit | e147445c2b1a11d5d5138e297beb2a9b6a3e71e4 (patch) | |
tree | 413f8c184023d45522b06d61926adde97326cfeb /README.md | |
parent | 4227e1f940d233d305140b868476c5ae4a5bf67b (diff) | |
download | qtivi-qface-e147445c2b1a11d5d5138e297beb2a9b6a3e71e4.tar.gz |
Updated to documentation
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -13,3 +13,31 @@ generate their vision of a QMLCPP interface. The Domain language is surely not limited to this. Please see the INSTALL and USAGE guides for more information. + +## Echo Example + +```js +// echo.qdl +module org.example 1.0; + +/**! +The echo interface to call someone +on the other side +*/ +interface Echo { + readonly Message lastMessage; + void echo(Message message); + event void callMe(); +}; + +struct Message { + string text; +}; +``` + +Now calling the generator to generate the C++ code. + + qface --generator qtcpp --input echo.qdl --output out + +It generates a .PRI file and all code required to regsiter the objects to the qml engine. +The generated code expects the user implements a generated interface. |