PDA

View Full Version : Qt, Google App Engine (GAE) Datastore and REST for Web enabled apps


magnuslu
03-20-2010, 08:22 PM
Hi,

I want to 'web-enable' my Maemo Apps. What I mean by that is to store some or most of the data on the web making the information accessible to others and also, given Qt's multiplatform deployability, allowing a user to share data between his various devices; think PC and mobile device.

At the moment, I am considering using the Google App Engine (http://code.google.com/appengine/), and storing the data in their Datastore (http://code.google.com/appengine/docs/python/gettingstarted/usingdatastore.html). To exchange data, I would use REST (http://en.wikipedia.org/wiki/Representational_State_Transfer) and I've found a download for GAE that seems to do the job, app3 (http://code.google.com/p/app3/). It seems promising although it lacks the ability to create/update multiple records in one request. The code is open source, written in Python, so someone more skilled in Python might be able to figure out how to implement that better than me. :)

Finally, I would have to make a call from Qt where this example (http://jgoday.wordpress.com/2009/04/13/rest-client-with-qt-45/)could be a good starting point.

Does anyone have any better solution to this?
Has anyone already used this from a Qt app (for N900) and is able/willing to share some experience/code?
Does someone want to implement the above suggestion? I'm happy to take the plunge, but it might take me some time before I get it right...

magnuslu
03-21-2010, 09:35 AM
Well, studying this further, I've found some other possibilities to achieve the same result and that's using Zoho (http://cloudsql.wiki.zoho.com/).

fpp
03-21-2010, 03:49 PM
web2py can also be hosted on GAE and is really nice to work with.

pbouda
03-22-2010, 09:59 AM
Another possibilty would be XML RPC:

http://appengine-cookbook.appspot.com/recipe/xml-rpc-server-using-google-app-engine/
http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsoap
http://qt.nokia.com/doc/solutions/4/qtsoap/google-example.html

Would be interesting to see this working on the N900.

naabi
03-22-2010, 10:08 AM
One think Qt is definitely missing is a XML binding API/framework. Using SAX or DOM feels very clumsy after getting used to XML/Object binding.