diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2019-05-09 10:11:36 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2019-05-14 13:39:51 +0000 |
commit | 992f34a3b15074236e8c08cfcf794b2058b37af6 (patch) | |
tree | 82541f3c35fae24ca7d00951e5d9e58bfe406a13 /tests/auto/core/ivigenerator/org.example.echo.qtro.qface | |
parent | 06d415d83fc4b80730286686a8e5243ca0b03a20 (diff) | |
download | qtivi-992f34a3b15074236e8c08cfcf794b2058b37af6.tar.gz |
Use the same qface test file also for the QtRemotObject based autotests
This makes sure our templates support all tested types and generates
code which works as expected.
This already showed a problem when serializing a QFlag property (QTBUG-75676),
which gets fixed by registering a conversion function for our flags in
the autogenerated code.
Change-Id: I48e4c0a3ca5f98bdc45f3d7d6b83d88c1ae56c2c
Fixes: AUTOSUITE-794
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'tests/auto/core/ivigenerator/org.example.echo.qtro.qface')
-rw-r--r-- | tests/auto/core/ivigenerator/org.example.echo.qtro.qface | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/tests/auto/core/ivigenerator/org.example.echo.qtro.qface b/tests/auto/core/ivigenerator/org.example.echo.qtro.qface deleted file mode 100644 index 82f7f82..0000000 --- a/tests/auto/core/ivigenerator/org.example.echo.qtro.qface +++ /dev/null @@ -1,132 +0,0 @@ -/** - * module - */ -@config: { interfaceBuilder: "echoInterfaceBuilder" } -module org.example.echo 1.0 - -/** - * \brief the brief - * the description - * continues \l http://qt.io - */ -@config: {id: "org.foo.id.1.0", qml_class_name: "UiEcho"} -interface Echo { - /** - * \brief brief message - * - * Some more documentation - */ - readonly string lastMessage; - int intValue; - var varValue; - @config_simulator: {minimum: 10.} - real floatValue1; - @config_simulator: {maximum: 10.} - real floatValue2; - string stringValue; - list<Contact> contactList; - Contact contact; - WeekDay weekDay; - real UPPERCASEPROPERTY; - - string echo(string msg); - string id() const; - Combo getCombo(); - void voidSlot(); - void voidSlot2(int param); - void timer(int interval); - - signal anotherChanged(AnotherStruct another); - signal foobar(string foo); - signal somethingHappened(); - signal newValueAvailable(var newValue); - - model<Contact> testList; -} - -enum WeekDay { - Monday = 1, - Tuesday = 2, - Wednesday = 3, - Thursday = 4, - Friday = 5 -} - -/** - * The contact information - */ -struct Contact { - string name; - int age; - bool isMarried; - var additionalData; -} - -struct Combo { - Contact contactInfo; - WeekDay day; -} - -struct AnotherStruct { - int justANumber; -} - - - -@config: {id: "org.foo.idz.1.0", zoned: true} -interface EchoZoned { - - /** - * \brief brief message - * - * Some more documentation - */ - readonly string lastMessage; - int intValue; - var varValue; - @config_simulator: {domain: ["one", "two", "three"]} - string stringValue; - string unsupportedValue; - bool zonedValue; - bool valueWithDefault; - @config: { getter_name: "isEchoEnabled" } - bool echoEnabled; - AirflowDirection airflowDirection; - @config_simulator: {minimum: 10., maximum: 15.} - int rangedValue; - int rangedValueWithDefault; - Contact contact; - Combo combo; - list<int> intList; - list<Combo> comboList; - real UPPERCASEPROPERTY; - - string echo(string msg); - string id(); - var varMethod(); - Combo getCombo(); - string timer(int interval); - - signal anotherChanged(AnotherStruct another); - signal foobar(string foo); - signal somethingHappened(); - signal newValueAvailable(var newValue); -} - -/** - * \brief Control where the airflow goes - */ -flag AirflowDirection { - /** - * \brief Airflow to the windshield - */ - Windshield = 1, - /** - * \brief Airflow to the dashboard - */ - Dashboard = 2, - /** - * \brief Airflow to the floor - */ - Floor = 4 -} |