02-12-2013 02:47 AM
I am thinking to write a network manager class, e.g., something similar to this one: http://www.clearbridgemobile.com/2012/11/14/blackb
void NetworkManager::requestFinished(QNetworkReply* reply)
I can't have some specific behaviour implemented in the definition of the above function inside the NetworkManager class. Since other classes will be using the NetworkManager class, what I want is that when the reply comes from the server (e.g., requestFinished gets called), I want to be notified about this (say even in QML), and then I want to "decide" what to do with the response... How can I achieve this? What are the ways? Thank you.
02-12-2013 05:40 AM
02-13-2013 02:27 AM - edited 02-13-2013 03:24 AM
Aahh I will phrase my question this way for now... Say the requestFinished(QNetworkReply* reply) has
returned some value which I have processed etc. requestFinished is basically a slot to a finished() signal
which gets called at a time we don't know. No, once I calculate some values inside the requestFinished
call, how can I communicate it to QML????
02-13-2013 04:32 AM