Dirk,
I am looking at the implementation, from the QML side, of the class
named "downloadManager" at the moment. In the Subsurface-mobile, the QML
drives the whole process and the coordination and linkages,
consequently, has to be from the QML side. One of the critical thing
Tomaz has pointed out is the need for setting the context of C++ items
used by QML.
1) From what I can see, the root context is set in
subsurface-mobile-helper.cpp. Since it looks like the context
definitions must be finalised before the QML engine is launched, is it
that subsurface-mobile-helper.cpp is the appropriate place to set the
context definitions? I see some context definitions in filebrowser.cpp
in Plasma-Mobile which would contradict the above statement.
2) This brings up the question of where the most appropriate place is to
launch "downloadManager". Since downloadManager should ideally only be
loaded when downloads are actually done, I cannot see that
subsurface-mobile-helper.cpp (where the QML engine is launched) is very
appropriate. I would say that the closest place is QMLManager.
3) But if this were the case, then the question is how the context
definitions should be handled because the QML machine is not launched in
QMLManager.
Any comments would be very valuable,
Kind regards,
willem
_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface