I'm looking forward to the release of Ubuntu Touch and thought it would be nice to contribute a small and free app that I'm also using now on my Android phone.
The free and open source app for Android is called MythMote (code.google.com/p/mythmote) and basically establishes a TCP connection to a pc running a MythTv frontend and then transfers streams of data to control it. The info on www.mythtv.org/wiki/Frontend_control_socket contains the list of supported commands that can be used.
I've managed to create the app as a Qt Widgets Application and it functions as required. So I have a myapp.pro, mainwindow.h, main.cpp, mainwindow.cpp and a mainwindow.ui file. In other words, it is a desktop app containing C++ code using the QTcpSocket Class.
What I'm struggling with at the moment is adding a QML user interface to it so that I can upload it from within the Ubuntu SDK so that it can be reviewed.
I tried to create a new Ubuntu 'App with Simple UI' and then copy paste the C++ code into an added C++ class. This does work because the Ubuntu SDK does not allow me to add a C++ class (gives a file generation failure).
I tried to create a new Ubuntu 'App with QML Extension Library'. However I cannot publish such a project as it is of the wrong kit type. Gives a 'It is not supported to create click packages for a non UbuntuSDK target.
I found a similar question on this website:
The top answer provided does not allow to create a Click package and thus does not allow me to publish the app.
The bottom answer points to the folowing page but I cannot get the example to work and I doubt that it will allow me to publish it:
I also tried to see if QML has something similar to the QTcpSocket Class but was unable to find it.
So, I'm hoping that some of you have successfully published an app that has a C++ backend connected to a QML user interface.