Quando Parte is my Transport planning application. It is, at the moment, based on reatime data from mobile.viaggiatreno.it only, with a station database extracted from OpenStreetMap data, which I am still improving and refining.
It is focused on "tactical" planning for commuters. That means, the user interface let you quickly go to the station you are interested in, and shows the situation as soon as possible.
The data provider has more informations available, that are currently unused. I am planning to add a function to find trains departing from the requested station to another one, and eventually to find trains between two stations in a certain time range.
When I started programming Quando Parte I meant to use the "XHTML" data and provide the same information as a QListModel, but the XHTML from viaggiatreno.it was not really XHTML, and it had very little structure. So to quickly have something useful, I decided to present the information in a QtWebKit View, after some minimal "annotation" to the original hatml to let me selectively show Arrivals or Departures. This may change in the future, but it solves other annoying problems, so...
Contents |
All right, some more problems.
The QDir::setSearchPaths() which I thought was a clever idea for Fremantle, only seem to work in debug mode on Harmattan. in practice: if i set up a searchpath with
QDir::setSearchPaths("foo", QStringList("/usr/share/foo"));
and then use
QFile("foo:bar");
foo:bar resolves to /usr/share/foo/bar in Fremantle, but /home/developer/foo:bar on Harmattan. This breaks the installation...
The fremantle desktop file does not work in Harmattan. have fixed it, but it does not look right. It is not only a problem with the different path, I fixed it early. The other thing is the icon path also has to be hardcoded. I hope thiw will change in the final image, because this basically means no icon theming?
And there is the mysterious "invoke magic" in the example harmattan .desktop file that I copied and did not work for my application. Mikelima 08:43, 11 July 2011 (UTC)
It compiles! But..
I attempted building Quando Parte as is and it actually starts up. But it cannot find its icon, or its data. That is odd...
It is, as expected unusable. There are also problems with the icon, I am looking into the problem, and confrontimg my QMake files with those generated by QtCreator when creating a new qml application.
I am a bit confused about which template to use as a reference... There is an Harmattan QML application and a QML application that can be compiled for Harmattan/Fremantle/Symbian.
Ideally, I would like to have Quando Parte running on the three platforms, and maybe also as some kind of Plasma widget (Plasmoid). So the QML Application template is closer to what I'd like to use...