Qt app and Integration with Cloud Computing
-
wrote on 17 Mar 2011, 13:01 last edited by
Hi,
I have an spreadsheet application written completely in JavaScript. I have ported it on on Maemo Platform using Qt.
I want to save the spreadsheets on cloud and retrieve them back when needed. By cloud here I mean that there is a web server side, where functions have been coded in AJAX. I need to call those functions using Qt.
Development on server side has been done using : @http://code.google.com/appengine/articles/rpc.html@
Currently save and open functionality on local machine works like this :
I have defined dosave()function in my javascript file which saves the contents in a “string” and returns it. This string is written in a file and saved in local machine. When save button is clicked, evaluateJavaScript() function takes dosave() function as parameter and does the work.
Similarly, I have open() function defined in javascript code, in which this particular string is passed and it displays the content back to the file I want to open. Here when open button is clicked, saved file is read and saved to QString variable. This is passed to open() function. Again, evaluateJavaScript() function is used to interact with the javascript function.
Kindly provide some information regarding how to move forward to save the content on Cloud using Qt or any other Maemo app which does that. How to take forward this on client side ?
-
wrote on 17 Mar 2011, 20:57 last edited by
Can you define what you mean by cloud in this case please? If you just mean some form of web server that talks http then take a look at QNetworkAccessManager.
-
wrote on 17 Mar 2011, 21:32 last edited by
Sure,
I have edited the post.
By cloud here I mean that there is a web server side, where functions have been coded in AJAX. I need to call those functions using Qt. I would take a look QNetworkAccessManager. Kindly provide further inputs if any.
-
wrote on 18 Mar 2011, 07:01 last edited by
For interacting with a webserver, I would really considder QNetworkAccessManager. Also, however, considder that data you get from outside your own application is not to be trusted. If you can avoid it, don't simply execute it. I guess you're getting JSON data? If so, there are other ways of reading that...
4/4